Skip to content

Instantly share code, notes, and snippets.

View bajalovic's full-sized avatar

Ivan Bajalovic bajalovic

View GitHub Profile
require 'yaml'
def main
lang_file_1 = ARGV[0]
lang_file_2 = ARGV[1]
lang_1 = YAML::load(File.open lang_file_1)
lang_2 = YAML::load(File.open lang_file_2)
lang_1_key = lang_1.keys.first
require 'yaml'
def main
lang_file_1 = ARGV[0]
lang_file_2 = ARGV[1]
lang_1 = YAML::load(File.open lang_file_1)
lang_2 = YAML::load(File.open lang_file_2)
lang_1_keys = all_keys lang_1[lang_1.keys.first]
@bajalovic
bajalovic / pushd_subscriber.rb
Created January 24, 2015 12:25
Rails Pushd wrapper
## Wrapper class for Pushd server
## https://github.com/rs/pushd
## Author: Ivan Bajalovic
## January, 2015
## Feel free to copy/update the code
class PushdSubscriber
@url = 'http://localhost:8080'