"Program Files"\Microsoft SDKs\Windows\v6.1\Bin\SvcTraceViewer.exe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(obj) { | |
var propList = []; | |
for(var i in obj) { | |
propList.push(i); | |
propList.push('\r\n'); | |
} | |
return propList.join(''); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var readline = require('readline'); | |
var toArray = function(){return Array.prototype.slice.call(arguments[0]);} | |
var log = function() { | |
var arr = toArray(arguments).map(function(v) { | |
// debugger; | |
return v + ''; | |
}); | |
console.log(arr.join(" ")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT o.type_desc AS ROUTINE_TYPE | |
,QUOTENAME(s.[name]) + '.' + QUOTENAME(o.[name]) AS [OBJECT_NAME] | |
,(LEN(m.definition) - LEN(REPLACE(m.definition, CHAR(10), ''))) AS LINES_OF_CODE | |
FROM sys.sql_modules AS m | |
INNER JOIN sys.objects AS o | |
ON m.[object_id] = o.[OBJECT_ID] | |
INNER JOIN sys.schemas AS s | |
ON s.[schema_id] = o.[schema_id] | |
order by LINES_OF_CODE desc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/\_/\ | |
____/ o o \ | |
/~____ =ø= / | |
(______)__m_m) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var fs = require('fs'); | |
var readline = require('readline'); | |
var path = require('path'); | |
var rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
if (process.argv.length < 3) { |
These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stackoverflow.com/a/363409/84852 | |
System.Threading.ThreadPool.QueueUserWorkItem(delegate { | |
DoSomethingThatDoesntInvolveAControl(); | |
}, null); | |
// http://stackoverflow.com/a/661662/84852 | |
///...blah blah updating files | |
string newText = "abc"; // running on worker thread | |
this.Invoke((MethodInvoker)delegate { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using Microsoft.WindowsAzure; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Blob; | |
namespace AzureProject | |
{ | |
public class AzureStorageManager | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
____ | |
(. \ | |
\ | | |
\ |___(\--/) | |
__/ ( . . ) | |
"'._. '-.O.' | |
'-. \ "|\ | |
'.,,/'.,,mrf |
OlderNewer