node_modules TimPeterson$ npm install -g n
node_modules TimPeterson$ node -v
v0.4.12
node_modules TimPeterson$ n latest
node_modules TimPeterson$ node -v
v0.9.10
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
| /** | |
| * Endless Scroll plugin for jQuery | |
| * | |
| * v1.4.4 | |
| * | |
| * Copyright (c) 2008 Fred Wu | |
| * | |
| * Dual licensed under the MIT and GPL licenses: | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * http://www.gnu.org/licenses/gpl.html |
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 Account extends CI_Controller { | |
| .... | |
| function login(){ | |
| if($_POST){ | |
| $status=$this->account_model->check_login(); | |
| if($status){ |
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
| how does pjax work |
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
| sdfas |
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
| //set POST variables | |
| $url = 'http://c.docverter.com/convert'; | |
| $fields = array('from' => 'markdown', | |
| 'to' => 'pdf', | |
| 'input_files[]' => "@/".realpath('markdown.md').";type=text/x-markdown; charset=UTF-8" | |
| ); | |
| //open connection | |
| $ch = curl_init(); |
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
| $state='Massachusetts'; | |
| $state=ucfirst($state); | |
| $states=array('AK' => 'Alaska', 'AL' => 'Alabama', 'AR' => 'Arkansas', 'AZ' => 'Arizona', 'CA' => 'California', 'CO' => 'Colorado', 'CT' => 'Connecticut', 'DE' => 'Delaware', 'DC' => 'District of Columbia', 'FL' => 'Florida', 'GA' => 'Georgia', 'HI' => 'Hawaii', 'IA' => 'Iowa', 'ID' => 'Idaho', 'IL' => 'Illinois', 'IN' => 'Indiana', 'KS' => 'Kansas', 'KY' => 'Kentucky', 'LA' => 'Louisiana', 'MA' => 'Massachusetts', 'MD' => 'Maryland', 'ME' => 'Maine', 'MI' => 'Michigan', 'MN' => 'Minnesota', 'MS' => 'Mississippi', 'MO' => 'Missouri', 'MT' => 'Montana', 'NC' => 'North Carolina', 'ND' => 'North Dakota', 'NE' => 'Nebraska', 'NH' => 'New Hampshire', 'NJ' => 'New Jersey', 'NM' => 'New Mexico', 'NV' => 'Nevada', 'NY' => 'New York', 'OH' => 'Ohio', 'OK' => 'Oklahoma', 'OR' => 'Oregon', 'PA' => 'Pennsylvania', 'RI' => 'Rhode Island', 'SC' => 'South Carolina', 'SD' => 'South Dakota', 'TN' => 'Tennessee', 'TX' => 'Texas', 'UT' => 'Utah', 'VA' => 'Virginia', 'VT' => 'V |
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
| $file = 'application/views/dwolla/post.php'; | |
| // Open the file to get existing content | |
| $current = file_get_contents($file); | |
| $date=date("Y-m-d H:i:s"); | |
| $post=json_decode(file_get_contents('php://input'), TRUE); | |
| if($post){ | |
| // Append a new person to the file | |
| foreach($post as $key=>$value) { | |
| $current .= "$key: $value\n"; | |
| } |
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
| pjax testing details |
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
| <!--AJAX: this HTML generates a crocodoc if it is accessed via an AJAX request on another page----------------------> | |
| <!--jQuery--> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script> | |
| <!--docviewer.js--> | |
| <script src="//static-v2.crocodoc.com/core/docviewer.js"></script> | |
| <!--div for viewer--> | |
| <div id="DocViewer"></div> |