Skip to content

Instantly share code, notes, and snippets.

View sneilan's full-sized avatar

Sean Neilan sneilan

View GitHub Profile
@sneilan
sneilan / gist:7bf0e67db7540cb51f0b
Created March 15, 2016 20:09
Chrome error with latest version of browsermob-proxy
(env) vagrant@vagrant-ubuntu-trusty-64:~/Mobile-Checker$ node app.js
listening on *:3000
{ url: 'http://seanneilan.com/', status: true, report: [] }
/home/vagrant/Mobile-Checker/node_modules/selenium-webdriver/lib/promise.js:654
throw error;
^
WebDriverError: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
@sneilan
sneilan / gist:392846946e4dc0e918b3
Created March 15, 2016 19:54
Mobile Checker Web Driver Erro
(env) vagrant@vagrant-ubuntu-trusty-64:~/Mobile-Checker$ node app.js
listening on *:3000
{ url: 'http://seanneilan.com/', status: true, report: [] }
{ [WebDriverError: chrome not reachable
(Session info: chrome=49.0.2623.87)
(Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 3.13.0-65-generic x86_64)] name: 'WebDriverError' }
@sneilan
sneilan / gist:12ead62c04bf72d09a46
Created July 21, 2014 19:53
forward port 9000 to port 80 on my mac
sudo ipfw add 100 fwd 127.0.0.1,9000 tcp from any to any 80 in
--
-- xmonad example config file for xmonad-0.9
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
-- NOTE: Those updating from earlier xmonad versions, who use
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar
# good morning
print 5
@sneilan
sneilan / gist:3218201
Created July 31, 2012 16:16 — forked from swannodette/gist:3217582
sudoku_compact.clj
(ns sudoku
(:refer-clojure :exclude [==])
(:use clojure.core.logic))
(defn get-square [grid x y]
(for [x (range x (+ x 3))
y (range y (+ y 3))]
(get-in grid [x y])))
(defn init [grid [pos value]]
a = 1 # 1000^0
i = 0 # represents the largest power of 1000 we found
# find the largest power of 1000 that fits into n
while a <= n:
#print a,n,i
if a*1000 <= n:
a *= 1000
i += 1
else: