Skip to content

Instantly share code, notes, and snippets.

View charliegroll's full-sized avatar
👾

Charlie charliegroll

👾
View GitHub Profile
set normal (set_color normal)
set magenta (set_color magenta)
set yellow (set_color yellow)
set green (set_color green)
set red (set_color red)
set gray (set_color -o black)
# Fish git prompt
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showstashstate 'yes'
@charliegroll
charliegroll / cloudSettings
Last active July 19, 2017 20:35
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-07-19T20:35:11.690Z","extensionVersion":"v2.8.2"}
/usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower
/usr/local/bin/grunt -> /usr/local/lib/node_modules/grunt-cli/bin/grunt
/usr/local/bin/yo -> /usr/local/lib/node_modules/yo/lib/cli.js
> spawn-sync@1.0.13 postinstall /usr/local/lib/node_modules/yo/node_modules/spawn-sync
> node postinstall
> yo@1.4.8 postinstall /usr/local/lib/node_modules/yo
> yodoctor
@charliegroll
charliegroll / pickem-highlighter.js
Last active October 11, 2015 21:52
Yahoo! Sports Pro Football Pick'em Game Highlighter
var jq,
timerInt,
reloadInt,
reorgStandings,
highlighter;
//load jQuery
jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
var i = 1,
curr = 2;
function isPrime(x){
var j = 2,
sq = Math.sqrt(x);
while (j <= sq) {
if (x%j == 0) return false;
j++;

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

@charliegroll
charliegroll / reading-words.js
Created February 24, 2013 17:38
For some reason, test is empty after this happens but isn't while it's being populated
var test = [];
var fs = require('fs');
var filename = '/usr/share/dict/words';
require('readline').createInterface({
input: fs.createReadStream(filename),
terminal: false
}).on('line', function(line){
test.push(line);
});
@charliegroll
charliegroll / learnmesome.rb
Last active December 10, 2015 06:18 — forked from anonymous/learnme.rb
Feel free to comment with some explanations as to the syntax
def abilities
@abilities ||= begin # wtf is this crap ||=
abilities = Six.new
abilities << Ability # what the hell is <<?
abilities
end
end
# Remove user from all projects and
# set blocked attribute to true