Skip to content

Instantly share code, notes, and snippets.

View shcarrico's full-sized avatar

Stan Carrico shcarrico

View GitHub Profile
Verifying that +stancarrico is my openname (Bitcoin username). https://onename.io/stancarrico
import can from 'can';
import stache from 'can/view/stache';
import tpl from 'template.stache!text';
can.$('body').append(can.stache(tpl)())
@shcarrico
shcarrico / custom_search.html
Created April 11, 2014 00:22
google custom search
<script>
(function() {
var cx = '005038872526037353663:nguw8i5eequ';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
@shcarrico
shcarrico / .jshintrc.js
Last active December 15, 2015 04:28 — forked from connor/.jshintrc.js
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.