An example that shows the difference between creating a JavaScript class and subclass in ES5 and ES6.
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 | |
| $challenge = $_REQUEST['hub_challenge']; | |
| $verify_token = $_REQUEST['hub_verify_token']; | |
| // Set this Verify Token Value on your Facebook App | |
| if ($verify_token === 'testtoken') { | |
| echo $challenge; | |
| } | |
| $input = json_decode(file_get_contents('php://input'), true); |
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
| @DATABASE@__%Y-%m-%d_%H-%M-%S |
-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
To install a composer package globally, you run the usual require command, but with the addition of the global modifier. So to install PHPUnit, you would run:
$ composer global require phpunit/phpunit
$ composer global require phpunit/dbunit
$ composer global require phing/phing
$ composer global require phpdocumentor/phpdocumentor
$ composer global require sebastian/phpcpd
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
| --[[ | |
| Twitch.tv extension v0.0.2 by Stefan Sundin | |
| https://gist.github.com/stefansundin/c200324149bb00001fef5a252a120fc2 | |
| The only thing that this extension does is to act as a helper to seek to the | |
| correct time when you open a twitch.tv url that contains a timestamp. | |
| You must have the playlist parser installed as well! | |
| Usage: | |
| 1. Install the playlist parser: https://addons.videolan.org/p/1167220/ |
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
| # HTTP Status Cats | |
| # Apache (htaccess) config originally created by @dave1010, | |
| # rebuilt by Sarah Pierce (see modifications section) | |
| # Licensed CC BY 2.0 | |
| # Images CC BY 2.0, from GirlieMac's photostream: | |
| # http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/ | |
| # Usage: copy save this file as .htaccess or add it to your httpd.conf |
First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.
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
| adb shell dumpsys battery | grep level |

