Skip to content

Instantly share code, notes, and snippets.

View jm3's full-sized avatar
💭
code

jm3 jm3

💭
code
View GitHub Profile
@jm3
jm3 / folderify.rb
Created September 28, 2016 11:44 — forked from searls/folderify.rb
#! /usr/bin/env ruby
#
# Moves all the files found by the glob into a new directory of the same name
# as the file (less its extension). Useful when you have a bunch of examples
# in one language and you need to introduce multiple sibling examples to sit
# alongside the file
#
# Example usage:
# $ ruby folderify.rb "smells/**/*.js"
@jm3
jm3 / choropleth-README.md
Last active September 11, 2015 22:52 — forked from mbostock/.block
Choropleth

This choropleth encodes unemployment rates from 2008 with a quantize scale ranging from 0 to 15%. A threshold scale is a useful alternative for coloring arbitrary ranges.

mkdir –p ~/src
cd ~/src
git clone git://git.gnupg.org/gnupg.git
cd gnupg
git status
git checkout STABLE-BRANCH-1-4
cp /tmp/idea.c cipher/
./autogen.sh --force
./configure --enable-maintainer-mode --enable-idea && make
make check
@jm3
jm3 / dirty words list from google.txt
Last active November 25, 2023 18:58 — forked from jamiew/google_twunter_lol
Dirty word list (via GOOG + jamiew)
4r5e
5h1t
5hit
a55
anal
anus
ar5e
arrse
arse
ass
@jm3
jm3 / twitter_user_timeline_search.rb
Created March 30, 2011 05:14 — forked from sferik/twitter_user_timeline_search.rb
download all Tweets using ruby
#!/usr/bin/env ruby
require 'twitter'
user = "bongs"
query = /dongs/i
(1..16).each do |page|
Twitter.user_timeline(user, :page => page, :count => 200).each do |tweet|
puts tweet.id.to_s + ": " + tweet.text if query.match(tweet.text)
end