Skip to content

Instantly share code, notes, and snippets.

View theycallmeswift's full-sized avatar

Swift theycallmeswift

View GitHub Profile
var casper = require('casper').create({
verbose: true,
logLevel: 'debug',
pageSettings: {
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4'
}
});
var url = 'https://www.pinterest.com/login/';
@theycallmeswift
theycallmeswift / vim.txt
Created September 27, 2012 04:13 — forked from bilalq/vim.txt
Vim version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 26 2012 23:40:04)
MacOS X (unix) version
Included patches: 1-266
Compiled by theycallmeswift@Swifts-MacBook-Pro.local
Huge version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv
var main = function () {
var ghresize = function (options) {
var ghwid = $("div#wrapper").width()
, extra = $("span.repo-label").width() * 2;
if(options && options.debug) {
console.log("Resizing");
}
@theycallmeswift
theycallmeswift / uri.js
Created April 20, 2012 15:40 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.host; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
@theycallmeswift
theycallmeswift / package.json
Created March 31, 2012 23:42 — forked from vbonacci/package.json
Node ping cron
{
"author": "",
"name": "1in7-cron-hour",
"description": "cron for 1in7",
"version": "0.0.0-2",
"repository": {
"url": ""
},
"engines": {
"node": "~0.6.9"