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 | |
/** | |
* Quickly assemled rest controller based on Kohana 3's Kohana_Controller_REST | |
* https://github.com/kohana/core/blob/3.1%2Fmaster/classes/kohana/controller/rest.php | |
* | |
* Added functionality from FuelPHP's Controller_Rest | |
* https://github.com/fuel/fuel/blob/develop/fuel/core/classes/controller/rest.php | |
* | |
* All credits to Kohana and FuelPHP teams! | |
* Jonas Nyström - cambiata |
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 ED = ED || {}; | |
// Utility functions | |
ED.util = (function() { | |
// Data structure functions | |
function each(object, callback) { | |
if (object === null) return; |
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
// call elementQuery and pass it an object containing the tests. | |
// also pass it an object containing a 'passed' callback and a 'failed' callback | |
// you can also pass a bool for whether you want to bind this to be run on resize | |
$('#torso').elementQuery({ 'min-width' : 910 , 'max-width' : 1155}, { | |
passed : function() { | |
$(this).addClass('l-full').removeClass('l-xlarge'); | |
}, | |
failed : function() { | |
$(this).removeClass('l-full'); |
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
// call elementQuery and pass it an object containing the tests. | |
// also pass it an object containing a 'passed' callback and a 'failed' callback | |
// you can also pass a bool for whether you want to bind this to be run on resize | |
$('#torso').elementQuery({ 'min-width' : 910 , 'max-width' : 1155}, { | |
passed : function() { | |
$(this).addClass('l-full').removeClass('l-xlarge'); | |
}, | |
failed : function() { | |
$(this).removeClass('l-full'); |
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
#!/bin/bash | |
cp $1 ~/Dropbox/Public/ | |
echo "http://dl.dropbox.com/u/<your id>/"$1 | xclip -i -selection clipboard |
NewerOlder