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
puts "Hello World" |
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
// put this in application/config/routes.php | |
$route['default_controller'] = "welcome"; | |
$route['scaffolding_trigger'] = ""; | |
$controllers = glob(APPPATH."controllers/*.php"); | |
$route_string = ""; | |
foreach($controllers as $controller) { | |
$controller = str_replace("../system/application/controllers/", "", $controller); | |
$controller = str_replace(".php", "", $controller); | |
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 log(message) | |
{ | |
try { | |
console.log(message); | |
} catch(e) { | |
// do nothing | |
} | |
} |
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
if($("#some_element").is(":visible")) | |
{ | |
// element is visible | |
} |
NewerOlder