| Header 1 | Header 2 |
|---|---|
| More data | Some data |
| Random data | Extra data |
| Associated data | My data |
| Even more data | Your data |
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
| #!/usr/bin/env php | |
| <?php | |
| // lists netbeans projects and shows current branch for each | |
| $user = get_current_user(); | |
| $dir = scandir("/Users/$user/NetBeansProjects"); | |
| foreach ($dir as $d) { | |
| if (!in_array($d, ['.', '..']) && strpos($d, '-nb') == false) { | |
| $data = shell_exec("cd /Users/$user/NetBeansProjects/$d && git status"); | |
| $lines = explode("\n", $data); | |
| print_r(str_replace('On branch ', '', $lines[0]) . ' ' . $d); |
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
| // https://docs.aws.amazon.com/aws-sdk-php/guide/latest/service-s3.html#uploading-a-file | |
| /** | |
| * set key & secret | |
| */ | |
| $client = S3Client::factory(array( | |
| 'key' => ‘YOUR-KEY’, | |
| 'secret' => ‘YOUR-SECRET’ | |
| )); |
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
| // vibrate can be 1, 2, 3 | |
| {"content":"Hello John,\nWelcome to Cards for Pebble!\n\nUpdated:\nSat, 30 May 2015 08:05:43 -0400","refresh_frequency":10,"vibrate":"1"} |
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
| #!/bin/bash | |
| # Simple setup.sh for configuring Ubuntu 12.04 LTS EC2 instance | |
| # for headless setup. | |
| # Install nvm: node-version manager | |
| # https://github.com/creationix/nvm | |
| sudo apt-get install -y git | |
| sudo apt-get install -y curl | |
| curl https://raw.github.com/creationix/nvm/master/install.sh | sh |
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
| // Correct way of using JQuery-Mobile/Phonegap together? | |
| // the order of declaring script matters. First include jquery, THEN THIS CODE inside a script element, then jquery mobile js | |
| var deviceReadyDeferred = $.Deferred(); | |
| var jqmReadyDeferred = $.Deferred(); | |
| document.addEventListener("deviceReady", deviceReady, false); | |
| function deviceReady() { |
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
| --- | |
| aamu.edu: Alabama A&M University | |
| ab.edu: Alderson Broaddus University | |
| acu.edu: Abilene Christian University | |
| adelphi.edu: Adelphi University | |
| aic.edu: American International College | |
| alaska.edu: University of Alaska System | |
| alasu.edu: Alabama State University | |
| albany.edu: University at Albany | |
| albion.edu: Albion College |
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
| In MainViewController.m inside: - (void)viewWillAppear:(BOOL)animated add this: | |
| //Lower screen 20px on ios 7 | |
| if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) { | |
| CGRect viewBounds = [self.webView bounds]; | |
| viewBounds.origin.y = 18; | |
| viewBounds.size.height = viewBounds.size.height - 18; | |
| self.webView.frame = viewBounds; | |
| } |
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
Show hidden characters
| keymap: | |
| [ | |
| // Sublime | |
| { "keys": ["super+shift+i"], "command": "reindent" }, | |
| { "keys": ["super+shift+o"], "command": "expand_tabs" }, | |
| { "keys": ["command+shift+k"], "command": "toggle_side_bar" }, | |
| // PHP Companion | |
| { "keys": ["super+shift+u"], "command": "find_use" }, | |
| { "keys": ["super+shift+n"], "command": "insert_php_constructor_property" }, |
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
| <h2>Learn C++</h2> | |
| <a href="http://www.cplusplus.com/doc/tutorial/" target="_blank">http://www.cplusplus.com/doc/tutorial/</a><br /> | |
| <a href="http://www.learncpp.com/" target="_blank">http://www.learncpp.com/</a><br /> | |
| <hr /> | |
| <h2>Machine Learning</h2> | |
| <a href="http://ciml.info/" target="_blank">http://ciml.info/</a><br /> | |
| <hr /> | |
| <h2>Computer Vision</h2> | |
| <a href="http://opencv.org/" target="_blank">http://opencv.org/</a><br /> |