Public Gists by ecarnevale

gist: 216995 hack for a quick fix of Rai...
Gravatar
Fri Oct 23 08:49:19 -0700 2009
1
2
3
diff -r e07f7793ad1b server/python/raindrop/proto/imap.py
--- a/server/python/raindrop/proto/imap.py Fri Oct 23 15:10:01 2009 +1100
+++ b/server/python/raindrop/proto/imap.py Fri Oct 23 17:48:16 2009 +0200
Gravatar
Mon Oct 12 14:57:59 -0700 2009
1
2
3
        $.ajax({
          beforeSend: function(xhrObj){
              xhrObj.setRequestHeader("Accept","application/json");
Gravatar
Mon Oct 12 07:39:19 -0700 2009
1
2
3
CmdUtils.CreateCommand({
  names: ["svel.to", "svel to", "svelto", "short"],
  icon: 'http://mikamai.com/favicon-black.png',
Gravatar
Mon Oct 12 07:01:27 -0700 2009
1
2
3
curl -i -H "Content-type: application/json" -H "Accept: application/json" -X POST -d '{"link"="http://docs.jquery.com/Utilities/jQuery.each"}' http://svel.to/links
 
HTTP/1.1 500 Internal Server Error
Gravatar
Fri Oct 02 03:36:03 -0700 2009
1
2
3
<html>
<head>
<title> Interface to jsFluidDB </title>
Gravatar
Fri Oct 02 02:37:33 -0700 2009
1
2
3
# Rename an email address in all old commits.
# WARNING: Will change all your commit SHA1s.
# Based off of the script from here:
Gravatar
Sat Sep 05 19:31:31 -0700 2009
1
2
3
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://simple-note.appspot.com/api/login"]];
[request setHTTPMethod:@"POST"];
[request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-type"];
Gravatar
Wed Aug 26 01:55:51 -0700 2009
1
2
3
// [jQuery] Headers support for $.ajax
 
// RPC and REST systems recommend using the HTTP ACCEPT header here is how to use them with jQuery
Gravatar
Mon Aug 24 14:01:06 -0700 2009
1
2
3
/*
* Fluidy-hood
* author: Emanuel Carnevale
Gravatar
Fri Jun 12 01:12:52 -0700 2009
1
2
3
# PRINT TO KINDLE in Mac OSX (for Kindle DX)
#
# HUH?
Gravatar
Mon May 04 03:03:12 -0700 2009
1
2
3
// This sqlite3_exec limits the database to 50 DB pages (about 1.5Kb each)
// Huge memory win on iPhone.
if(sqlite3_exec(myDatabsae, "PRAGMA CACHE_SIZE=50", NULL, NULL, NULL) != SQLITE_OK)
Gravatar
Sun May 03 02:52:06 -0700 2009
1
2
3
# Back up your iTunes library to S3
git clone git://github.com/sstephenson/mackerel.git
ruby -rubygems mackerel/examples/itunes_backup.rb amazon-s3://YOUR_ACCESS_KEY_ID:YOUR_SECRET_ACCESS_KEY@s3.amazonaws.com/YOUR_BUCKET_NAME/itunes.mackerel
Gravatar
Sat May 02 03:27:05 -0700 2009
1
2
3
@interface Base58Encoder : NSObject {
 
}
Gravatar
Sat May 02 03:26:59 -0700 2009
1
2
3
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
Gravatar
Fri Apr 24 00:32:50 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
unless ARGV[0]
Gravatar
Mon Mar 23 14:23:08 -0700 2009
1
2
3
require "net/http"
require "uri"
 
Gravatar
Wed Mar 11 07:21:07 -0700 2009
1
2
3
var noun_type_destination = new CmdUtils.NounType( "destination", ['clipboard', 'selected text', 'displayed message'] );
 
CmdUtils.CreateCommand({
gist: 76890 A greasemonkey script to au...
Gravatar
Tue Mar 10 06:14:26 -0700 2009
1
2
3
// ==UserScript==
// @name IHardlyKnowHer
// @namespace http://emanuelcarnevale.com
Gravatar
Tue Feb 17 14:22:30 -0800 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Gravatar
Tue Feb 17 14:21:51 -0800 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">