Public Gists by jnunemaker

gist: 237581 push unique in mongodb
Gravatar
Tue Nov 17 21:18:56 -0800 2009
1
2
3
require 'pp'
require 'rubygems'
require 'mongo_mapper'
gist: 232953 mongo initializer to load c...
Gravatar
Thu Nov 12 06:59:58 -0800 2009
1
2
3
development: &global_settings
  database: textual_development
  host: 127.0.0.1
gist: 230944 db eval to search in array ...
Gravatar
Tue Nov 10 07:09:47 -0800 2009
1
2
3
require 'pp'
require 'rubygems'
require 'mongo_mapper'
gist: 230531 simple app configuration
Gravatar
Mon Nov 09 17:20:16 -0800 2009
1
2
3
module Harmony
  # Allows accessing config variables from harmony.yml like so:
  # Harmony[:domain] => harmonyapp.com
gist: 229007 simple auth using twitter g...
Gravatar
Sat Nov 07 17:11:34 -0800 2009
1
2
3
class ApplicationController < ActionController::Base
  include TwitterAuth::Helpers
  
gist: 217362 example of warden with sinatra
Gravatar
Fri Oct 23 21:07:18 -0700 2009
1
2
3
Warden::Manager.serialize_into_session{|user| user.id }
Warden::Manager.serialize_from_session{|id| User.get(id) }
 
Gravatar
Tue Oct 20 21:12:16 -0700 2009
1
2
3
In response to all the responses to:
 
http://twitter.com/rtomayko/status/1155906157
Gravatar
Tue Oct 20 20:52:04 -0700 2009
1
2
3
# Example from Rick Olson's Sparklines middleware
# http://github.com/technoweenie/rack-sparklines/blob/master/lib/rack-sparklines.rb
module Rack
gist: 213030 troubleshooting mongo mappe...
Gravatar
Sun Oct 18 19:20:27 -0700 2009
1
2
3
$ ruby test_custom_data.rb
Loaded suite test_custom_data
Started
gist: 207347 mongo $where stuff and a bu...
Gravatar
Sat Oct 10 19:25:42 -0700 2009
1
2
3
require 'mongo_mapper'
require 'spec'
require 'log4r'
Gravatar
Sun Sep 13 14:08:09 -0700 2009
1
2
3
/**
  IMPORTANT: Requires this version of jquery
             until 1.3.3 comes out http://gist.github.com/186325
Gravatar
Sun Sep 13 14:08:05 -0700 2009
1
2
3
/**
  IMPORTANT: Requires this version of jquery
             until 1.3.3 comes out http://gist.github.com/186325
Gravatar
Sun Sep 13 13:59:12 -0700 2009
1
2
3
/*!
 * jQuery JavaScript Library v1.3.3pre
 * http://jquery.com/
gist: 165920 Pretty output of rails erro...
Gravatar
Tue Aug 11 09:00:18 -0700 2009
1
2
3
// only outputs if console available and does each argument on its own line
function log() {
  if (window && window.console && window.console.log) {
gist: 147427 a starting point for authen...
Gravatar
Tue Jul 14 20:33:56 -0700 2009
1
2
3
# include this in application controller
module Authentication
  protected
gist: 147052 jQuery and Rails form errors
Gravatar
Tue Jul 14 09:40:37 -0700 2009
1
2
3
(function($) {
  // errors is an array of errors
  // render :json => {:errors => @item.errors.full_messages}
gist: 142894 bash completion support for...
Gravatar
Wed Jul 08 07:47:54 -0700 2009
1
2
3
#
# bash completion support for core Git.
#
gist: 142568 Recently added to mongomapp...
Gravatar
Tue Jul 07 21:00:34 -0700 2009
1
2
3
= Note on Patches/Pull Requests
 
* Fork the project.
Gravatar
Thu Jun 18 11:16:07 -0700 2009
1
2
3
HOWTO: iPhone AT&T Tethering
============================
 
gist: 131302 Campfire from the command line
Gravatar
Wed Jun 17 08:47:05 -0700 2009
1
2
3
# Lighter -- Campfire from the command line
# usage: ruby lighter.rb subdomain "Main Room" macournoyer@gmail
require "rubygems"