This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh_options[:forward_agent] = true | |
set :keep_releases, 2 | |
set :application, "blabla.com" | |
set :repository, "git@blabla.com:myapp.git" | |
set :scm, :git | |
set :branch, "master" | |
set :user, "usename" | |
set :deploy_to, "/home/username/www/myapp/" | |
set :deploy_via, :remote_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseConverter | |
def initialize(digits) | |
@decimal_digits = "0123456789" | |
@digits = digits.to_s | |
end | |
def from_decimal(i) | |
convert(i.to_s, @decimal_digits, @digits) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function XHConn() | |
{ | |
var xmlhttp, bComplete = false; | |
try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } | |
catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } | |
catch (e) { try { xmlhttp = new XMLHttpRequest(); } | |
catch (e) { xmlhttp = false; }}} | |
if (!xmlhttp) return null; | |
this.connect = function(sURL, sMethod, sVars, fnDone) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module IntIp | |
def ip2int(ip) | |
return 0 unless ip =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ | |
v = ip.split('.').collect { |i| i.to_i } | |
return (v[0] << 24) | (v[1] << 16) | (v[2] << 8 ) | (v[3]); | |
end | |
def int2ip(int) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
link_to_remote("Post a comment", :update => "wiki-comment-form", :url => {:action => "show_add_comment", :id => @space, :wiki_id => @wiki_version}, | |
:before => visual_effect(:appear, "load_dots", :queue => 'end'), | |
:complete => visual_effect(:fade, "load_dots") + visual_effect(:fade, 'flows-w') + visual_effect(:appear, 'wiki-comment-form', :queue => 'end')) | |
encodeURIComponent(location.href) | |
Form.getInputs(form, 'radio', name).each(function(input) { | |
if (input.value == value) { | |
input.checked = true |
NewerOlder