This file contains hidden or 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
| //## SCROLL ##// | |
| function sTo(sel){ | |
| var v = 0; | |
| if (sel.index() == 0) v = - 31; | |
| $('#full').animate({scrollTop: sel.offset().top - v},'slow'); | |
| } | |
| var start = $('.set[data-hash="' + window.location.hash + '"]'); | |
| if (start.length > 0) { | |
| sTo(start); |
This file contains hidden or 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 | |
| // First off, change | |
| public function __construct($table, $id) .. | |
| // to | |
| public function __construct($table, $id = null) .. | |
| // then only use the $id part if its not null |
This file contains hidden or 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 Magicload { | |
| protected static $_data = array(); | |
| /** | |
| * The index action. | |
| * | |
| * @access public |
This file contains hidden or 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
| tweetbot post data: | |
| POST: {"source":"Tweetbot for iPhone","message":"Jhf"} | |
| FILES: {"media":{"name":"image.jpg","type":"image\/jpeg","tmp_name":"\/tmp\/phpkLnjR9","error":0,"size":79908}} |
This file contains hidden or 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 | |
| // Load in the Autoloader | |
| require COREPATH.'classes'.DIRECTORY_SEPARATOR.'autoloader.php'; | |
| class_alias('Fuel\\Core\\Autoloader', 'Autoloader'); | |
| // Bootstrap the framework DO NOT edit this | |
| require COREPATH.'bootstrap.php'; | |
| Autoloader::add_classes(array( |
This file contains hidden or 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 Controller_Post extends \Controller_Template | |
| { | |
| public $template = 'templates/page'; | |
| public function action_index() | |
| { | |
| \Response::redirect("/"); |
This file contains hidden or 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
| # Fetch from the remote | |
| git fetch {remote} | |
| # List remote branches | |
| git branch -r | |
| # Find the branch labeled {remote}/branchname you want to diff | |
| # Diff it | |
| git diff {remote}/branch . |
This file contains hidden or 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 <UIKit/UIKit.h> | |
| @interface MMPageViewController : UIPageViewController | |
| @end |
This file contains hidden or 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
| begin | |
| require "rainbow" | |
| rescue LoadError => e | |
| # Lets not worry about this | |
| end | |
| module Snowey | |
| module Logger |
This file contains hidden or 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 Thing | |
| def say_message string | |
| self.message = string | |
| self.say | |
| end | |
| module_function :say_message | |
| def message= string |