This file contains hidden or 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
# Change PowerShell terminal windows title. | |
$host.ui.RawUI.WindowTitle = "Changed Title" |
This file contains hidden or 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
# Remove untracked files, forced, including directories. | |
git clean -fd | |
# Compare files that have been changed, and staged for commit. | |
git diff --cached |
This file contains hidden or 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
//This only run testA | |
describe('Spec1', function () { | |
// Method is 'fit' "Focus it" in Jasmine version 2. | |
iit('testA', function () { | |
... | |
}); | |
it('testB', function () { | |
... |
This file contains hidden or 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
'use strict'; | |
var express = require('express'); | |
var router = express.Router(); | |
var ConnectWiseRest = require('connectwise-rest'); | |
router.get('/cwapi', function (req, res) { | |
//debugger; |
This file contains hidden or 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.Collections.Generic; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var noopList = new List<string>(0); | |
noopList.Add("an item"); | |
Console.WriteLine(noopList[0]); |
This file contains hidden or 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(thing, doAdditionalStuff) { | |
var originalMethod = thing.method; | |
thing.method = function() { | |
doAdditionalStuff(); | |
return originalMethod.apply(this, arguments); | |
}; | |
})(thingObject, doAdditionalStuffFunction); | |
//Calling out dependencies. |
This file contains hidden or 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 names = new Dictionary<int, string> { | |
{ 1, "Ryan" }, | |
{ 2, "William" }, | |
{ 3, "Jackson" } | |
}; |
This file contains hidden or 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
$("#files").data("kendoUpload").bind("success", onKUploadSuccess); |
This file contains hidden or 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 onKUploadSuccess(e) { | |
$('#GridName').data('kendoGrid').dataSource.read(); | |
$('#GridName').data('kendoGrid').refresh(); | |
} |