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
/** | |
* A hash in which the keys are available as an ordered array (keys). | |
*/ | |
var OrderedHash = (function () { | |
function OrderedHash() { | |
this.keys = []; | |
this.vals = {}; | |
} | |
/** | |
* Tests for the existence of a key |
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
import sys | |
import time | |
import os | |
import argparse | |
import configparser | |
journal_dirname = "" | |
journal_cwd = "" | |
journal_date = "" | |
journal_filename = "" |
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
# Takes a file generated by AspNetCore.RouteAnalyzer and converts to a CSV. | |
# Note: you'll need to remove the RouteInformation prefix and quote the object | |
# keys to transform the output into legitimate JSON before using. | |
import sys | |
import json | |
import re | |
# MyController.Index(My.Namespace.Controllers.MyController.Index (My.AssemblyName)) | |
invocationRegex = re.compile(r"(\w+)\.(\w+) \(([\w\.]+) \(([\w\.]+)\)\)") |
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
export class Some<T> { | |
public some: true = true; | |
constructor(public value: T) { } | |
} | |
export class None { | |
public some: false = false; | |
} | |
export type Maybe<T> = Some<T> | None; |
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
*.user | |
.DS_Store | |
**/node_modules/* | |
**/obj/* | |
**/bin/* | |
**/.vs/* | |
**/fontawesome/* |
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
/// <binding ProjectOpened='default' /> | |
'use strict'; | |
... | |
const tslint = require("gulp-tslint"); | |
const tsify = require("tsify"); | |
const source = require("vinyl-source-stream"); | |
const merge = require('merge-stream'); | |
const browserify = require("browserify"); |
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
import * as React from "react"; | |
import * as ReactDOM from "react-dom"; | |
import { Provider } from "react-redux"; | |
import { Router } from "react-router-dom"; | |
import { RouteMap } from "./routes"; | |
import store from "./store"; | |
import history from "./history"; | |
ReactDOM.render(( |
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
const paths = { | |
entries: { | |
ts: [ | |
"Scripts/app.ts" | |
] | |
}, | |
... | |
}; | |
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
#!/bin/bash | |
USERNAME='xyz' | |
# https://news.ycombinator.com/item?id=22210681 | |
for i in `seq 1 20`; | |
do | |
curl --fail -s https://api.github.com/users/$USERNAME/repos?page=$i | jq '.[] | .clone_url' | xargs -t -n1 git clone | |
sleep 1 | |
done |
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
/// <binding ProjectOpened='build' /> | |
"use strict"; | |
const gulp = require('gulp'), | |
merge = require('merge-stream'); | |
const roots = { | |
node_modules: "./node_modules/", | |
wwwroot: "./wwwroot/", | |
wwwlib: "./wwwroot/lib/" |
OlderNewer