Skip to content

Instantly share code, notes, and snippets.

Nook Scheel nooks

Block or report user

Report or block nooks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View proxy.pac
function FindProxyForURL (url, host) {
if (dnsDomainIs(host, '.k8s')) {
return 'PROXY 127.0.0.1:80';
}
return 'DIRECT';
}
View can_bus.ino
#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);
@nooks
nooks / ECMA-262.1.js
Last active Jul 20, 2017
ЭТОТ КОДт НЕ ИСПОЛЬЗУЕТСЯ В PRODUCTION !!!@#$%^&*()(*&^%$#$%^&*!!!
View ECMA-262.1.js
var foo = 1;
(function () {
if (!foo) {
var foo = 2;
}
console.log(foo);
})();
@nooks
nooks / index.js
Created Dec 2, 2014
Heroku write config vars
View index.js
/*!
* Module dependencies.
*/
var Heroku = require('heroku-client')
, _ = require('lodash')
, async = require('async')
, fs = require('fs')
, path = require('path')
View designer.html
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
</template>
<script>
View .vimrc
let g:github_user= 'nooks'
"let g:gist_open_browser_after_post = 1
let g:gist_clip_command = 'pbcopy'
View .vimrc
let g:github_user= 'nooks'
let g:gist_browser_command = '/usr/bin/open -a /Applications/Google Chrome.app %URL%'
View javascript.snippets
snippet async.apply
async.apply(${1:Class}.bind(${1/(\w+).*/$1/}), ${2:arguments})
endsnippet
View javascript.snippets
snippet async.apply
async.apply(${1:Class}.bind(${1/(\w+).*/$1/}), ${2:arguments})
endsnippet
View gist:4643866a6a2bcc988759
" Quick array creation
nmap <leader>ta vF=l<Esc>:s/\%V\S\+/"&",/g<CR>A<BS><Esc>vF=2lgS[JJ:let @/ = ""<CR>
You can’t perform that action at this time.