Skip to content

Instantly share code, notes, and snippets.

View perudesarrollo's full-sized avatar

Max Palomino Mendoza perudesarrollo

View GitHub Profile
@perudesarrollo
perudesarrollo / gist:2e5f13e74670a27a58ca
Created November 3, 2015 16:41 — forked from jiggneshhgohel/gist:ade2c57d03c4ad895e82
Adobe Air 2.6 Installation Steps on Ubuntu 14.04 (64-bit)
@perudesarrollo
perudesarrollo / upload-imgur-api-v3.php
Last active June 22, 2021 10:42
using imgur api v3 to upload images
$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();
<?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);
{
"autocomplete": true,
"autoimport": true,
"enable_auto_align": false,
"format_on_save": true,
"ignore": "Parent",
"indent_with_space": 4,
"passes":
[
"ReindentSwitchBlocks",
@perudesarrollo
perudesarrollo / Instalaciones-React.md
Created April 10, 2022 05:42 — forked from Klerith/Instalaciones-React.md
Instalaciones recomendadas para mi curso de React de cero a experto