Public Gists by karmi

Gravatar
Fri Aug 21 04:45:56 -0700 2009
1
2
3
#!/usr/bin/env bash
 
if [ ! -e aspell-cs-0.51-0.tar.bz2 ]
Gravatar
Thu Aug 20 04:34:21 -0700 2009
1
2
3
require 'rubygems'
require 'sinatra'
 
Gravatar
Wed Aug 19 10:39:52 -0700 2009
1
2
3
/*
PLUGIN RELOADING IMPLEMENTATION
 
Gravatar
Mon Aug 17 03:33:16 -0700 2009
1
2
# Include hook code here
ActionView::Base.send( :include, FriendlyMessage )
Gravatar
Sat Aug 01 01:27:21 -0700 2009
1
2
3
# Overload Clearance's `deny_access` methods to allow authentication with HTTP-Auth for eg. API access
# Modeled after technoweenie's restful_authentication
# http://github.com/technoweenie/restful-authentication/blob/7235d9150e8beb80a819923a4c871ef4069c6759/generators/authenticated/templates/authenticated_system.rb#L74-76
Gravatar
Sun Jun 14 00:56:42 -0700 2009
1
2
3
namespace :app do
 
  desc "Install the application for local development"
Gravatar
Thu Jun 11 02:55:44 -0700 2009
1
2
3
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* ~ nice_scaffold.css ~ */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
Gravatar
Mon May 18 03:36:21 -0700 2009
1
2
3
configure :development, :production do
  # Create database and schema for comments if not present
  begin
Gravatar
Fri May 15 02:19:21 -0700 2009
1
2
3
# ...
begin
  require 'redgreen'
Gravatar
Fri May 15 02:11:50 -0700 2009
1
2
3
class Performer
  
  attr_accessor :object, :method_to_call, :parameters_for_method
Gravatar
Fri May 15 00:54:34 -0700 2009
1
2
3
#!/usr/bin/env ruby
#
# Based on drbfs example by Kent Sibilev
Gravatar
Wed May 13 00:09:14 -0700 2009
1
2
3
class KubicekMiddleware
  def initialize(app)
    @app = app
Gravatar
Sun May 10 03:40:10 -0700 2009
1
2
3
module InSameTable
  def self.define_methods(receiver)
    receiver.class_eval do
Gravatar
Tue Apr 21 04:03:38 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
# Disable commiting passwords into repository
Gravatar
Tue Apr 21 02:40:59 -0700 2009
1
2
3
# See http://fukamachi.org/wp/2007/05/18/rails-dump-database-to-fixtures-preserving-utf8/
# http://snippets.dzone.com/posts/show/3393
# http://rubyforge.org/projects/ya2yaml/
Gravatar
Sun Apr 19 04:22:30 -0700 2009
1
2
3
#
# !!! UPDATE AVAILABLE !!!
#
Gravatar
Tue Apr 14 00:58:55 -0700 2009
1
2
3
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication
  xmlns:mx="http://www.adobe.com/2006/mxml"
Gravatar
Thu Apr 09 03:24:31 -0700 2009
1
2
3
// application.js
 
if ("undefined" == typeof console) var console = { log : function(what) {}, info : function(what) {}, error : function(what) {} }
Gravatar
Thu Apr 09 02:49:16 -0700 2009
1
2
3
[user]
  name = {YOUR NAME}
  email = {YOUR E-MAIL}
Gravatar
Wed Apr 08 12:53:22 -0700 2009
1
export PS1="\[\e]2;\u@\h:\W\a\[\e[0;30;1m\]\w\[\e[0m\]\n\u\[\e[30;1m\]▹ \[\e[0m\]"