Skip to content

Instantly share code, notes, and snippets.

import requests
device_id = 'betabeers'
lang = 'es'
choice = ''
page_size = 20
while not choice:
choice = raw_input("Hola mestre, quin hashtag vols hackejar?: ")
more = ''
loops = 0
@xecgr
xecgr / [ESPAÑOL] Javascript ISO country code to country name mapping
Created October 18, 2015 06:50
ISO 3166-1 alpha-2 country code to country name conversion with a simple Javascript implementation, an array and a function. It completes the English version from https://gist.github.com/maephisto/9228207
//crawled from https://es.wikipedia.org/wiki/ISO_3166-1
isoCountries = {
"AD": "Andorra",
"AE": "Emiratos \u00c1rabes Unidos (los)",
"AF": "Afganist\u00e1n",
"AG": "Antigua y Barbuda",
"AI": "Anguila",
"AL": "Albania",
"AM": "Armenia",
"AO": "Angola",
@xecgr
xecgr / [FRANÇAIS] Javascript ISO country code to country name mapping
Created October 18, 2015 06:49
ISO 3166-1 alpha-2 country code to country name conversion with a simple Javascript implementation, an array and a function. It completes the English version from https://gist.github.com/maephisto/9228207
//crawled from https://fr.wikipedia.org/wiki/ISO_3166-1
isoCountries = {
"AD": "Andorre",
"AE": "\u00c9mirats Arabes Unis",
"AF": "Afghanistan",
"AG": "Antigua-Et-Barbuda",
"AI": "Anguilla",
"AL": "Albanie",
"AM": "Arm\u00e9nie",
"AO": "Angola",
@xecgr
xecgr / [DEUTCH] Javascript ISO country code to country name mapping
Last active August 8, 2020 15:05
ISO 3166-1 alpha-2 country code to country name conversion with a simple Javascript implementation, an array and a function. It completes the English version from https://gist.github.com/maephisto/9228207
//initially crawled from https://de.wikipedia.org/wiki/ISO-3166-1-Kodierliste
//2020-03-23, reviewed by @luwe1204
isoCountries = {
"AD": "Andorra",
"AE": "Vereinigte Arabische Emirate",
"AF": "Afghanistan",
"AG": "Antigua und Barbuda",
"AI": "Anguilla",
"AL": "Albanien",
"AM": "Armenien",