Visit my blog or connect with me on Twitter
git init
or
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
Visit my blog or connect with me on Twitter
git init
or
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Punchclock; | |
namespace AsyncPlayground | |
{ | |
class Program |
var searchForSubject = function(model, event){ | |
_subjectSearchText = event.srcElement.value; | |
console.log(_subjectSearchText); | |
// simple first algorithm - | |
// wait for 1 second | |
// search if | |
// the search string is non-falsey | |
// the string at the start of the timeout is the same as the current | |
// the search string is at least 3 characters |
(function ($) { | |
// register namespace | |
$.extend(true, window, { | |
"Slick": { | |
"DragRowSelectionModel": DragRowSelectionModel | |
} | |
}); | |
function DragRowSelectionModel(options) { |
public static class Extensions | |
{ | |
public static IEnumerable<DropDownFormat> ToDropDownFormat<T>(this IList<T> list, | |
Expression<Func<T, int>> idColumn, | |
Expression<Func<T, string>> textColumn) | |
{ | |
List<DropDownFormat> retList = new List<DropDownFormat>(); | |
var idMemberExp = (MemberExpression)idColumn.Body; | |
var textMemberExp = (MemberExpression)textColumn.Body; |
var bootstrap; | |
(function (bootstrap) { | |
var itemsLoaded = [];//maintain a list of items we have already loaded to prevent duplicates | |
var bootstrap = (function () { | |
function bootstrap(scriptSource, scriptId, callback) { | |
head = document.head || document.getElementsByTagName("head")[0]; | |
scriptId = scriptId || "script" + Math.floor(Math.random() * 1234); | |
this.scriptSource = scriptSource; | |
callback = callback || null; |
module bootstrap { | |
var itemsLoaded = []; //maintain a list of items we have already loaded to prevent duplicates | |
class bootstrap { | |
loaded: bool; | |
scriptSource: string; | |
scriptTag: string; |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using ScrewTurn.Wiki.PluginFramework; | |
using ScrewTurn.Wiki; | |
using System.Text.RegularExpressions; | |
namespace DevCentral.ScrewTurnProviders | |
{ |
if (test-path function:\prompt) { | |
$oldPrompt = ls function: | ? {$_.Name -eq "prompt"} | |
remove-item -force function:\prompt | |
} | |
function prompt { | |
function getGitStatus { | |
$branch = git branch 2>&1 | |
if($branch.Exception -eq $null) { | |
$status = "git" | |
$branch | foreach { |