This file contains hidden or 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
<?php | |
function bestEncryptionEver($plain_text) { | |
$hash = array( | |
'q' => 'w', | |
'w' => 'e', | |
'e' => 'r', | |
'r' => 't', | |
't' => 'y', | |
'a' => 's', |
This file contains hidden or 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
(Math.floor(Math.random()*(100)) % 2 )?console.log('Chiptole') : console.log('Quiznos'); |
This file contains hidden or 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
console.lol = function() { | |
return console.log.apply(null, arguments); | |
}; |
This file contains hidden or 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 ARCHIVED ON 9:31:31 Jan 3, 2010 AND RETRIEVED FROM THE | |
INTERNET ARCHIVE ON 23:03:13 Feb 3, 2012. | |
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. | |
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. |
This file contains hidden or 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
<?php | |
// Which would you rather see | |
// Option 1 - double assignment | |
function isInCharge($name) { | |
$in_charge = false; | |
if ($name === 'Charles') { | |
$in_charge = true; | |
trigger_event('Play Charles In Charge theme song'); |
This file contains hidden or 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
<?php | |
$prev_line = false; | |
foreach ($data as $line){ | |
// go through each line, showing it as required, if it is surrounded by '<>' then | |
// assume that it is a title | |
$prev_line = $line=chop($line); | |
if (strlen($line) && $line[0]=='#'){ |
This file contains hidden or 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
<div id="admin_categories" class="admin"> | |
{include_component name='Admin::adminNav' selected='categories'} | |
<div class="col-right"> | |
<!-- Put page contents here --!> | |
</div> | |
</div> |
This file contains hidden or 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
<?php | |
function shouldWeEatChipotle() { | |
return (substr(date('l'), -1) == 'y'); | |
} |
This file contains hidden or 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( $ ){ | |
$.fn.checkValidity = function() { | |
var html_object = this.get.(0); | |
if (typeof html_object.checkValidity != 'function') { | |
switch(this.attr('type')) { | |
case 'email': | |
// add email validation | |
break; | |
case 'url': | |
// Add url validation |
This file contains hidden or 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
<?php | |
foreach($class_list as $classname) { | |
$reflector = new ReflectionClass($classname); | |
$ini_config_data[strtolower($classname)] = $reflector->getFileName(); | |
} | |
?> |