MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
require 'rubygems' | |
gem 'mysql2' | |
gem 'activerecord', '3.1.1' | |
require 'active_record' | |
# http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_wait_timeout | |
MYSQL_WAIT_TIMEOUT_MAX = 2147483 | |
# Testing the remote db connection after a 60s sleep | |
def test_connection(extra_conf = {}) |
assets = params[:assets] | |
assets.each do |asset| | |
Asset.create(asset) | |
end |
$ = jQuery | |
TIMEOUT = 20000 | |
lastTime = (new Date()).getTime() | |
setInterval -> | |
currentTime = (new Date()).getTime() | |
# If timeout was paused (ignoring small | |
# variations) then trigger the 'wake' event | |
if currentTime > (lastTime + TIMEOUT + 2000) |