CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of PO
C++
#include <stdio.h>
#include <stdlib.h>
 
int main(int argc, char *argv[])
{
  int familyMembers=0,a;
  struct people {
    int id, age;
    char name[50], sex[8];
  };
Yesterday @ 11:46am
8 Views
no comments
 
<#
.COMPONENT
    NUPosh
.SYNOPSIS
    Test if an Assembly (.dll) is already loaded. 
.DESCRIPTION
    Test if an Assembly of the same name is already loaded in the current runspace. 
    Using the -PasThru parameter will return the AssemblyInfo object along with the boolean. 
.PARAMETER  Name
    The file name of the Assembly.   
by qawarrior   Thursday @ 7:42am
30 Views
no comments
 
C#
var reverter = new RevertToAppPool();
try
{
    reverter.UseAppPoolIdentity();
}
finally
{
    reverter.ReturnToImpersonatingCurrentUser();
}
by jaredmroberts   May 11, 2012 @ 11:05am
13 Views
no comments
 
http://www.sendspace.com/file/qdkkqa
by taiten10   February 27, 2012 @ 5:44pm
30 Views
no comments
 
http://www.sendspace.com/file/nlp88m
by taiten10   February 27, 2012 @ 5:42pm
27 Views
no comments
 
http://www.sendspace.com/file/levpwn
by taiten10   February 27, 2012 @ 5:40pm
31 Views
no comments
 
http://www.sendspace.com/file/hcoguw
by taiten10   February 27, 2012 @ 5:31pm
30 Views
no comments
 
 
 
http://www.sendspace.com/file/hcoguw
by taiten10   February 27, 2012 @ 5:30pm
26 Views
no comments
 
SQL
  SELECT   *
    FROM   (  SELECT   60 * (EXTRACT (HOUR FROM INSERTED_DATE) - 12)
                       + EXTRACT (MINUTE FROM INSERTED_DATE)
                          AS MINUTE,
                       COUNT (E.ID_EVENT) / 60 AS FRAMESPERSECONDE
                FROM   EVENT E
               WHERE   INSERTED_DATE >
                          TO_TIMESTAMP ('23122011 12:00:00',
                                        'DDMMYYYY HH24:MI:SS')
            GROUP BY   EXTRACT (HOUR FROM INSERTED_DATE),
by tikrimi   December 23, 2011 @ 6:47am
Tags: PO, Orange, T&T
36 Views
no comments
 
SQL
SELECT   INSERTED_DATE
  FROM   (  SELECT   *
              FROM   EVENT E
          ORDER BY   E.INSERTED_DATE DESC)
 WHERE   ROWNUM < 100;
by tikrimi   December 23, 2011 @ 2:47am
Tags: PO, Orange, T&T
56 Views
no comments
 
C#
SPListItem item = properties.ListItem;
 
SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Customer");
SPFieldUserValue fieldValue = (SPFieldUserValue)userField.GetFieldValue(item[userField.ID].ToString());
string customerEmail = fieldValue.User.Email;
by jaredmroberts   December 15, 2011 @ 1:35pm
91 Views
no comments
 
$isAdmin = !(($env:SESSIONNAME).Length -gt 0)
 
function Prompt
{
  $pwd = $(get-location)
  if ($isAdmin)
  {
    $host.ui.RawUI.WindowTitle = "Administrator: $pwd"
    "PS $pwd># "    
  }
by Matthew Flaschen   October 18, 2011 @ 6:09pm
78 Views
no comments
 
/* Google jquery CDN 
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> */
   
            $.ajax(
            {
                type: "POST",
                contentType: "application/json; charset=utf-8",
                url: "services/FeedService.svc/ServiceMethod",
                data: '{"param1":"data1" , "param2":"data2"}',
                dataType: "json",
by frank2tek   October 04, 2011 @ 11:25am
102 Views
no comments
 
//Remember to use Jquery
 
/*
Other options for the popup
window.open('http://www.someurl.com','nameofpopup','height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');
*/
 
$(function () 
{
  $('.voucherpopup').click(function (event) 
by Egli   August 22, 2011 @ 9:39pm
90 Views
no comments
 
C#
Sol Reqs:
.NET 3.5
x64
Add Ref: Microsoft.SharePoint assembly 
 
// Applying a template to a new site
Site Actions –> New Site. You'll find your Site Template in the list of Installed Items, in the All Categories or Blank & Custom filters.
 
//  how to upgrade the content database - after applying SP1
C:\Program Files\Common Files\Microsoft Shared\Web ServerExtensions\14\bin\psconfig.exe –cmd upgrade
by Jose David Parra   August 11, 2011 @ 7:48pm
307 Views
no comments
 
Get-Process | Where-Object {$_.ProcessName -like "w*"}
 
Table 1-4. Commonly Used Windows PowerShell Comparison Operators
 
Operator    Purpose
-lt    Less than
-le    Less than or equal to
-gt    Greater than
-ge    Greater than or equal to
-eq    Equal to
by Jose David Parra   August 10, 2011 @ 3:42pm
120 Views
no comments
 
C++
#include <ctime>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <cstdio>
by iscsi   July 28, 2011 @ 11:58am
62 Views
no comments
 
C++
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cctype>
by iscsi   July 21, 2011 @ 5:29am
Tags: SPOJ, Mixtures
204 Views
no comments
 
C#
/// <summary>
/// State flag which indicates whether the grid is in edit
/// mode or not.
/// </summary>
public bool IsEditing { get; set; }
 
private void OnBeginEdit(object sender, DataGridBeginningEditEventArgs e)
{
  IsEditing = true;
  //in case we are in the middle of a drag/drop operation, cancel it...
by Athens Springer   June 29, 2011 @ 7:57am
154 Views
no comments
 
XML
<Popup
  x:Name="popup1"
  IsHitTestVisible="False"
  Placement="RelativePoint"
  PlacementTarget="{Binding ElementName=me}"
  AllowsTransparency="True">
  <Border
    BorderBrush="{DynamicResource CellBorderBrush}"
    BorderThickness="2"
    Background="White"
by Athens Springer   June 29, 2011 @ 7:56am
122 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate