Skip to content

Instantly share code, notes, and snippets.

View Sutto's full-sized avatar

Darcy Laycock Sutto

View GitHub Profile
1. Can't add people to groups from search results
2. Groups box is hidden away
3. No easy way (as far as I can tell) short of adding people when they tweet to add them to groups
4. Searchs automatically add them self / cant be removed(?)
5. no-resizable columns
6. Multiple selection of people in a timeline doesn't mean you can add them all to one group via options, still have to do it individually
7. Home / End don't seem to work in views (page up / down do though)
1. Can't add people to groups from search results
2. Groups box is hidden away
3. No easy way (as far as I can tell) short of adding people when they tweet to add them to groups
4. Searchs automatically add them self / cant be removed(?)
5. no-resizable columns
6. Multiple selection of people in a timeline doesn't mean you can add them all to one group via options, still have to do it individually
7. Home / End don't seem to work in views (page up / down do though)
function(doc) {
emit(doc.origin, doc.target);
}
require 'couchrest'
class LoggerHandler < Marvin::Base
cattr_accessor :database
self.database = CouchRest.database! 'http://127.0.0.1:5984/couchbot'
attr_accessor :messages_buffer
def initialize
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'spec'
require 'spec/rails'
Spec::Runner.configure do |config|
config.use_transactional_fixtures = true
config.use_instantiated_fixtures = false
config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
end
# Recursion
# I usually put them around method arguments
def recursive(x)
return if x >= 10
puts x
recursive x + 1
end
# No Brackets here
recursive 0
#!/usr/bin/env ruby
def run_silently(command)
IO.popen(command) { |f| f.read }
end
if ARGV.size < 2
puts "Usage: #{File.basename(__FILE__)} domain [path=/var/apps/#\{domain\}] [user=deployer] [--no-capistrano]"
end
#!/usr/bin/ruby
require 'rubygems'
require 'mysql'
require 'sqlite3'
def with_mysql
db_object = Mysql.init()
db_object.real_connect('localhost','things','1234','things')
require File.join(File.dirname(__FILE__), "lib", "gitauth")
GitAuth.setup!
require File.join(File.expand_path(File.join(File.dirname(__FILE__), "lib", "gitauth")), "web_app")
run GitAuth::WebApp.new
---
details:
github-username: Sutto
nickname: Sutto
irc-nick: SuttoL
user-type: participant
team:
slug: whattech
status: approved
name: WhatTech