All Gists

Gravatar
Fri Nov 20 15:43:26 -0800 2009 by jwiegley
1
2
3
2009/11/20 drewr becomes a father!
    AssetAndLiability:Progeny:Son 2 Child
    GodOnlyKnowsWhereSoulsComeFrom
Gravatar
Fri Nov 20 15:41:27 -0800 2009 by vitaliel
1
2
3
#!/usr/bin/env ruby
 
# Author: Vitalie L
Gravatar
Fri Nov 20 15:40:34 -0800 2009 by msassak
1
2
3
module Cucumber
  module SmartAst
    class Execute < Command
Gravatar
Fri Nov 20 15:32:49 -0800 2009 by comradeb14ck
1
2
3
#!/usr/bin/python
 
"""
Gravatar
Fri Nov 20 15:30:42 -0800 2009 by tstone
1
2
3
// When the toolbar button is clicked...
$('#newNickButton').click(function() {
    getAndSetNewNickname(null);
gist: 239876 A simple Ruby method which ...
Gravatar
Fri Nov 20 15:30:35 -0800 2009 by jimeh
1
2
3
# A simple Ruby method which checks if the current script
# is running as root, and if not, re-envokes itself by
# using the sudo command.
Gravatar
Fri Nov 20 15:18:24 -0800 2009 by tschmidt
1
2
3
# I know this could probably be written better but it's just for fun anyway x^P
 
class Crochet
Gravatar
Fri Nov 20 15:18:00 -0800 2009 by nciagra
1
2
3
/*
 * CPUserDefaults.j
 * AppKit
gist: 239869 win32
Gravatar
Fri Nov 20 15:13:47 -0800 2009 by hash
1
baza
Gravatar
Fri Nov 20 15:12:42 -0800 2009 by eculver
1
2
3
$.ajax({
        beforeSend: function(xhrObj){
                xhrObj.setRequestHeader("Content-Type","application/json");
Gravatar
Fri Nov 20 15:11:56 -0800 2009 by jxl
1
2
3
#!/usr/bin/env ruby
# Sinatra bookmarklet thingie <jxl@ganja.nl>
# HIGHLY INSECURE, USE ON TRUSTED NETWORKS ONLY
Gravatar
Fri Nov 20 15:10:16 -0800 2009 by botanicus
1
2
<pre id="block" class="code js" style="display: none;"> window.addEvent("domready", function() { $$('pre.code').light({ altLines: 'hover' }); })</pre>
<pre class="standardLighter"><!-- / See http://pradador.com/code/lighterjs --> window.addEvent("domready", function() { <!-- / Syntax highlight usin
Gravatar
Fri Nov 20 15:04:14 -0800 2009 by spicycode
1
2
3
#!/usr/bin/env ruby
require 'rubygems'
require 'active_support'
Gravatar
Fri Nov 20 15:01:11 -0800 2009 by jwiegley
1
2
3
      parent->HANDLER(revalued).on_only(string("--gain"));
      parent->HANDLER(amount_).set_expr(string("--gain"), "(amount, cost)");
      // Since we are displaying the amounts of revalued postings, they
Gravatar
Fri Nov 20 14:50:53 -0800 2009 by briandoll
1
2
3
class ActiveRecord::Base
  def self.table_name_prefix
    "appname."
Gravatar
Fri Nov 20 14:45:15 -0800 2009 by bry4n
1
2
3
 
 
======= /Users/bry4n/scripts/ruby/score-fu/bin/score-fu =======
Gravatar
Fri Nov 20 14:42:37 -0800 2009 by MrN
1
2
3
(gdb) run -f doc/sample.dat bal
Starting program: /home/aristid/Code/ledger/build/ledger/debug/ledger -f doc/sample.dat bal
[Thread debugging using libthread_db enabled]
Gravatar
Fri Nov 20 14:33:57 -0800 2009 by ryanb
1
2
3
# Example of nested resource with CanCan
class CommentsController < ApplicationController
  before_filter :load_and_authorize_resource
Gravatar
Fri Nov 20 14:28:47 -0800 2009 by erikj
1
2
3
[erikj@176844-db1]: mysql zb_logs -e "select count(1) as c, sc_bytes from log_http where zbfile_id=7156 group by sc_bytes order by c;"
+------+----------+
| c | sc_bytes |
Gravatar
Fri Nov 20 14:25:51 -0800 2009 by ap
1
2
3
My dists with non-confused history:
 
* <http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Authentication-Credential-HTTP/>