Skip to content

Instantly share code, notes, and snippets.

View pavlo-vavruk's full-sized avatar
🇺🇦

Pavlo Vavruk pavlo-vavruk

🇺🇦
View GitHub Profile
@pavlo-vavruk
pavlo-vavruk / CommonWeb-test.js
Last active February 28, 2018 16:18
CommonWeb test
%script{:type => "text/javascript", :src => "https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"}
-#%script{:type => "text/javascript", :src => "./common-web.min.js"}
= @data
%form
= label :user, :email, "Email"
= text_field :user, :email
= label :user, :password
= password_field :user, :password
%input{:type => "submit", :value => "Sign in"}
@pavlo-vavruk
pavlo-vavruk / settings_env_proxy.rb
Last active August 5, 2016 12:48
ENV settings proxy.
class Settings
@@envs = []
def self.method_missing(name, *args)
@@envs << name.upcase.to_s
return ENV["#{@@envs.join('_')}"] || args.first unless args.empty?
self
end
end