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 | |
// Base directory is where you run the script from | |
$currentDirectory = '.'; | |
// Get all contents, minus pointers to . and .. | |
$baseLevelContents = array_diff( scandir( $currentDirectory ), array('..','.') ); | |
// All directories | |
$baseDirs = array_filter( $baseLevelContents, "is_dir" ); |
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
Handlebars.registerHelper("everyOther", function (index, amount, scope) { | |
if ( ++index % amount ) | |
return scope.inverse(this); | |
else | |
return scope.fn(this); | |
}); |
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
-- DELETE duplicate entry | |
DELETE | |
FROM L_table | |
WHERE id NOT IN (SELECT MIN(id) id | |
FROM L_table | |
GROUP BY l_field, etc ASC); |
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 | |
/** | |
* @author Arlo Carreon | |
* | |
*/ | |
class Permissions { | |
// Bitmasks | |
const REPORTS = 1; | |
const QUIZES = 2; |
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
var hotelObj = {"hotelId":"2653","p":"30","n":"America`s Best Inn Main Gate East","d":"In the Walt Disney World Resort Area offering FREE Shuttle Service! A great family vacation spot nearby the major theme parks of Orlando Florida.","lat":"28.3321","lng":"-81.4892","a":"All Orlando","aid":"19","v":"","url":"http:\/\/bookitsb.com\/us\/florida\/orlando\/hotels\/americas-best-inn-main-gate-east\/","nr":"0","sr":"25","tr":"","fr":"","tsm":"","rqm":"","r":"Deluxe Room","pr":"","su":"Near Disney, Kissimmee - Hotel with FREE Theme Park Shuttles","ma":"In the Walt Disney World Resort Area offering FREE Shuttle Service!","fc":"","i":"","am":"","li":"MCO","ln":"Orlando, Florida, United States","c":{"l":"BONUS","n":"JOINT TEST"},"st":"50","img":"\/\/images.bookit.com\/RA10168\/RA10168_227891_TN.jpg"}; | |
window.buildHotelHTML = function( hotelData){ | |
var str = '<div class="hidden pod resultsPod hotelResults rowClearOFH ' + '">\ | |
<input type="hidden" name="hotelUniqueId" value="' + hotelData.hotelId + '" disabled="disabl |
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
Starting build at 01/17/12 23:50 | |
Build details: | |
timestamp=12/13/10 21:20 | |
version=1.5.0 | |
githash=efb9caa | |
Script arguments: |
This file has been truncated, but you can view the full file.
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
{"version": "v0.4.11"} |
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 | |
# Our super class | |
class A { | |
protected static $login; | |
protected static $pass; | |
# public static setter | |
# Maybe, replaces constructor | |
public static function setLogin($l,$p){ |
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
echo "*.config">>.gitignore; | |
git rm --cached "*.config"; | |
git add .; | |
git commit -m "Ignoring and deleting config files." ; | |
git push origin; |
NewerOlder