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
<?php | |
/* DETECT CLI MODE */ | |
if ( isset($_SERVER['argc']) && $_SERVER['argc']>=1 ) { | |
/* CHECK FOR EMOGRIFIER.PHP */ | |
if(!file_exists(dirname(__FILE__).'/emogrifier.php')) { | |
quit(1,"emogrifier.php is missing."); | |
} | |
require_once(dirname(__FILE__).'/emogrifier.php'); |
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
myemo(){ | |
php ~/.emo/emo.php $1 $2 $3 | |
} | |
alias emo=myemo |
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
Show hidden characters
{ | |
"cmd": ["/usr/bin/php ~/.emo/emo.php $file_name style.css|open -a /Applications/Sublime\\ Text\\ 2.app -f"], | |
"shell": true | |
} |
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
include_path = ".:/usr/local/zf/library/Zend:/usr/local/doctrine/library:/usr/local/doctrine/library/doctrine/common/lib:/usr/local/doctrine/library/doctrine/dbal/lib:/usr/local/doctrine/library/doctrine/cache/lib:/usr/local/doctrine/library/doctrine/annotations/lib:/usr/local/doctrine/library/doctrine/orm/lib:/usr/local/doctrine/library/doctrine/lexer/lib" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// | |
// PATH TO THIS FILE: root of your project | |
// | |
// Edit your Gruntfile.js file's bower install section to exclude ionic's css | |
// as shown below. This is just a snippet so you need to find this section. | |
// If you don't do this, then you'll get ionic in CSS precompiled form | |
// in addition to your custom scss build and everything will break. | |
// Automatically inject Bower components into the app | |
'bower-install': { |
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
List of current dependencies as of July 14, 2014. On the left is the current dependency, on the right, the possible replacement: | |
"grunt": "~0.4.1", https://github.com/gulpjs/gulp/ | |
"grunt-autoprefixer": "~0.4.0", https://github.com/Metrime/gulp-autoprefixer | |
"grunt-bower-install": "~0.7.0", https://github.com/taptapship/wiredep | |
"grunt-concurrent": "~0.4.1", Likely unneeded since gulp runs concurrent by default. | |
"grunt-contrib-clean": "~0.5.0", https://github.com/robrich/gulp-rimraf | |
"grunt-contrib-compass": "~0.6.0", https://github.com/appleboy/gulp-compass | |
"grunt-contrib-concat": "~0.3.0", https://github.com/wearefractal/gulp-concat | |
"grunt-contrib-connect": "~0.5.0", https://github.com/avevlad/gulp-connect |
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
/* AngularDDP - a client for DDP version pre1 */ | |
angular.module('angularDDP', ['$q']) | |
.factory("DDP", function (wsUri) { | |
function Constructor(wsUri) { | |
this.VERSIONS = ["pre1"]; | |
this.wsUri = wsUri; | |
this.sock; | |
this.defs = {}; // { deferred_id => deferred_object } |
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
Uncaught Error: [$injector:modulerr] Failed to instantiate module starter due to: | |
Error: [$injector:modulerr] Failed to instantiate module starter.controllers due to: | |
Error: [$injector:modulerr] Failed to instantiate module angularDDP due to: | |
Error...<omitted>...1) |
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
.factory('genericCollectionFactory',function(){ | |
function Collection() { | |
var _items = []; | |
function get () { | |
return _items; | |
} | |
function add (item) { |
OlderNewer