Skip to content

Instantly share code, notes, and snippets.

- hash_new = t("about.usr", locale: :x).select{|x| x =~ /^[a-zA-Z]+$/}.select{|y, z| z[:bod].present? }
def rhost(www = nil)
if request.host != "www#{env_dev}.a.a"
rhost = request.host.gsub(/^w+(|\d+)\./, "").gsub(/\.a\.a/, "")
@rhost = request.host.gsub(/^w+(|\d+)\./, "").gsub(/\.a\.a/, "")
elsif www == 1 and request.host == "www#{env_dev}.a.a"
rhost = 'www'
@rhost = 'www'
elsif www == 2
rhost = 'test'
@rhost = 'test'
url = window.location.host
sub = url.split('.')
path = window.location.pathname.split('/')
console.log(path[2])
if sub[1] == 'ada'
# and path[2] == undefined
$(".www.index").ready ->
width = 700
height = 700
speed = -1e-2
#= require jquery
# require jquery.turbolinks
#= require google.coffee
#= require init
#= require input_mask
#= require jquery-readyselector
# require jquery.fancybox.min