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 | |
/* ... */ | |
/** | |
* Allows each Mongo collection to have a sequence ID for numbering objects. | |
* | |
* @param array $scope The scope for this counter. A scope is an array of key/value pairs | |
* that represent the conditions used to group this sequence. For example, a | |
* scope may be the ID of a company, allowing each company to have their own |
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
[ | |
{ | |
"from": "Nate", | |
"to": "Everybody", | |
"subject": "Doing a demo", | |
"body": "Hope I don't screw this up" | |
}, | |
{ | |
"from": "Everybody", | |
"to": "Nate", |
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
ICONUTIL := $(word 1, $(shell command -v iconutil icnsutil) iconutil) | |
.SECONDEXPANSION: | |
%.icns: %.iconset $$(wildcard $$(@D)/$$*.iconset/icon_*.png) | |
$(ICONUTIL) -c icns -o $@ $< | |
.SECONDEXPANSION: | |
%.ico: %.iconset $$(wildcard $$(@D)/$$*.iconset/icon_*[0-9].png) | |
convert -background transparent -colors 256 $(filter-out $<,$^) $@ |
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
import R from 'ramda'; | |
let { is, complement, filter, map, mapObj, mapObjIndexed, prop, pipe, identity, mergeAll, toLower } = R; | |
class Domp { | |
constructor() { | |
this.propMap = { | |
name: pipe(prop('nodeName'), toLower), | |
type: prop('nodeType'), |
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 | |
namespace moneygram\extensions\imagine; | |
use Imagine\Image\Box; | |
use Imagine\Image\Point; | |
use Imagine\Image\Color; | |
class SepiaToneFilter implements \Imagine\Filter\FilterInterface { |
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
import gulp from 'gulp'; | |
import gif from 'gulp-if'; | |
import smaps from 'gulp-sourcemaps'; | |
import babel from 'gulp-babel'; | |
import concat from 'gulp-concat'; | |
import uglify from 'gulp-uglify'; | |
import jas from 'gulp-jasmine'; | |
import conn from 'gulp-connect'; | |
import yargs from 'yargs'; | |
import config from './package.json'; |
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 | |
/** | |
* Snippet extracted from `config/bootstrap/action.php`. | |
*/ | |
/** | |
* ## Mapping HTTP Request Parameters to Query Parameters | |
* | |
* The `$replacer` function is used by the `Resources` filter below to allow resource classes to | |
* automatically map values from the `Request` object in their query configurations. |
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 | |
/** config/bootstrap/libraries.php **/ | |
// ... | |
Libraries::add('stripe', array( | |
'path' => LITHIUM_APP_PATH . '/libraries/stripe/lib', | |
'prefix' => null | |
)); |
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 | |
/** models/Users.php **/ | |
use lithium\security\Auth; | |
class Users extends \lithium\data\Model { | |
// ... |
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
module.exports = function(config) { | |
config.set({ | |
// base path, that will be used to resolve files and exclude | |
basePath: '.', | |
// list of files / patterns to load in the browser | |
files: [ | |
'lib/angular-1.1.4.js', | |
'test/lib/angular-mocks-1.1.4.js', | |
'test/testUtils.js', |
OlderNewer