Skip to content

Instantly share code, notes, and snippets.

@zachdev
zachdev / squeeze.sh
Created March 21, 2016 15:29 — forked from martinrusev/debian_6_squeeze.sh
Ansible install on Debian
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 **/
@zachdev
zachdev / 0_reuse_code.js
Created March 23, 2014 05:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@zachdev
zachdev / csv_splitter.py
Last active December 14, 2015 16:59 — forked from jrivero/csv_splitter.py
When executing the script on a Windows machine, blank lines were being inserted into the output CSV files. Therefore, I added the line_terminator argument to set the default line terminator to "\n", which solves this problem.
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: