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,
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) {
53 Views
1 comments
new AsyncNetTask(myContext, myHandler) { // 작업중에 필요한 변수가 있다면 finalize 하거나 이 객체의 생성자 인자로 넘길 수 있을 것입니다. // 유지해야 하는 변수라면 멤버 변수 등을 사용할 수도 있을 것입니다. Mydata mData; @Override protected TcpEnvelope onPreExecute() { return makeEnvelope(); }
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() {
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
Thread.GetHashCode() AppDomain.GetCurrentThreadId()
106 Views
no comments
#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>
182 Views
no comments
-- 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
173 Views
no comments
public void Go() { for (int i = 0; i < 100; i++) { WaitCallback wcb = new WaitCallback(this.DoWork); ThreadPool.QueueUserWorkItem(wcb, i); } Console.ReadLine(); }
143 Views
no comments
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 */
331 Views
no comments
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>' )
284 Views
no comments
// 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
445 Views
no comments
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) {
214 Views
no comments
public class CustomWebPartChrome : WebPartChrome { private WebPartZone thisZone; private WebPartManager thisMgr; public CustomWebPartChrome(WebPartZone zone, WebPartManager mgr) : base(zone, mgr) { thisZone = zone; thisMgr = mgr; }
348 Views
no comments
private static object _SyncLock = new object(); public TableInfo<TEntity> TableInfo { get { if (_TableInfo == null) { lock (_SyncLock) {
296 Views
no comments
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
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
