%systemroot%\system32\drivers\etc\
/lib/systemd/system/docker.service
C:\Users\william\AppData\Roaming\npm |
:w !sudo tee % |
python -m SimpleHTTPServer |
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'YOUR_NAME_HERE' |
var pSlice = Array.prototype.slice; | |
function createSpy(fn) { | |
function spy() { | |
// clone and coerce arguments into an array | |
var spiedArgs = pSlice.call(arguments); | |
// remember the arguments the spy was called with | |
spy.calls.push(spiedArgs); | |
// call the "behaviour" function passed when creating this |
static void StubKeyInConfig(string appSettingsKey, string appSettingsValue) | |
{ | |
var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); | |
config.AppSettings.Settings.Add(appSettingsKey, appSettingsValue); | |
config.Save(); | |
ConfigurationManager.RefreshSection("appSettings"); | |
} |
var http = require('http'); | |
var req = http.request({host:'www.google.com',port:80,method: 'GET'}, | |
function(res){ | |
console.log('Status Code : %s', res.statusCode); | |
res.setEncoding('utf8'); | |
res.on('data', function(chunk){ | |
console.log(chunk); | |
}); | |
}); |
var whatever = (function(that){ | |
return function(){ | |
//do stuff and enjoy access to the passed context via 'that' | |
} | |
}(this)); |