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
#!/usr/bin/env ruby | |
# | |
# Shotgun approach (read: slow and dirty hack) to help find unused helpers in a Rails application | |
# | |
puts "Loading all source files into memory :(" | |
source = {} | |
Dir["app/**/**/*.*"].each do |f| | |
source[ f ] = File.readlines( f ) |
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
var nameserver = /^((([a-z0-9]([a-z0-9\-]{0,61}[a-z0-9])?\.)+[a-z]{2,6})|(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))$/i; | |
$('#configure_domains_form').submit(function() { | |
return $('input[name^="domainns"]').each(function(){ | |
if(nameserver.test($(this).val())){ | |
// Do nothing | |
} | |
else{ | |
if ($(this).val() == ""){ | |
if($(this).attr("name") == "domainns3" || $(this).attr("name") == "domainns4"){ | |
// Do nothing, it's ok for these to be Blank |
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
%%%------------------------------------------------------------------------ | |
%%% File : mod_warm_bindings.erl | |
%%% Author : Theo Cushion <[email protected]> | |
%%% Purpose : Enables the creation of authenticated BOSH sessions via HTTP | |
%%% Created : 29/01/2010 | |
%%%------------------------------------------------------------------------ | |
-module(mod_warm_bindings). | |
-author('[email protected]'). |