A Pen by Peter Sekan on CodePen.
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
ArrayList <ArrayList> makeAirportLists( | |
UnfoldingMap map, | |
List<Marker> countryMarkers, | |
List<Marker> airportMarkers){ | |
ArrayList <ArrayList> lists = new ArrayList(); |
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
ArrayList <ArrayList> makeAirportLists( | |
UnfoldingMap map, | |
List<Marker> countryMarkers, | |
List<Marker> airportMarkers){ | |
ArrayList <ArrayList> lists = new ArrayList(); | |
// iterating through the countryMarkers | |
for (Marker country : countryMarkers){ | |
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
// we need to get right the airport list for the current country | |
// because airportLists is sorted after the coutries i calls the right one | |
ArrayList<Marker> currentAirportList = airportLists.get(i); | |
// iterating through this airport list | |
for (Marker currentAirport : currentAirportList ){ | |
// tell airport to draw itself | |
currentAirport.draw(map); |
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
#-*- coding: iso-8859-1 -*- | |
import sys | |
import os | |
import requests | |
from sets import Set | |
''' | |
This script downloads all images found under a given path | |
and with the naming schema containing a word, a trailing number and a file extension |
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
{ | |
"title": "Ergebnisse früherer Bundestagswahlen", | |
"url": "https://www.bundeswahlleiter.de/de/bundestagswahlen/downloads/bundestagswahlergebnisse/btw_ab49_gesamt.pdf", | |
"elections": | |
[ | |
{ | |
"id": 1, | |
"year": "1949", | |
"date": "1949-08-14", |
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
function uuidv4() { | |
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c=>(c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)) | |
} | |
function add(num1, num2) { | |
return num1 + num2; | |
} | |
function substract(num1, num2) { | |
return num1 - num2; |
I hereby claim:
- I am pdxiii on github.
- I am pdxiii (https://keybase.io/pdxiii) on keybase.
- I have a public key ASDqiOw2qInbuF1pqgQDziB9mJJjQW8OPriVC9gbVgPh3wo
To claim this, I am signing this object:
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
html { | |
box-sizing: border-box; | |
font-size: 16px; | |
} | |
*, | |
*:before, | |
*:after { | |
box-sizing: inherit; | |
} |
OlderNewer