Format:
Recent snippets matching tags of PO
#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]; };
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.
30 Views
no comments
var reverter = new RevertToAppPool(); try { reverter.UseAppPoolIdentity(); } finally { reverter.ReturnToImpersonatingCurrentUser(); }
13 Views
no comments
http://www.sendspace.com/file/hcoguw
30 Views
no comments
http://www.sendspace.com/file/hcoguw
26 Views
no comments
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),
36 Views
no comments
SELECT INSERTED_DATE FROM ( SELECT * FROM EVENT E ORDER BY E.INSERTED_DATE DESC) WHERE ROWNUM < 100;
56 Views
no comments
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;
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># " }
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",
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)
90 Views
no comments
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
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
120 Views
no comments
#include <ctime> #include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> #include <queue> #include <set> #include <map> #include <cstdio>
62 Views
no comments
#include <iostream> #include <sstream> #include <string> #include <vector> #include <queue> #include <set> #include <map> #include <cstdio> #include <cstdlib> #include <cctype>
204 Views
no comments
/// <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...
154 Views
no comments
<Popup x:Name="popup1" IsHitTestVisible="False" Placement="RelativePoint" PlacementTarget="{Binding ElementName=me}" AllowsTransparency="True"> <Border BorderBrush="{DynamicResource CellBorderBrush}" BorderThickness="2" Background="White"
122 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
