Skip to content

Instantly share code, notes, and snippets.

View technicool's full-sized avatar
🧯
Fixing or making bugs :)

Marshall Anschutz technicool

🧯
Fixing or making bugs :)
View GitHub Profile
@technicool
technicool / ASCII SMILEY
Created December 31, 2011 16:43
Smiley Face in ASCII Art
.;oxkkkkkkxo;.
'::c:,..........,:c::'
;cc'....................'cc;
.lc............................cl.
lc.......lxxl........cxkl.........cl
,d........OXXXXO......kXXXX0..........d,
cl........cXXXXXXc....;XXXXXXo..........lc
:l.........lXXXXXXl....:XXXXXXd...........l:
.x...........KXXXXK......0XXXXX,............x.
o,. ....'xKKx'.......dKKk,..... ..,o
@technicool
technicool / googlecleaner.user.js
Created January 27, 2012 01:29
Clean Google links
// ==UserScript==
// @name Clean Google links
// @namespace http://manschutz.com/stuff/greasemonkey
// @description clean links in Google search result page (remove "onmousedown" attribute).
// @include http://www.google.com/search?*
// @include https://www.google.com/search?*
// ==/UserScript==
(function() {
var links = document.getElementsByTagName('a');
@technicool
technicool / dabblet.css
Created January 27, 2012 01:50 — forked from Couto/dabblet.css
Button with Arrow
/**
* Button with Arrow
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
}
@technicool
technicool / manschutz-rsa.pub
Created March 20, 2012 18:22
manschutz@manschutz-desktop public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAeREofD8195guCSmn9MHJ3W8GLavAxfAP5DFlWCJZW6CBJuHtClnCKUWa1cqk3o7n322SPXh97fLonizMYqouzbiXsNsmK4ixwOWHbHSbkNQeLpCHhd/C09Zc3fL5HqjUNo+pC4lT/Mv1uF4GSWI6uyDwGQ2zWfmpMJ1CZ9hlcJdP1rcBuR97poc/PpwE65S1dR9rCB2t82yv+nP/aIk5FDPMTv2zulI34B6Gl9C7w2qklomF8BR29mUQpP/I6C9SEm6byuKNsw5T41soGsBsDldAs5CnGhsmmKqxp0j1rOySC3rWjIZ7tS0KnUnvmygXG3kL6iFZ3uCRkhvcFsn7 manschutz@manschutz-desktop
@technicool
technicool / DateInput.html
Created April 17, 2012 18:05
Test of Chrome's date input
<input type="date" min="2010-08-14" max="2011-08-14" value="2010-08-14"/>
@technicool
technicool / password.rb
Last active October 11, 2015 06:58
Random pronounceable password generator
def generate_password
# Our consonants and vowels
c = %w(b c d f g h j k l m n p r s t v w x z ch cr fr nd ng nk nt ph pr rd sh sl sp st th tr lt qu dg)
v = %w(a e i o u y oo ei ie )
s = ['!','@','#','$','%','^','&','*','(',')','-','_','=','+','{','}','|','\\',']','[',';',':',',','.','/','?','>','<']
f = rand%2 == 1
parts = []
word = []
5.times do
word << (f ? c.sample : v.sample)
@technicool
technicool / sentences.rb
Last active October 11, 2015 08:08
Random sentence generator
def sentence(length = 5)
wl = []
ws = []
File.open('/usr/share/dict/web2').each_line{ |s|
s = s[0..-2]
if s.length > 4
wl.push(s)
else
ws.push(s)
end
@technicool
technicool / gist:5637355
Created May 23, 2013 16:25
Configure CGMiner with nvidia CUDA support

To build CGMiner with nvidia cuda toolkit installed:

CFLAGS=-I/usr/local/cuda-5.0/include LDFLAGS=-L/usr/cuda-5.0/lib64 ./configure
make
@technicool
technicool / gist:5678955
Last active December 17, 2015 21:59
Highlights of my coding (for BD)

Code Highlights

Responsive Design

  • http://mhpoffice.com/ - This promotional site is responsive and uses the Twitter Bootstrap framework.
  • Click the Login button, and use the username/password emailed, and checkout pages such as the home dashboard's responsive design. Also, go to clients -> choose Barack Obama... Notice the custom responsive layout of the widgets.

Require.js

Part of a simple project for tuning a room's accoustics.... This script calculates a bunch of stuff. It uses require.js to load the modules.

@technicool
technicool / cucumber_screenshots.rb
Created October 9, 2013 02:07
Take screenshots of the browser when traversing web pages. Useful for debugging and for documentation that is always up to date.
Before do |feature|
@feature = feature
@screenshot_step = 0
@screenshot_size = 1000
end
Given /^a desktop browser$/ do
@screenshot_size = 1024
page.driver.resize_window(1024, 720)
end