<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| $> launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist | |
| $> /usr/local/Cellar/mysql/5.5.9/bin/mysqld --basedir=/usr/local/Cellar/mysql/5.5.9 --datadir=/usr/local/Cellar/mysql/5.5.9/data --plugin-dir=/usr/local/Cellar/mysql/5.5.9/lib/plugin --log-error=/usr/local/Cellar/mysql/5.5.9/data/errors.err --pid-file=/usr/local/Cellar/mysql/5.5.9/data/pidfile.pid --skip-grant-tables | |
| $> mysql | |
| mysql> UPDATE mysql.user SET Password=PASSWORD('root_password') WHERE User='root'; | |
| mysql> FLUSH PRIVILEGES; | |
| $> kill `cat /usr/local/Cellar/mysql/5.5.9/data/pidfile.pid` |
| <?php | |
| /* From https://www.usps.com/send/official-abbreviations.htm */ | |
| $us_state_abbrevs_names = array( | |
| 'AL'=>'ALABAMA', | |
| 'AK'=>'ALASKA', | |
| 'AS'=>'AMERICAN SAMOA', | |
| 'AZ'=>'ARIZONA', | |
| 'AR'=>'ARKANSAS', |
| jQuery(function($) { | |
| $('form[data-async]').live('submit', function(event) { | |
| var $form = $(this); | |
| var $target = $($form.attr('data-target')); | |
| $.ajax({ | |
| type: $form.attr('method'), | |
| url: $form.attr('action'), | |
| data: $form.serialize(), |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
| <?php | |
| class BinarySearchTree { | |
| private $_root; | |
| public function __construct() { | |
| // setup sentinal node | |
| $this->_root = new BinarySearchNode(null); | |
| } | |
| public function getRoot() { | |
| return $this->hasNode() ? $this->_root->right : null; |
| <?php | |
| class QuickGit | |
| { | |
| /** @var int */ | |
| private $major = 1; | |
| /** @var int */ | |
| private $minor = 0; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
There are a few JQL syntax bits to get you started:
AND --- allows you to add qualifiers to a list!= Thing --- target one thingis in (List, Of, Things) --- target a bunch of things (Done, Closed, Resolved) typicallynot in (List, of, Things) --- do not include a bunch of things-1w --- relative time. You can also use -1d for day"2015/3/15" --- specific dates