Skip to content

Instantly share code, notes, and snippets.

Arlo Carreon mexitek

Block or report user

Report or block mexitek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mexitek / scanDir.php
Created Jul 9, 2013
Run this PHP script via command line and see all the directories with contents over 1 KB.
View scanDir.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" );
mexitek / everOther.js
Last active Dec 19, 2015
A handlebars helper for displaying a block every x iterations of a loop.
View everOther.js
Handlebars.registerHelper("everyOther", function (index, amount, scope) {
if ( ++index % amount )
return scope.inverse(this);
return scope.fn(this);
View gist:5540805
-- DELETE duplicate entry
FROM L_table
FROM L_table
GROUP BY l_field, etc ASC);
mexitek / permissions.php
Last active Dec 16, 2015
Sample class for bitmasked permissions
View permissions.php
* @author Arlo Carreon
class Permissions {
// Bitmasks
const REPORTS = 1;
const QUIZES = 2;
mexitek / prep.js
Created Nov 20, 2012
JS Template String vs Jquery DOM Creation
View prep.js
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:\/\/\/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":"\/\/\/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
mexitek / build.log
Created Jan 18, 2012
Titanium Mobile Error
View build.log
Starting build at 01/17/12 23:50
Build details:
timestamp=12/13/10 21:20
Script arguments:
mexitek / GeoIPCity.dat
Created Dec 16, 2011
GeoIP and Varnish - Attempt to respond with user's city, lat and long information
View GeoIPCity.dat
This file has been truncated, but you can view the full file.
mexitek / config.json
Created Oct 30, 2011
Github's hubot on Joyent's machines. Read the comments for instructions.
View config.json
{"version": "v0.4.11"}
mexitek / classes.php
Created Oct 24, 2011
Super and subclass variable inheritence
View classes.php
# Our super class
class A {
protected static $login;
protected static $pass;
# public static setter
# Maybe, replaces constructor
public static function setLogin($l,$p){
mexitek /
Created Sep 19, 2011
Remove and untrack test/config files in Git
echo "*.config">>.gitignore;
git rm --cached "*.config";
git add .;
git commit -m "Ignoring and deleting config files." ;
git push origin;
You can’t perform that action at this time.