Skip to content

Instantly share code, notes, and snippets.

View jtremback's full-sized avatar

Jehan jtremback

  • Bay Area
View GitHub Profile
'use strict';
//Dependencies
var unirest = require('unirest');
module.exports = function(id, secret, path, version) {
if (!path) var path = 'https://cryptos.io/api/';
if (!version) var version = 'v1/';
return {
@jtremback
jtremback / models.js
Created November 24, 2013 04:12
object nonsense
'use strict';
/* global $, jQuery, alert */
// _.map(DB, function(value, key){
// return key;
// });
function Seed () {
var self = $.observable(this);
@jtremback
jtremback / gist:7576601
Created November 21, 2013 05:41
other error?
4&/1z [jehan:~/go/src/scramble] master(+1/-1)+ 2 ± make
go get scramble
# github.com/sloonz/go-iconv
clang: error: argument unused during compilation: '-fno-eliminate-unused-debug-types'
make: *** [build] Error 2
@jtremback
jtremback / gist:7576152
Created November 21, 2013 04:34
scramble make errors?
4&/1z [jehan:~/go/src/scramble] master(+0/-0)+ 1 ± make
go get scramble
# cd .; hg clone -U https://code.google.com/p/go.crypto /Users/jehan/go/src/scramble/src/code.google.com/p/go.crypto
abort: couldn't find mercurial libraries in [/usr/platlib/Library/Python/2.7/site-packages /usr/local/bin /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload /System
@jtremback
jtremback / gist:6198753
Created August 10, 2013 02:19
Parralax code from royce haynes
// Functional parallaxing calculations
function slidingTitle() {
//Get scroll position of window
windowScroll = $(this).scrollTop();
//Slow scroll of .art-header-inner scroll and fade it out
$artHeaderInner.css({
'margin-top' : -(windowScroll/3)+"px",
'opacity' : 1-(windowScroll/550)
});
grid-padding = 1.5em
number-of-columns = 12
column-width = 100% / number-of-columns
media-tablet = "screen and (max-width: 800px)"
media-phone = "screen and (max-width: 500px)"
*, *:after, *:before