Skip to content

Instantly share code, notes, and snippets.

View jtremback's full-sized avatar

Jehan jtremback

  • Bay Area
View GitHub Profile
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
@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)
});
@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: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 / 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);
'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 {

The Cryptos Till API allows you to easily create rich apps that handle any cryptocoin. You don't need to build clients, manage load, or worry about security. We handle all of that for you to let you concentrate on building an awesome app.

Your Till account consists of an unlimited number of virtual wallets. These virtual wallets are indetified by a unique string or id, and can hold all of the currencies that we support. We're launching with BTC, LTC, and DOG, but our goal is to support as many coins as possible, as soon as possible. Coins can be transfered between these virtual wallets instantly, and can be sent to any external wallet with one API call.

The foundation of our business is the security of your user's funds, but we also strongly believe that you should have as much control as possible. We only hold as many cryptocoins as are neccesary to handle day-to-day transactions. You hold the rest in cold wallets under your control. We have configurable rules on when we send funds in Till to your cold wal

Create:
Serverside:
POST /api/v1/wallet/create
?id
&secret
&wallet
&coin
response: {
The Cryptos Till API allows you to easily create rich apps that handle any cryptocoin. You don't need to build clients, manage load, or worry about security. We handle all of that for you to let you concentrate on building an awesome app.
Your Till account consists of an unlimited number of virtual wallets. These virtual wallets are indetified by a unique string or id, and can hold all of the currencies that we support. We're launching with BTC, LTC, and DOG, but our goal is to support as many coins as possible, as soon as possible. Coins can be transfered between these virtual wallets instantly, and can be sent to any external wallet with one API call.
The foundation of our business is the security of your user's funds, but we also strongly believe that you should have as much control as possible. We only hold as many cryptocoins as are neccesary to handle day-to-day transactions. You hold the rest in cold wallets under your control. We have configurable rules on when we send funds in Till to your cold wal
@jtremback
jtremback / total_css_reset.css
Created February 10, 2014 05:44
Total CSS reset. Puts all properties back to their defaults from https://developer.mozilla.org/en-US/docs/Web/CSS. Good for bookmarklets and extensions, or if you just don't want to deal with any nonsense.
* {
align-content: stretch;
align-items: stretch;
align-self: auto;
animation-delay: 0s;
animation-direction: normal;
animation-duration: 0s;
animation-fill-mode: none;
animation-iteration-count: 1;
animation-name: none;