Skip to content

Instantly share code, notes, and snippets.

View jorilallo's full-sized avatar

Jori Lallo jorilallo

View GitHub Profile
### Keybase proof
I hereby claim:
* I am jorilallo on github.
* I am jorilallo (https://keybase.io/jorilallo) on keybase.
* I have a public key whose fingerprint is 29CA 092E A5DB 817C 54BC 8D7E CEC7 EB2B 9E18 792D
To claim this, I am signing this object:
Verifying that +jorilallo is my Bitcoin username. You can send me #bitcoin here: https://onename.io/jorilallo
@jorilallo
jorilallo / gist:1e61f3185ef75f00759b
Created January 29, 2015 21:15
Coinbase Exchange signing with Node.js
var crypto = require('crypto');
var secret = 'PYPd1Hv4J6/7x...';
var timestamp = Date.now() / 1000;
var req_url = '/orders';
var body = JSON.stringify({
price: '1.0',
size: '1.0',
@jorilallo
jorilallo / gist:c72e2211b7b8d3770bc3
Created January 29, 2015 21:17
Coinbase Exchange signing with Ruby
require "base64"
require 'openssl'
require 'json'
class CoinbaseExchange
def initialize(key, secret, passphrase)
@key = key
@secret = secret
@passphrase = passphrase
end
@jorilallo
jorilallo / gist:7b9b2e632964c5fbf827
Created January 29, 2015 21:17
Coinbase Exchange signing with PHP
<?php
class CoinbaseExchange {
public function __construct($key, $secret, $passphrase) {
$this->key = $key;
$this->secret = $secret;
$this->passphrase = $passphrase;
}
public function signature($request_url='', $body='', $timestamp=false, $method='GET') {
$body = is_array($body) ? json_encode($body) : $body;

I absolutely HATE the new Kippt. It sucks. It's 1,000 times harder to view my links. It makes me more inefficient, which is the opposite of what I hoped Kippt could do for me. Also, moving the search feature to the left side of the screen is plain idiotic. Most sites have inadvertently trained users to look for this feature in the upper right corner of the screen, so that's what users do. But you guys place yours in the least-popular place to set a search feature, so that it literally is the last place one will look when seeking it. I left delicious because I liked your (now old) design, but the only thing I liked about Kippt is long gone. This new design may have inspired high-fives from all the geeks that created it, but for the common user, this is an absolute FAIL. It is not intuitive and it certainly does not simplify my workflow. If it does not change back by next week, my account will be inactive and I'll find another site to use. Last thing, fire all the morons that had a say in approving this shit sa

@jorilallo
jorilallo / gist:871362
Created March 15, 2011 20:12
Destination of short url
# Source: http://stackoverflow.com/questions/2454149/python-detect-destination-of-shortened-or-tiny-url
import urllib2
response = urllib2.urlopen("http://bit.ly/AoifeMcL_ID3") # Some shortened url
url_destination = response.url
@jorilallo
jorilallo / Import Delicious bookmarks in Python
Created March 17, 2011 19:11
Use export file as source
from BeautifulSoup import BeautifulSoup
from datetime import datetime
def import_bookmarks(data):
'''
Get bookmarks from Delicious' export file format
'''
soup = BeautifulSoup(data)
deli_bookmarks = soup.findAll('dt')
@jorilallo
jorilallo / gist:898526
Created April 1, 2011 17:33
Boring Convore
p.follow-us {
display: none !important;
}
p.hosted a {
display: none !important;
}
div.box {
box-shadow: none !important;
//this is a generic function which should be moved to a Baseclass of Backbone or a Backbone extension
autoBind =
{
autoBind: function () {
var self = this;
var funcs = _.functions(this.constructor.prototype);
var protoFuncs = ['autoBind', 'constructor'].concat(
_.functions(Backbone.Collection.prototype),
_.functions(Backbone.Model.prototype),
_.functions(Backbone.View.prototype));