Format:
Recent snippets matching tags of AD
<html> <head> <link href="scripts/plupload/jquery.plupload.queue/css/jquery.plupload.queue.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <link href="Css/Reset.css" rel="stylesheet" type="text/css" /> <link href="Css/Standard.css" rel="stylesheet" type="text/css" /> <link href="Css/Classifieds.less.css" rel="stylesheet" type="text/css" />
35 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)
38 Views
no comments
system: opsChangeSpawnTypeOnly: false SpawnersRespondToRedstone: false allowDroppedSpawners: false debugLogs: false SuperPerms: true ignorePermissions: false deactivedByRedstoneStatus: false mustHaveValidPermissionsToAlterSpawner: true maxNumberOfEntsNearSpawner: 6
35 Views
no comments
/* Renegade Scripts.dll
Spectate
Copyright 2012 Goldy58
This file is part of the Renegade scripts.dll
The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
version. See the file COPYING for more details.
In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
31 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
@foreach(var pic in Model.stfuGalleryImage.Where( "Visible" ) ) { <figure> <img src="@pic.galleryImage" alt="@pic.galleryImageTitle" data-tags="@pic.galleryImageTags" /> @if ( @pic.galleryImageDescription != "" ) { <figcaption class="opaque">@pic.galleryImageDescription</figcaption> } </figure> } @foreach(var vid in Model.stfuGalleryVideo.Where( "Visible" ) ) { <figure title="@vid.galleryImageTitle" data-tags="@vid.galleryImageTags">
40 Views
2 comments
using System; using System.IO; class Program { static void Main() { // // It will free resources on its own. //
44 Views
no comments
var conn = new SqlConnection(CONN_STR); var cmd = new SqlCommand("Select * from Employee", conn); conn.Open(); cmd.BeginExecuteReader(ar => { int affected = cmd.EndExecuteNonQuery(ar); cmd.Dispose(); conn.Dispose(); }, null);
37 Views
no comments
template <typename T> class BinarySearchTree { private: struct N { T data; N * left; N * right; N( const T & value, N * l, N * r ):data( value ), left( l ), right( r ) { };
44 Views
no comments
namespace DataFieldMappingConsoleSample { using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; class Program {
61 Views
no comments
namespace DataFieldMappingConsoleSample { using System; using System.Collections.Generic; using System.Data; using System.Diagnostics; using System.Linq; using System.Reflection; [AttributeUsage(AttributeTargets.Property)]
51 Views
no comments
new ThreadGuest() { @Override public Object run(Handler arg0, long arg1) { LogByApp.w("//### 0 ThreadGuest.run()"); return null; } } .addChain(0, new ThreadGuest(ThreadGuest.PRIORITY_BELOW_NORMAL) {
53 Views
1 comments
new AsyncNetTask(myContext, myHandler) { // 작업중에 필요한 변수가 있다면 finalize 하거나 이 객체의 생성자 인자로 넘길 수 있을 것입니다. // 유지해야 하는 변수라면 멤버 변수 등을 사용할 수도 있을 것입니다. Mydata mData; @Override protected TcpEnvelope onPreExecute() { return makeEnvelope(); }
53 Views
no comments
new ThreadGuest() { @Override public Object run(Handler arg0, long arg1) { LogByApp.w("//### 0 ThreadGuest.run()"); return null; } } .addChain(0, new ThreadSlave() {
41 Views
no comments
mencoder -oac copy -ovc xvid -xvidencopts bitrate=687 -sub <srt file> -subcp UTF-8 -subfont-text-scale 3 -sub-bg-alpha 70 -o <outputfile> <inputfile>
56 Views
no comments
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; namespace StaticMEF { class Program
155 Views
no comments
[TestMethod] public void TestRenamedbContextMenu() { dbContext context = new dbContext(); // Load the first menu Menu menu = context.Menus.FirstOrDefault(); // force a change menu.ModifiedOn = DateTime.Now;
276 Views
no comments
public static IList<T> ToList<T>(this System.Data.SqlClient.SqlDataReader dr) where T : new() { Type type = typeof(T); if(System.Web.HttpContext.Current.Cache[type.Name + "_properties"] == null) { System.Web.HttpContext.Current.Cache.Insert(type.Name + "_properties", type.GetProperties().ToList()); } IList<PropertyInfo> properties = (IList<PropertyInfo>)System.Web.HttpContext.Current.Cache[type.Name + "_properties"]; IList<T> result = new List<T>(); while(dr.Read())
168 Views
no comments
/// <summary> /// Creates a list of a given type from all the rows in a DataReader. /// /// Note this method uses Reflection so this isn't a high performance /// operation, but it can be useful for generic data reader to entity /// conversions on the fly and with anonymous types. /// </summary> /// <typeparam name="TType"></typeparam> /// <param name="reader">An open DataReader that's in position to read</param> /// <param name="fieldsToSkip">Optional - comma delimited list of fields that you don't want to update</param>
825 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
