This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
echo 'deb http://http.debian.net/debian-backports squeeze-backports(-sloppy) main' > /etc/apt/sources.list.d/backports.list | |
apt-get update | |
apt-get -t squeeze-backports install "ansible" |
# verifying an md5 checksum... | |
md5 electrum-1.9.7.dmg | |
# then compare checksum | |
# verifying a gpg sig... | |
# 1. find the hex key id for the signer's public key | |
gpg --recv-keys 0x22453004695506FD | |
# 2. download the file and the .asc signature file for that file then | |
# 3. validate the file | |
gpg --verify electrum-1.9.7.dmg{.asc.txt,} |
#import <UIKit/UIKit.h> | |
@interface HighChartViewController : UIViewController | |
@property (weak, nonatomic) IBOutlet UIWebView *webView; | |
@property (strong, nonatomic) NSArray* seriesArray; | |
@property (copy, nonatomic) NSString* optionFileName; | |
@end |
<?php | |
function create_statcounter_project($website_url, $website_title) { | |
/** Modify **/ | |
$username = "myusername"; | |
$password = "mypassword"; | |
$timezone="America/Chicago"; | |
/** Do not modify past here **/ |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
import os | |
def split(filehandler, delimiter=',', row_limit=10000, | |
output_name_template='output_%s.csv', output_path='.', keep_headers=True, line_terminator='\n'): | |
""" | |
Splits a CSV file into multiple pieces. | |
A quick bastardization of the Python CSV library. | |
Arguments: |