Skip to content

Instantly share code, notes, and snippets.

@peb7268
peb7268 / gist:4106564
Created November 18, 2012 18:04
cake: View ARO's
./Console/cake acl view -v aro
@peb7268
peb7268 / gist:4106577
Created November 18, 2012 18:06
cake: create aco
./Console/cake acl create aco root controllers
@peb7268
peb7268 / gist:4106587
Created November 18, 2012 18:07
cake: acl shell help
./Console/cake acl --help
@peb7268
peb7268 / gist:4106653
Created November 18, 2012 18:24
php pear: list all files for a package
pear remote-list -c phpunit
@peb7268
peb7268 / gist:4106655
Created November 18, 2012 18:25
JavaScript: Module Pattern
/*** A Better way with the module pattern ******************************************************************************#/
* Our goals:
*
* 1) We define a module and scope it within a self invoking anonymous function
* 2) We perform a global import (by passing jQuery in as a param) and namespace it so we circumvent naming collisions
* 3) We then export the module with the return keyword
************************************************************************************************************************/
var MODULE = (function($){
//private vars
@peb7268
peb7268 / gist:4106658
Created November 18, 2012 18:26
JavaScript: Module Augmentation
/*** A Better way with the module pattern ******************************************************************************#/
* Our goals:
*
* 1) We define a module and scope it within a self invoking anonymous function
* 2) We perform a global import (by passing jQuery in as a param) and namespace it so we circumvent naming collisions
* 3) We then export the module with the return keyword
************************************************************************************************************************/
var jQuery = (function($){
//private vars
@peb7268
peb7268 / gist:4106660
Created November 18, 2012 18:26
HTML: Responsive Meta Mobile Tag
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@peb7268
peb7268 / gist:4106664
Created November 18, 2012 18:27
CSS: border-box
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="ie6"> <![endif]-->
<!--[if IE 7]> <html class="ie7"> <![endif]-->
<!--[if IE 8]> <html class="ie8"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Page Title</title>
@peb7268
peb7268 / gist:4106668
Created November 18, 2012 18:28
git: setup default editor
git config --global core.editor "subl -w"
@peb7268
peb7268 / gist:4106670
Created November 18, 2012 18:28
git: list remote branches
git branch -r