Skip to content

Instantly share code, notes, and snippets.

View MiguelCarranza's full-sized avatar

Miguel José Carranza Guisado MiguelCarranza

View GitHub Profile
### Keybase proof
I hereby claim:
* I am miguelcarranza on github.
* I am elwatto (https://keybase.io/elwatto) on keybase.
* I have a public key ASDFkVFu1-IrkjCQXd_9aPIc_QaT7D5LZriit7Tb4c12Fwo
To claim this, I am signing this object:
import subprocess
import time
from typing import Optional
import requests
TELEGRAM_BOT_API_KEY = '<telegram_api_key>'
TELEGRAM_CHAT_ID = '<telegram_chat_id>'
@MiguelCarranza
MiguelCarranza / Parse.findAll.js
Created July 1, 2013 20:16
Get all the objects stored in Parse. Hack for breaking the limit of 1000 results per request when using the free version of parse.com
/**
* Get all the objects stored in Parse. Hack for breaking the
* limit of 1000 results.
*/
if (Parse.Query.prototype.findAll == null)
Parse.Query.prototype.findAll = function (a) {
var res = [],
countQuery, numRequests, requestsLeft,
parseResultLimit = 1000,
_this = this;