#YOMLB
Get a happy Yo whenever your favorite MLB team wins a game.
Get a sad Yo when they lose :(
##INSTRUCTIONS
YO the following accounts you want to follow:
#YOMLB
Get a happy Yo whenever your favorite MLB team wins a game.
Get a sad Yo when they lose :(
##INSTRUCTIONS
YO the following accounts you want to follow:
#!/bin/sh | |
GEMFILE_REPO=../drive-gemfile | |
cat <<EOM | |
*************************** | |
* UPDATING GEMFILE REPO * | |
* for rubytracker.com * | |
*************************** | |
EOM |
/home/jonuts/.rvm/gems/ruby-1.9.2-preview3/gems/dm-migrations-1.0.0/lib/dm-migrations/adapters/dm-do-adapter.rb:92:in `execute_non_query': Invalid default value for 'hello' (DataObjects::SQLError) | |
from /home/jonuts/.rvm/gems/ruby-1.9.2-preview3/gems/dm-migrations-1.0.0/lib/dm-migrations/adapters/dm-do-adapter.rb:92:in `block (2 levels) in create_model_storage' | |
from /home/jonuts/.rvm/gems/ruby-1.9.2-preview3/gems/dm-migrations-1.0.0/lib/dm-migrations/adapters/dm-do-adapter.rb:90:in `each' | |
from /home/jonuts/.rvm/gems/ruby-1.9.2-preview3/gems/dm-migrations-1.0.0/lib/dm-migrations/adapters/dm-do-adapter.rb:90:in `block in create_model_storage' | |
from /home/jonuts/.rvm/gems/ruby-1.9.2-preview3/gems/dm-do-adapter-1.0.0/lib/dm-do-adapter/adapter.rb:260:in `with_connection' | |
from /home/jonuts/.rvm/gems/ruby-1.9.2-preview3/gems/dm-migrations-1.0.0/lib/dm-migrations/adapters/dm-do-adapter.rb:85:in `create_model_storage' | |
from /home/jonuts/.rvm/gems/ruby-1.9.2-preview3/gems/dm-migrations-1.0.0/lib/dm-migrations/auto_m |
require 'dm-core' | |
require 'dm-types' | |
require 'dm-migrations' | |
DataMapper.setup :default, "mysql://localhost/test_db" | |
class Foo | |
include DataMapper::Resource | |
property :id, Serial |
class ActiveRecord::Associations::AssociationCollection | |
alias_method :_method_missing, :method_missing | |
protected | |
def method_missing(meth, *args) | |
if meth.to_s =~ /^find_all_by_(\w*)/ | |
@target.select {|e| e.respond_to?($1) && e.send($1) == args.first} | |
else | |
_method_missing(meth, *args) |
#!/usr/bin/env ruby | |
module MuttNotifier | |
BASE_DIR = '/home/jonuts/Mail/' | |
CHECK_INTERVAL = 60 | |
class Folder | |
@all ||= [] | |
class <<self |
MerbAdmin::ModelConfig.set("User") do | |
label "Users" # @model.pretty_name | |
list_fields :name, :description # All columns | |
list_filters :publication_date, :retired # All booleans | |
search_fields :name, :description # All string type columns | |
edit_fields :name, :description # All | |
new_fields :name, :description # All | |
raw_id_fields :name, :description # None | |
default_order :publication_date, :reverse => true # id | |
excluded_actions :delete, :list # None |
# before :no_cache, :only => [:list, :of, :actions] | |
class Application | |
def no_cache | |
headers["Last-Modified"] = Time.now.httpdate | |
headers["Pragma"] = "no-cache" | |
headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0, pre-check=0, post-check=0" | |
end | |
end |
#!/usr/bin/env ruby | |
require 'open-uri' | |
def g | |
gets.chomp | |
end | |
puts "Server FQDN or ip: " | |
server = g |
ShellFM = function() { | |
const commands = ['skip', 'love', 'hate', 'pause', 'play']; | |
var shellsocket = liberator.globalVariables.shellsocket; | |
var socat = liberator.globalVariables.socat || "/usr/bin/socat"; | |
var runCommand = function(cmd) { | |
if (!shellsocket){ | |
liberator.echo("Set shellsocket with the path to your shell-fm UNIX socket"); | |
return; | |
} |