- https://www.govtrack.us/congress/bills/111/hr645/text
- http://militarycareers.about.com/gi/o.htm?zi=1/XJ&zTi=1&sdn=militarycareers&cdn=careers&tm=4&f=00&su=p284.13.342.ip_&tt=11&bt=3&bts=3&zu=http%3A//www.goarmy.com/careers-and-jobs/browse-career-and-job-categories/legal-and-law-enforcement/internment-resettlement-specialist.html
- http://militarycareers.about.com/od/Career-Profiles/p/Career-Profile-Army-Internment-Resettlement-Specialist.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Show merb routes" | |
task :merb_routes => :merb_env do | |
require 'merb-core/rack/adapter/irb' | |
Merb::Rack::Console.new.show_routes | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# by: Robert Evans | |
# | |
# Git Merge Since Search | |
# | |
# I needed to be able to search git history looking for all merge commits from | |
# a specific repo, into another specific repo, starting at a given point in time. | |
# | |
# Example: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TestMethodAlternatives | |
def testing(description, &block) | |
formatted_desc = description.gsub(/\s+/, '_').gsub(/\W+/, '') | |
define_method("test_#{formatted_desc}") do | |
if block_given? | |
instance_eval(&block) | |
else | |
instance_eval do | |
skip("test_#{formatted_desc}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module AppSettings | |
class Railtie < Rails::Railtie | |
config.settings = ::ActiveSupport::OrderedOptions.new | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MODEL | |
class Case < ActiveRecord::Base | |
include Eventable | |
has_many :tasks | |
concerning :Assignment do | |
def assign_to(new_owner:, details:) | |
transaction do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).watermark( | |
// "position" : "bottom-right", | |
// "opacity" : 30, | |
// "className" : "watermark", | |
"path": "/assets/watermark.png" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMOI+IZDMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM8=+++++++I7DMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+++++++++++777$MMMMMMMMMMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM++++++++++++?7777MMMMMMMMMMMMMMMMMMMMMMMMMMMM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Geo | |
def self.get(coords) | |
sql = <<-EOF | |
SELECT ST_AsText(ST_GeomFromGeoJSON('{"type":"Polygon","coordinates":#{coords}}')) | |
EOF | |
ActiveRecord::Base.connection.execute(sql) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Demo Database Object Schema: | |
# | |
# * name, string | |
# * status, integer | |
# * created_at, datetime | |
# * updated_at, datetime | |
# | |
class Demo < ActiveRecord::Base | |
include BaseScopes | |
OlderNewer