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 hr
ACCESSORY_IDs = {
    ACCESSORY_GOGGLES = 1,
    ACCESSORY_CATTYHAIRBAND = 2,
    ACCESSORY_GLASS = 3,
    ACCESSORY_FLOWER = 4,
    ACCESSORY_FLORALHAIRBAND = 5,
    ACCESSORY_HOOD = 6,
    ACCESSORY_ROUNDCAP = 7,
    ACCESSORY_FLUMASK = 8,
    ACCESSORY_HAIRBAND = 9,
by iXaDe   January 10, 2012 @ 12:12pm
Tags: bleachro
57 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) {
    
by arngard   December 07, 2011 @ 4:59am
53 Views
1 comments
 
new AsyncNetTask(myContext, myHandler) {
 
    // 작업중에 필요한 변수가 있다면 finalize 하거나 이 객체의 생성자 인자로 넘길 수 있을 것입니다.
    // 유지해야 하는 변수라면 멤버 변수 등을 사용할 수도 있을 것입니다.
    Mydata mData;
 
    @Override
    protected TcpEnvelope onPreExecute() {
        return makeEnvelope();
    }
by arngard   November 17, 2011 @ 8:26pm
55 Views
no comments
 
new ThreadGuest() {
    
    @Override
    public Object run(Handler arg0, long arg1) {
        LogByApp.w("//### 0 ThreadGuest.run()");
        return null;
    }
}
.addChain(0, new ThreadSlave() {
    
by arngard   November 17, 2011 @ 8:18pm
42 Views
no comments
 
/*
@ Navigator Detect Function (JavaScript)
@author Luca Provenzano (mailto: hiimluca@gmail.com)
*/
 
function NavDetect(Navegador){
        var Navegador = navigator.appName;
        switch(Navegador){
            case 'Netscape':
            alert('Usted está utilizando Mozilla Firefox o Chrome');
111 Views
no comments
 
C#
Thread.GetHashCode()
 
AppDomain.GetCurrentThreadId()
by Jose David Parra   July 05, 2011 @ 8:24pm
Tags: Thread
106 Views
no comments
 
C++
#include    <boost/noncopyable.hpp>
#include    <boost/asio.hpp>
#include    <boost/date_time/posix_time/posix_time.hpp>
#include    <boost/shared_ptr.hpp>
#include    <boost/thread.hpp>
#include    <boost/thread/mutex.hpp>
#include    <boost/thread/locks.hpp>
#include    <boost/bind.hpp>
#include    <string>
by sigidagi   April 15, 2011 @ 7:36am
182 Views
no comments
 
SQL
-- Keyra þetta bara í tempdb :)
use tempdb
go
 
-- Búa til töfluna
create table dbo.StartDateTest (StartDate datetime)
go
 
-- Búa til scalar valued function sem að tekur inn dagsetninguna sem á að "checka"
-- Functionið skilar til baka hve margar línur í töflunni eru með þetta StartDate
by Sigurður Bjarnason   February 21, 2011 @ 2:19pm
173 Views
no comments
 
C#
public void Go()
{
    for (int i = 0; i < 100; i++)
    {
        WaitCallback wcb = new WaitCallback(this.DoWork);
        ThreadPool.QueueUserWorkItem(wcb, i);
    }
    Console.ReadLine();
}
by Cat   November 08, 2010 @ 2:53am
143 Views
no comments
 
C#
int intValue = 1512;
string stringValue = intValue.ToString("#,#", CultureInfo.GetCultureInfo(Thread.CurrentThread.CurrentCulture.Name));
/* Result in US English (en-US) will be 1,512
   Result in Swedish (sv-SE) will be 1 512 */
by Robert Andersson   April 29, 2010 @ 4:53am
331 Views
no comments
 
SQL
 
backup log <Database_Name, sysname, Database_Name> with truncate_only
go
use <Database_Name, sysname, Database_Name>
go
dbcc shrinkfile (<Database_Name, sysname, Database_Name>_log,  2)
go
 
DBCC SHRINKDATABASE(N'<Database_Name, sysname, Database_Name>' )
by Tareq Saleh   April 10, 2010 @ 2:03am
284 Views
no comments
 
C#
// handle the completed event 
_Service.MyMethodCompleted += (s, e) =>
{
    // an Action is just a built-in delegate 
    Action _Action = () =>
    {
    // access the UI here
    this.MyLabel.Text = e.Result;
    }
    // change the thread context
by Jerry Nixon   March 05, 2010 @ 8:41am
Tags: C#, Thread, Action
445 Views
no comments
 
C#
public static class zlnkREST
    {
        static string CONST_UN = "twtmug"; // User your own UserName in Case you wanna track all your posts,
        static string CONST_Service = "http://zlnk.net/zlink.svc/";
        static string CONST_GetOriginalURL = "GetOriginalLink?ShortCode={0}&UN={1}";
        static string CONST_Shorten = "CreateShortLink?oUrl={0}&UN={1}";
        static string CONST_Default = "http://twtmug.com/";
 
        public static string ShortenURL(string strUrl)
        {
by Laith   January 19, 2010 @ 7:19am
214 Views
no comments
 
C#
public class CustomWebPartChrome : WebPartChrome 
{ 
private WebPartZone thisZone; 
private WebPartManager thisMgr; 
 
public CustomWebPartChrome(WebPartZone zone, WebPartManager mgr) : base(zone, mgr) 
{ 
thisZone = zone; 
thisMgr = mgr; 
} 
by Athens Springer   October 29, 2009 @ 7:33am
348 Views
no comments
 
C#
private static object _SyncLock = new object();
 
public TableInfo<TEntity> TableInfo
{
  get 
  {
      if (_TableInfo == null)
      {
          lock (_SyncLock)
          {
by Rick Strahl   August 23, 2009 @ 9:19pm
296 Views
no comments
 
C#
private const string blankTarget = "_blank";
private const string selfTarget = "_self";
 
/// <summary>
/// Open html page specified by Uri in specified target.
/// </summary>
/// <param name="uri"></param>
/// <param name="target">"_blank", "_self", "_top", "_parent", window or frame name.</param>
private static void openHtmlPage(Uri uri, string target) {
        if (String.Equals(target, selfTarget)) {
2168 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