- You will need the latest Python 2.7.x installed (Should install to
C:\Python27\
and will set environment variables). You will need to close your command prompt and re-open for this change to take effect. - You should have a recent version of Visual Studio installed.
- If you are an individual, working in a small company, or only working on Open-Source projects, you can download Visual Studio 2013 Community Edition
- Because node-gyp defaults to expecting VS 2010, you can save your version configuration via npm...
npm config set msvs_version 2013
- Alternatively, you can specify the version via the following environment variables
SET GYP_MSVS_OVERRIDE_PATH=true
SET GYP_MSVS_VERSION=2013
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 fb(num) { | |
var fizz = !(num % 3) ? 'Fizz' : '' | |
,buzz = !(num % 5) ? 'Buzz' : ''; | |
return fizz + buzz || num; | |
} | |
for (var i=1; i<101; i++) console.log(fb(i)); |
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.Runtime.InteropServices; | |
using System.IO; | |
using System.Net.Sockets; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Threading; | |
namespace SharpDoorKit { | |
public class SocketDescriptorStream : Stream { |
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
//get-connection.js | |
'use strict'; | |
require('promisify-patch').patch(); | |
var _ = require('lodash') | |
,cfg = require('./config') | |
,sql = require('mssql') | |
,Promise = require('i-promise') | |
,pools = {} |
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
Tools: | |
Cheese grater | |
strainer (for pasta) | |
1.5 gallon + pot (for pasta) | |
2 quart sauce pan (for sauce) | |
2 quart casserole dish (for baking) | |
1 whisk for mixing | |
2 medium bowls (one for topping mix, the other for mixing the wet ingredients) | |
Ingredients: |
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
require('cc-globals'); //establishes fetch and R (ramda library) globally | |
//regular expression for valid etcd address | |
var address = /^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\:\d{1,5}$/; | |
//if the input is a string, makes it an array containing the string, otherwise returns the original input | |
var fixStr = (v) => typeof v === 'string' ? [v] : v; | |
//converts collection input to an array, returns empty array otherwise | |
var fixArray = (v) => v && v.length && Array.prototype.slice.call(v) || []; |
I hereby claim:
- I am tracker1 on github.
- I am tracker1 (https://keybase.io/tracker1) on keybase.
- I have a public key whose fingerprint is A61A A793 9795 B51D 33FF C8DD 94C6 BAE3 A095 6216
To claim this, I am signing this object:
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
{ | |
"ecmaFeatures": { | |
"arrowFunctions": true, | |
"binaryLiterals": false, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParams": true, | |
"destructuring": true, | |
"forOf": true, | |
"generators": true, |
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
@echo off | |
set batchdir=%~d0%~p0 | |
:start | |
"%batchdir%pngquant.exe" --ext .q.png --force --verbose 256 %1 | |
"%batchdir%optipng.exe" -force -o4 -out "%~dpn1.opt.png" "%~dpn1.q.png" | |
del "%~dpn1.q.png" |