Skip to content

Instantly share code, notes, and snippets.

View jtremback's full-sized avatar

Jehan jtremback

  • Bay Area
View GitHub Profile
<div class="adv-common search-bar">
<input type="text" class="adv-common search" placeholder="Search"/>
</div>
@jtremback
jtremback / My own Gmail
Created April 21, 2014 03:15
My own Gmail
function _B_log(imp, opt_val) {
var p = "imp\x3d" + imp;
if (arguments.length > 1)
p += "\x26val\x3d" + opt_val;
_B_logImg_("jsle", p)
}
var loadTimes = [GLOBALS[0], GLOBALS[1], JS_START_TIME];
var loadTimesMap = {"fjs": GLOBALS[0],"bjsi": GLOBALS[1],"sjsi": JS_START_TIME};
function _B_record(opt_Name, opt_onlyMap) {
var t = (new Date).getTime();
'use strict';
var mongoose = require('mongoose');
var Account = mongoose.model('Account');
var Tip = mongoose.model('Tip');
var models = {
Tip: Tip,
Account: Account
};
function _handleTouch() {
var self = this;
self.pageViewPos = new Transitionable(0);
self.sync = new GenericSync(function() {
return self.pageViewPos.get(0);
}, {direction: GenericSync.DIRECTION_X});
self.pageView.pipe(self.sync);
'use strict';
/*global $, main_html, style_css, toolbar_html*/
console.log('hello.')
var style_css = '.dgw-dogewand *{-webkit-align-content:stretch;-ms-flex-line-pack:stretch;align-content:stretch;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-align-self:auto;-ms-flex-item-align:auto;align-self:auto;-webkit-animation-delay:0s;animation-delay:0s;-webkit-animation-direction:normal;animation-direction:normal;-webkit-animation-duration:0s;animation-duration:0s;-webkit-animation-fill-mode:none;animation-fill-mode:none;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-name:none;animation-name:none;-webkit-animation-play-state:running;animation-play-state:running;-webkit-animation-timing-function:ease;animation-timing-function:ease;-webkit-backface-visibility:visible;-ms-backface-visibility:visible;backface-visibility:visible;background-attachment:scroll;background-clip:border-box;background-color:transparent;background-image
@jtremback
jtremback / gist:9404530
Created March 7, 2014 02:59
single-step tip resolve
resolve: function (account, callback) {
if (this.state !== 'created') return callback(new Error('Tip cannot be claimed')); // Sorry, all done
if (account._id !== this.from_wallet || account._id !== this.to_wallet) {
return callback(new Error('Wrong wallet')); // Wrong wallet
}
this.state = 'resolving';
this.resolved_id = new ObjectID(); // resolved_id identifies the tip later
this.save(function (err, tip) {
@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;
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