Skip to content

Instantly share code, notes, and snippets.

View nook-scheel's full-sized avatar

Nook Scheel nook-scheel

View GitHub Profile
function FindProxyForURL (url, host) {
if (dnsDomainIs(host, '.k8s')) {
return 'PROXY 127.0.0.1:80';
}
return 'DIRECT';
}
#include "mcp_can.h"
const int SPI_CS_PIN = 9;
const int LED=13;
boolean ledON=1;
MCP_CAN CAN(SPI_CS_PIN);
void setup()
{
Serial.begin(115200);
@nook-scheel
nook-scheel / ECMA-262.1.js
Last active July 20, 2017 13:59
ЭТОТ КОДт НЕ ИСПОЛЬЗУЕТСЯ В PRODUCTION !!!@#$%^&*()(*&^%$#$%^&*!!!
var foo = 1;
(function () {
if (!foo) {
var foo = 2;
}
console.log(foo);
})();
@nook-scheel
nook-scheel / index.js
Created December 2, 2014 21:57
Heroku write config vars
/*!
* Module dependencies.
*/
var Heroku = require('heroku-client')
, _ = require('lodash')
, async = require('async')
, fs = require('fs')
, path = require('path')
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
</template>
<script>
let g:github_user= 'nooks'
"let g:gist_open_browser_after_post = 1
let g:gist_clip_command = 'pbcopy'
let g:github_user= 'nooks'
let g:gist_browser_command = '/usr/bin/open -a /Applications/Google Chrome.app %URL%'
snippet async.apply
async.apply(${1:Class}.bind(${1/(\w+).*/$1/}), ${2:arguments})
endsnippet
snippet async.apply
async.apply(${1:Class}.bind(${1/(\w+).*/$1/}), ${2:arguments})
endsnippet
" Quick array creation
nmap <leader>ta vF=l<Esc>:s/\%V\S\+/"&",/g<CR>A<BS><Esc>vF=2lgS[JJ:let @/ = ""<CR>