Public Gists by alexyoung

Gravatar
Thu Nov 19 03:13:31 -0800 2009
1
2
3
10:41 [#jschat] <simon> there's a meeting room here that people can hire for the day
10:42 [#jschat] <simon> and the office manager woman who shows people around it doesn't know where the light switch is
10:42 [#jschat] <simon> so when she first showed someone in there a few weeks ago, I got up and
Gravatar
Sat Nov 14 05:30:16 -0800 2009
1
2
3
require 'rubygems'
require 'json'
require 'socket'
Gravatar
Mon Nov 09 02:10:23 -0800 2009
1
2
3
map <leader>t :FuzzyFinderFile<CR>
map <leader>a :Ack
map <leader>l :TlistToggle<CR>
Gravatar
Thu Nov 05 15:03:20 -0800 2009
1
2
3
; t is a struct my program uses, so :body is just a string
  (let [body (AttributedString. (t :body))]
    (doto body
Gravatar
Tue Nov 03 09:36:31 -0800 2009
1
2
3
module GitAuthorHelper
  # Example in a template:
  # By {{ page.url | author }}
Gravatar
Sun Nov 01 15:08:45 -0800 2009
1
2
(defn red [message] (str "\033[31m" message "\033[0m"))
(defn green [message] (str "\033[32m" message "\033[0m"))
Gravatar
Fri Oct 23 07:21:53 -0700 2009
1
2
3
  Scenario Outline: searching
    Given I am logged in as a stuff
    And the following losses records:
Gravatar
Tue Oct 13 08:27:58 -0700 2009
1
2
3
require 'rubygems'
require 'sinatra'
require 'mustache/sinatra'
Gravatar
Sun Oct 11 03:44:41 -0700 2009
1
2
3
module Custom
  module AssertionMacros
    def empty?
Gravatar
Wed Oct 07 14:43:38 -0700 2009
1
2
3
bm = Benchmark.measure do
  1000.times do
    class BenchmarkClass
Gravatar
Fri Sep 18 02:54:08 -0700 2009
1
2
3
function! Ack(args)
    let grepprg_bak=&grepprg
    set grepprg=ack\ -H\ --nocolor\ --nogroup
Gravatar
Thu Sep 17 09:51:24 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'tempfile'
Gravatar
Thu Sep 17 05:17:09 -0700 2009
1
2
3
class Vlad::Git
  def export(revision, destination)
    revision = 'HEAD' if revision == "."
Gravatar
Sat Aug 01 08:09:21 -0700 2009
1
2
3
# These aliases provide a single shell command: r
#
# r opens up three tabs in Terminal with:
gist: 153944 Let's not use relational da...
Gravatar
Fri Jul 24 02:49:29 -0700 2009
1
2
3
require 'rubygems'
require 'rufus/tokyo'
require 'yaml'
Gravatar
Thu Jul 23 09:44:36 -0700 2009
1
2
3
require 'rubygems'
require 'rufus/tokyo'
require 'gibbler'
Gravatar
Sat Jul 18 17:18:29 -0700 2009
1
2
3
    def post
      url = URI.parse "#{@loom_login[:url]}/report/#{@loom_login[:api_key]}"
    
Gravatar
Thu Jul 09 04:02:25 -0700 2009
1
2
3
namespace :tags do
  task :generate do
    puts 'Generating tags...'
Gravatar
Fri Jul 03 01:57:33 -0700 2009
1
2
3
require 'benchmark'
 
module Kernel
Gravatar
Wed Jun 17 11:45:52 -0700 2009
1
2
3
;; I'm not saying this is good Clojure, but it was off the top of my head
;; It's a title bot for jschat.org