Public Gists by queso

Gravatar
Wed Oct 07 07:30:03 -0700 2009
1
2
3
These are just simple tests run using ab and the Handcrafted foundation (http://github.com/handcrafted/foundation).
 
Keep in mind these are basic and aren't a true apples to apples comparison yet. Using nginx combined with thin, passenger, and unicorn will allow a real comparison. If I get time I will try to run some ec2 tests.
Gravatar
Sat Oct 03 20:55:29 -0700 2009
1
2
3
begin
  1.upto(10) do |i|
    puts "Outer loop #{i}"
Gravatar
Wed Sep 30 20:55:14 -0700 2009
1
2
3
Need to build an API and you aren't sure where to start? Wondering if you should be strict with a restful interface or version your api? Perhaps you need to secure your data with some type of encryption?
 
Explore the different options for building your application as we share our experiences from building the change: healthcare api. Learn from our choices on things like versioning the api, using AES encryption, considering HIPPA security, and much more.
Gravatar
Wed Sep 30 20:18:50 -0700 2009
1
2
3
Ever try to build something new and exciting? Do you find yourself wondering what libraries and tools you should depend on? Always asking questions like: Should I use this (jquery|ruby|java) plugin, or that one?
 
Finding the best tool/library/gem/plugin shouldn't be that tough, and we will review simple analytics you can apply to any project to determine if a project is the right fit. Measurements can include things such as: commit frequency, test coverage, community activity, production examples, google hits, and many others.
Gravatar
Mon Sep 28 11:07:38 -0700 2009
1
2
3
#!/usr/bin/env ruby
#
# Git commit-msg hook. If your branch name is in the form "t123", automatically
Gravatar
Sat Sep 26 16:55:17 -0700 2009
1
2
3
  def run
    return if @bot.blank?
    @bot.feeds.each do |feed|
Gravatar
Thu Sep 24 12:01:44 -0700 2009
1
2
3
ArgumentError: Anonymous modules have no name to be referenced by
from /Users/josh/Code/Clients/chc/chapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:585:in `to_constant_name'
from /Users/josh/Code/Clients/chc/chapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:391:in `qualified_name_for'
Gravatar
Wed Sep 16 20:24:07 -0700 2009
1
2
3
  def self.friend_ids(id, &blk)
    http = EventMachine::HttpRequest.new("http://twitter.com/friends/ids/#{id}.json").get
    http.callback { yield }
Gravatar
Wed Sep 16 07:27:50 -0700 2009
1
2
3
DaemonKit::AMQP.run do
  amq = ::MQ.new
  amq.prefetch(20)
Gravatar
Sun Sep 13 16:46:09 -0700 2009
1
2
3
23:45:14.902235 select(9, [5 8], [], NULL, {0, 50000}) = 0 (Timeout) <0.049604>
23:45:14.952033 gettimeofday({1252885514, 952086}, NULL) = 0 <0.000011>
23:45:14.952143 select(9, [5 8], [], NULL, {0, 90000}) = 0 (Timeout) <0.089769>
Gravatar
Sun Sep 13 14:48:13 -0700 2009
1
2
3
/usr/local/lib/ruby/1.8/monitor.rb:295:in `wakeup': killed thread (ThreadError)
from /usr/local/lib/ruby/1.8/monitor.rb:295:in `mon_release'
from /usr/local/lib/ruby/1.8/monitor.rb:228:in `mon_exit'
Gravatar
Mon Sep 07 09:24:02 -0700 2009
1
2
3
2 very ripe bananas
 
3/4 cup sugar
Gravatar
Thu Aug 06 12:15:06 -0700 2009
1
2
3
Then /^I should see error messages$/ do
  response.body.should match /error(s)? prohibited/m
end
Gravatar
Thu Jul 30 11:49:18 -0700 2009
1
2
3
Feature: Account Update
 
  In order to display my most accurate user information
Gravatar
Wed Jul 29 11:49:20 -0700 2009
1
2
3
  def method_missing(name, *args)
    value = find_value(name)
    value.empty? ? super(name, *args) : value
Gravatar
Tue Jul 21 12:47:20 -0700 2009
1
2
3
<table>
  <tr>
    <th><input id="id_selector" name="id_selector" toggle_all="items_form_checkbox" type="checkbox" value="" /></th>
Gravatar
Thu Jul 16 10:29:23 -0700 2009
1
2
3
%ul
  - item.pros.each do |pro|
    %li
Gravatar
Fri Jun 26 08:14:10 -0700 2009
1
2
3
server {
  listen 80;
  server_name www.web20show.com;
Gravatar
Mon Jun 15 07:24:20 -0700 2009
1
2
3
#!/usr/bin/env ruby
require 'yaml'
cluster = YAML::load(File.open(File.dirname(__FILE__) + '/../config/cluster.yml'))
Gravatar
Thu May 14 14:10:23 -0700 2009
1
2
3
# file: /etc/glusterfs/glusterfs-client.vol
volume remote
  type protocol/client