This file contains hidden or 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
<RurouniJones> One more question, because I know I will have to field this. Each git repository holds the entire | |
history of the codebase. Great for checking things and dev'ing. Not as "secure", can you limit the | |
history a git repository can take from another one? Yes I know in the grand scheme of things it hardly | |
makes a difference if a bad guy (rogue employee for instance) has just the latest code or the entire | |
history but management have | |
<RurouniJones> asked about this sort of stuff before. | |
<cardioid> RurouniJones: Tell your management to stop looking for software solutions to social problems. | |
<RurouniJones> Hehehe, I would love to...I also like my job |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'mechanize' | |
MY_NAME = 'Yossef Mendelssohn' | |
CHECKIN_REQUEST_URL = 'http://www.southwest.com/flight/retrieveCheckinDoc.html' | |
prompt = false | |
conf = ARGV[0] |
This file contains hidden or 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
require 'autotest/redgreen' | |
require 'autotest/timestamp' | |
USE_FSEVENTS = false | |
Autotest.send(:alias_method, :real_find_files, :find_files) | |
Autotest.send(:define_method, :find_files) do |*args| | |
pattern = ENV['AUTOTEST'] | |
files = real_find_files | |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'earworm' | |
song_file = ARGV.first | |
unless song_file | |
puts 'song file needed' | |
exit |
This file contains hidden or 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
Cassady:~/dev/projects/flogic/freshtrack((no*) yossef$ git co master | |
Switched to branch "master" | |
Cassady:~/dev/projects/flogic/freshtrack(master) yossef$ ta | |
loading autotest/rspec | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S /Library/Ruby/Gems/1.8/gems/rspec-1.1.4/bin/spec -O spec/spec.opts spec/spec_helper.rb spec/project_spec.rb spec/time_entry_spec.rb spec/array_spec.rb spec/time_spec.rb spec/numeric_spec.rb spec/base_object_spec.rb spec/task_spec.rb spec/freshtrack_spec.rb | |
.................................................................................................................................................................................................................................................... | |
Finished in 0.938631 seconds | |
244 examples, 0 failures |
This file contains hidden or 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
Cassady:~/dev/scratch yossef$ mkdir test_repo | |
Cassady:~/dev/scratch yossef$ cd test_repo/ | |
Cassady:~/dev/scratch/test_repo yossef$ git init | |
Initialized empty Git repository in /Users/yossef/dev/scratch/test_repo/.git/ | |
Cassady:~/dev/scratch/test_repo yossef$ touch blah | |
Cassady:~/dev/scratch/test_repo yossef$ git add . | |
Cassady:~/dev/scratch/test_repo yossef$ git commit -m "initial commit" | |
Created initial commit 2f456dc: initial commit | |
0 files changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 blah |
This file contains hidden or 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
if @medical_provider.latitude && @medical_provider.longitude | |
provider_origin = GeoKit::GeoLoc.new | |
provider_origin.lat = @medical_provider.latitude | |
provider_origin.lng = @medical_provider.longitude | |
provider_origin.success = true | |
end |
This file contains hidden or 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 Array | |
def total(attr_name) | |
collect(&attr_name).sum | |
end | |
end |
This file contains hidden or 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
Cassady:~ yossef$ sudo gem update english | |
Updating installed gems | |
Updating english | |
ERROR: While executing gem ... (Gem::InstallError) | |
english requires facets >=2.0.0 | |
(>= 0, runtime) | |
Cassady:~ yossef$ gem list facets | |
*** LOCAL GEMS *** | |
This file contains hidden or 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
<Pieter> ciaran: I think the selectable buttons will have to wait until later, as I don't have enough skills to create "commit" and "history" icons | |
<cardioid> "commit" should be a wedding ring | |
<cardioid> and "history" should be Hitler | |
<cardioid> Just google image search that stuff | |
<Pieter> I don't think that'll be instantly clear |