Skip to content

Instantly share code, notes, and snippets.

View get_tweets.php
#!/usr/bin/php
<?php
if (! isset($argv[1]))
exit("Provide a Twitter screen name\n");
else
$screen_name = $argv[1];
$file = $screen_name.'_tweets.txt';
View get_tweets.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'open-uri'
require 'simple-rss'
if ARGV[0].nil?
puts "Provide a Twitter screen name"; exit;
else
screen_name = ARGV[0]
@TrevorBramble
TrevorBramble / gist:1981223
Created March 5, 2012 21:30
rvm bin path cry cry cry
View gist:1981223
temp (ree-1.8.7-2012.02@global)$ gem install bundler
WARNING: You don't have /home/trevor/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Successfully installed bundler-1.0.22
1 gem installed
Installing ri documentation for bundler-1.0.22...
Installing RDoc documentation for bundler-1.0.22...
temp (ree-1.8.7-2012.02@global)$ gem -v
1.8.17
temp (ree-1.8.7-2012.02@global)$ which gem
@TrevorBramble
TrevorBramble / mddy.rb
Created March 2, 2013 00:26
auto-updating render of markdown file as html
View mddy.rb
#!/usr/bin/env ruby
exit 1, 'no markdown file specified' if ARGV[0].nil?
require 'bundler'
Bundler.setup
Bundler.require
configure do
set converter: ARGV.fetch(1, 'markdown-calibre')
View keybase.md

Keybase proof

I hereby claim:

  • I am TrevorBramble on github.
  • I am TrevorBramble (https://keybase.io/TrevorBramble) on keybase.
  • I have a public key whose fingerprint is 18E5 D91B AB0A 1D2F 902A 4DAF 1565 9B7D B026 2ACE

To claim this, I am signing this object:

@TrevorBramble
TrevorBramble / slack-gotham.md
Last active November 30, 2019 11:15
Slack color theme based on vim-gotham
View slack-gotham.md
#0A0F14,#10151B,#265360,#D4EBE9,#D26939,#9BD1CE,#EDB54B,#C33027

slack-gotham

View xmonad.hs
import XMonad
import Data.Monoid
import Data.Ratio ((%))
import System.Exit
import System.IO
--import XMonad.Actions.Navigation2D