Public Gists by vaskom

Gravatar
Tue Oct 27 19:31:37 -0700 2009
1
2
3
# include this in application controller
module Authentication
  protected
Gravatar
Thu Sep 17 22:50:11 -0700 2009
1
2
3
# mongo_template.rb
 
# remove unneeded defaults
Gravatar
Wed Aug 19 07:26:00 -0700 2009
1
2
3
#!/usr/bin/ruby
module Helpers
  LINE = 80
Gravatar
Mon Jul 20 18:24:53 -0700 2009
1
2
3
# download, from_repo, and commit_state methods swiped from
# http://github.com/Sutto/rails-template/blob/07b044072f3fb0b40aea27b713ca61515250f5ec/rails_template.rb
 
Gravatar
Sun Jul 19 19:57:51 -0700 2009
1
2
3
# this shows one way to use rails templates to create
# custom radiant instances tailored for a particular use
# usage:
Gravatar
Tue Jul 07 04:55:11 -0700 2009
1
2
3
require 'sinatra/metal'
 
class SinatraMetal < Sinatra::Base
Gravatar
Thu Jun 25 05:40:56 -0700 2009
1
2
3
require 'rubygems'
require 'sinatra'
require 'redis'
Gravatar
Mon Jun 15 07:11:16 -0700 2009
1
2
3
In response to all the responses to:
 
http://twitter.com/rtomayko/status/1155906157
Gravatar
Mon Jun 15 06:20:38 -0700 2009
1
2
3
# printf "\033[0m0 All attributes off\033[0m\n"
# printf "\033[1m1 Bold\033[0m\n"
# printf "\033[4m4 Underline\033[0m\n"
Gravatar
Mon Jun 15 04:34:21 -0700 2009
1
2
3
require 'rubygems'
require 'exceptional'
require 'sinatra'
Gravatar
Sun Jun 14 01:58:14 -0700 2009
1
2
3
require 'rubygems'
require 'sinatra'
require 'redis'
Gravatar
Mon Mar 16 16:29:40 -0700 2009
1
2
3
#!/bin/bash
# Unattended REE/Passenger installation
# Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/
Gravatar
Mon Mar 16 16:29:06 -0700 2009

      
Gravatar
Thu Feb 19 18:27:44 -0800 2009
1
2
3
require 'feedzirra'
 
# fetching a single feed
Gravatar
Sun Dec 28 17:30:00 -0800 2008
1
2
3
# Why build a site? Why do your customers care?
 
The core purpose of a website is to help your customers answer the questions necessary to do business with you.