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 SE
C#
public sealed partial class BlankPage : Page
{
    public BlankPage()
    {
        this.InitializeComponent();
 
        var _String = "<special:Users xmlns:special='http://jerry'><User Key='1' Name='Jerry' /><User Key='2' Name='Michael' /></special:Users>";
        using (var _Reader = System.Xml.XmlReader.Create(new StringReader(_String)))
        {
            var _Serializer = new System.Xml.Serialization.XmlSerializer(typeof(Users));
by Jerry Nixon   May 15, 2012 @ 3:01pm
11 Views
no comments
 
package eu.man.phevos.dx.mock.gep.test
 
import java.io.FileInputStream
import java.util.Arrays
import akka.actor.Actor
import akka.actor.ActorSystem
import akka.actor.Props
 
object StreamTest extends App {
by Michael Wellner   May 15, 2012 @ 11:17am
14 Views
no comments
 
package eu.man.phevos.dx.mock.gep.test
 
import java.io.FileInputStream
import java.util.Arrays
import akka.actor.Actor
import akka.actor.ActorSystem
import akka.actor.Props
 
object StreamTest extends App {
by Michael Wellner   May 15, 2012 @ 11:15am
17 Views
no comments
 
var baseUrl;
var applicationUrl;
 
baseUrl = document.location.href;
baseUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/'));
applicationUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/'));
by Warren Wiltshire   May 02, 2012 @ 5:24am
17 Views
no comments
 
'must have a legitimate email setup with smtp relays set greater than 0 in your godaddy control panel (email accounts) 
Private Sub btnSendMessage_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles btnSendMessage.Click
      CreateTimeoutTestMessage("smtpout.secureserver.net") 'This is standard with most email relays at godaddy
  End Sub
  Public Shared Sub CreateTimeoutTestMessage(server As String)
      Dim [to] As String = "busted@fbi.gov"
      Dim from As String = "billyjoebob@hillbilly.com"
      Dim subject As String = "Catch Me If You Can."
      Dim body As String = "This is the body of the message. Yada Yada Yada"
      Dim message As New MailMessage(from, [to], subject, body)
by DaveCS   April 10, 2012 @ 6:53pm
39 Views
no comments
 
$(document).ready(function () {
            $('.AutoSelect').focus(function () { $(this).select() });
            $('.AutoSelect').mouseup(function (e) {
        e.preventDefault();
});
by Davide Orazio Montersino   March 27, 2012 @ 12:50am
23 Views
no comments
 
Dim rootWindow As MainWindow = TryCast(Application.Current.MainWindow, MainWindow)
       rootWindow.TabControl1.SelectedIndex = 4
by DaveCS   March 14, 2012 @ 5:27am
52 Views
no comments
 
public void invoke(string pText)
        {
            Ms_Supplier_SelectData objMs_Supplier_SelectData = new Ms_Supplier_SelectData(pText);
            RESULT = objMs_Supplier_SelectData.RESULT;
            try
            {
                //Ms_Supplier_SelectData objMs_Supplier_SelectData = new Ms_Supplier_SelectData(pText);
                //RESULT = objMs_Supplier_SelectData.RESULT;
                if (RESULT.HasRows)
                {
27 Views
1 comments
 
C#
using System;
using System.Net.Http.Formatting;
using System.Threading.Tasks;
using System.Web.Script.Serialization;
using System.Json;
using System.IO;
 
namespace Westwind.Web.WebApi
{
    public class JavaScriptSerializerFormatter : MediaTypeFormatter
by Rick Strahl   March 08, 2012 @ 5:17pm
386 Views
no comments
 
C#
using System;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.SelfHost;
 
namespace ConsoleApplication2
by Antony Scott   February 29, 2012 @ 6:41am
136 Views
no comments
 
2012-02-22 14:13:30 [INFO] This server is running CraftBukkit version git-Bukkit-1.1-R3-b1846jnks (MC: 1.1) (Implementing API version 1.1-R3)
2012-02-22 14:13:30 [INFO] Unknown command. Type "help" for help.
2012-02-22 14:13:34 [INFO] Plugins: WorldBorder, XrayInformer, WorldEdit, TradeCraft, EnderCrystalizer, CommandBook, PermissionsBukkit, Vault, LogBlockQuestioner, PvPToggle, LogBlock, LWC, FirstLastSeen, WorldGuard, mChatSuite, SimpleJail, SpawnerAdjuster, GroupAnnouncer, Points, LimitedCreative, Honeypot, ThumbsApply, WeatherRestrictions, TeleportSuite, mcbans, CFBanner, MultiSpawn, Xray Detection, SimpleSpleef, NoCheat, Votifier, SimpleReserve, Residence
2012-02-22 14:13:34 [INFO] Unknown command. Type "help" for help.
by Digitalink2008   February 22, 2012 @ 1:14pm
34 Views
no comments
 
users:
    Notch:
        permissions:
            permissions.example: true
        groups:
        - admin
    digitalink2008:
        groups:
        - owner
        permissions:
by Digitalink2008   February 22, 2012 @ 1:12pm
38 Views
no comments
 
superm.bukkit.denyall:
    description: Deny all default bukkit commands
    default: false
    children:
        bukkit.command.version: false
        bukkit.command.plugins: false
 
superm.commandbook.moderator:
    description: Mod powers
    default: false
by Digitalink2008   February 22, 2012 @ 1:04pm
113 Views
no comments
 
function twitter_mobypicture_page($query) { 
        if (user_type() == 'oauth') { 
 
                //Has the user submitted an image and message? 
                if ($_POST['message']) { 
                        $messages = stripslashes($_POST['message']); 
                        $serviceURL = 'https://api.mobypicture.com/2.0/upload.json'; 
 
                        //Set the initial headers 
                        $header = array( 
42 Views
no comments
 
/*IDE Shortcuts */
//Finds a type inside a class
Ctr + Shift + T
 
//Finds a resource inside a class
Ctr + Shift + R
 
//Search for methods or variables inside a class
Ctr + O
 
by Egli   February 13, 2012 @ 8:15pm
47 Views
no comments
 
C#
using System;
using System.IO;
 
class Program
{
    static void Main()
    {
    //
    // It will free resources on its own.
    //
January 26, 2012 @ 7:26am
44 Views
no comments
 
http://filevelocity.com/sfp3zcy422x6/Dream Hause 2011 DVDRip.part1.rar.html
http://filevelocity.com/gehr1px6sw2k/Dream Hause 2011 DVDRip.part2.rar.html
http://filevelocity.com/wi5tmc1l12q9/Dream Hause 2011 DVDRip.part3.rar.html
http://filevelocity.com/b2e1c5h25e9y/Dream Hause 2011 DVDRip.part4.rar.html
http://filevelocity.com/mbscjvmr44vn/Dream Hause 2011 DVDRip.part5.rar.html
http://filevelocity.com/igeaqml05mlt/Dream Hause 2011 DVDRip.part6.rar.html
http://filevelocity.com/ngidojk8agwk/Dream Hause 2011 DVDRip.part7.rar.html
http://filevelocity.com/gfs54dqtrcqa/Dream Hause 2011 DVDRip.part8.rar.html
39 Views
no comments
 
SQL
CREATE PROC SearchAllTables
(
    @SearchStr nvarchar(100)
)
AS
BEGIN
    CREATE TABLE #Results (ColumnName nvarchar(370), ColumnValue nvarchar(3630))
 
    SET NOCOUNT ON
by Prithvi Ramana A   December 22, 2011 @ 6:46am
62 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
 
my code here. 
by JasonLeeTrott   December 08, 2011 @ 1:07am
97 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