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
require.config({ | |
paths: { | |
leap : '//js.leapmotion.com/0.2.0/leap' | |
}, | |
shim: { | |
exports: 'Leap' | |
} | |
}); | |
define(['leap'], function(Leap) { |
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
var MyView = Backbone.View.extend({ | |
__name__ : 'MyView' | |
}); |
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 | |
/** | |
* File containing the EztBlock converter | |
* | |
* @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 | |
* @version 1.0 | |
*/ | |
namespace ezt\TrainingBundle\Persistence\Legacy\Content\FieldValue\Converter; |
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 | |
use app\models\Model; | |
class FooController extends lithium\action\Controller { | |
/** | |
* Will render the views/foo/bar.html.php view by default | |
*/ | |
public function bar() { | |
return array( | |
'results' => Model::all() | |
); |
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
var handleUserLoggedOut = function(response, type, xhr) { | |
var def = $.Deferred(); | |
if (resp.error === 'some error about ') { | |
// Here we render a view for the user to log back in and track failed requests to re-apply them later | |
return def.reject(resp.error); | |
} | |
return def.resolve(resp); | |
} | |
Backbone._sync = Backbone.sync; |
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
[core] | |
editor = `which vim` | |
whitespace = trailing-space,space-before-tab | |
autocrlf = false | |
excludesfile = ~/.gitignore-global | |
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
cm = cherry -v master |
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
define(['dependency'], function(Dependency) | |
{ | |
console.log("Dependency loaded", Dependency); | |
}); |
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
" Console log from insert mode; Puts focus inside parentheses | |
imap cll console.log();<Esc>==f(a | |
" Console log from visual mode on next line, puts visual selection inside parentheses | |
vmap cll yocll<Esc>p | |
" Console log from normal mode, inserted on next line with word your on inside parentheses | |
nmap cll yiwocll<Esc>p |
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
/*! | |
* backbone.collectioncache.js v0.0.1 | |
* Copyright 2012, Tim Branyen (@tbranyen) | |
* backbone.layoutmanager.js may be freely distributed under the MIT license. | |
*/ | |
(function(window) { | |
"use strict"; | |
// Dependencies |
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 | |
class Item { | |
public $value, $key, $next = null; | |
public function __construct($key, $value) { | |
$this->key = $key; | |
$this->value = $value; | |
} |