Skip to content

Instantly share code, notes, and snippets.

import XMonad
import Data.Monoid
import Data.Ratio ((%))
import System.Exit
import System.IO
--import XMonad.Actions.Navigation2D
@TrevorBramble
TrevorBramble / slack-gotham.md
Last active November 30, 2019 11:15
Slack color theme based on vim-gotham
#0A0F14,#10151B,#265360,#D4EBE9,#D26939,#9BD1CE,#EDB54B,#C33027

slack-gotham

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 / mddy.rb
Created March 2, 2013 00:26
auto-updating render of markdown file as html
#!/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')
@TrevorBramble
TrevorBramble / gist:1981223
Created March 5, 2012 21:30
rvm bin path cry cry cry
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
#!/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]
#!/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';