This file contains 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
{ | |
"autocomplete": true, | |
"autoimport": true, | |
"enable_auto_align": false, | |
"format_on_save": true, | |
"ignore": "Parent", | |
"indent_with_space": 4, | |
"passes": | |
[ | |
"ReindentSwitchBlocks", |
This file contains 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 | |
$mongodb = new Mongo("mongodb://username:password@localhost/database_name"); | |
$database = $mongodb->database_name; | |
$collection = $database->collection; | |
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1; | |
$limit = 12; | |
$skip = ($page - 1) * $limit; | |
$next = ($page + 1); | |
$prev = ($page - 1); |
This file contains 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
$client_id = 'xxxxxxxx'; | |
$file = file_get_contents("test-image.png"); | |
$url = 'https://api.imgur.com/3/image.json'; | |
$headers = array("Authorization: Client-ID $client_id"); | |
$pvars = array('image' => base64_encode($file)); | |
$curl = curl_init(); |
Download http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstaller.bin
Make the .bin file executable
$ chmod a+x AdobeAIRInstaller.bin
Run the .bin file by executing following