Skip to content

Instantly share code, notes, and snippets.

http://facebook.com/
http://twitter.com/
http://google.com/
http://youtube.com/
http://wordpress.org/
http://adobe.com/
http://blogspot.com/
http://wikipedia.org/
http://linkedin.com/
http://wordpress.com/
#!/usr/bin/env ruby
require 'csv'
abort("You must specify a CSV file") unless ARGV.length == 1
CSV do |out|
CSV.foreach(ARGV[0], encoding: 'ISO-8859-1') do |row|
out << row.map { |c| c.nil? ? nil : c.encode('UTF-8') }
end

Keybase proof

I hereby claim:

  • I am lytol on github.
  • I am lytol (https://keybase.io/lytol) on keybase.
  • I have a public key whose fingerprint is 3DB8 E053 0DA6 9360 051D 0293 DF0D 5FC9 FD91 1F24

To claim this, I am signing this object:

@Lytol
Lytol / dev
Created December 3, 2014 01:52
#!/bin/bash
SESSION=`basename $PWD`
tmux new-session -d -s $SESSION -n 'Shell'
tmux split-window -h
if [[ -e Procfile ]]; then
tmux new-window -t $SESSION:1 -n 'Foreman'
# Replace the Gemfile wholesale, it's just easier
#
remove_file "Gemfile"
create_file "Gemfile", <<-EOF
source 'https://rubygems.org'
ruby '2.1.5'
gem 'rails', '4.2.0'
gem 'pg'
SHELL = /bin/bash
all: build
prepare:
cp *.kll controller/kll/layouts/
cd build; cmake ../controller; cd ..
build: prepare
cd build; make; cd ..
Rake::Task['test'].clear
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
end
diff --git a/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb b/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb
index 938051c..ed3246f 100644
--- a/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb
+++ b/vendor/plugins/masochism/lib/active_reload/connection_proxy.rb
@@ -9,7 +9,11 @@ module ActiveReload
class ConnectionProxy
def initialize(master, slave)
@slave = slave.connection
+ @slave.instance_eval { @connection.reconnect = true }
+
require 'digest/sha1'
module SecureToken
def self.secure_digest(*args)
Digest::SHA1.hexdigest(args.flatten.join('--'))
end
def self.generate_token
fa292fd9 (Jay Swain 2008-11-18 17:20:59 -0800 46) @payment = Payment.new(:offer_id => find_offer_id, :type => 'visa')