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
var cities = ["Bologna","Milano","Stavanger","Frankfurt nad Menem","Maastricht","Paris","Sztokholm","Oslo","Bratysława","Malmo","Napoli","Billund","Dortmund","Kyiv","Goteborg","Brussel","Bari","Köln","Vilnius","Glasgow","Belfast","Rzym","Bristol","Eindhoven","Bergen","Budapest","Poznań","București","Praga","Timișoara","Lublin","Debrecen","Skopje","Cluj-Napoca","Sofia","Wrocław","Amsterdam","Szczytno","Lisboa","Londyn","Burgas","Larnaca","Catania","Barcelona","Alacant","Valleta","Birmingham","Ovda","Liverpool","Lamezia Terme","Szczecin","Podgorica","Zadar","Aberdeen","Basel","Pula","Split","Tuzla","Beograd","Lublana","Memmingen","Craiova","Suceava","Rīga","København","Kutaisi","Teguise","Bordeaux","Doncaster","Venezia","Lyon","Hamburg","Groningen","Santander","Turku","Agadir","Kristiansand","Trondheim","Porto","Rzeszów","Genève","Varna","Niš","Hannover","Kerkira","Nice","La Orotava","Dubaj","Tel Aviv-Yafo","Düsseldorf","Chișinău","Athina","Berlin","Nürnberg","Trieste","Torino","Alghero","Thessaloniki","Reykjav |
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
alert('hoho'); |
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
let reduce = function(func, acc, items){ | |
if(items.length === 0){ | |
return acc; | |
} | |
return reduce(func, func(acc, R.head(items)) , R.tail(items)); | |
} |
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 reduce(func, acc, items){ | |
for(var i = 0; i<items.length; i++){ | |
acc = func(acc, items[i]); | |
} | |
return acc; | |
} |
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 () { | |
function loadScript(url) { | |
return new Promise((resolve) => { | |
let script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.async = false; | |
script.src = url; |
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
#!/bin/bash | |
docker run --net=host -v `pwd`:`pwd` -w `pwd` -ti --rm node npm "$@" |
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
// wciaga | |
{ | |
"gruboscSciany": 25, | |
"sciany": [ | |
{"start": {"x": 10, "y":20}, "end":{"x": 200, "y": 100}}, | |
{"start": {"x": 10, "y":20}, "end":{"x": 200, "y": 100}}, | |
{"start": {"x": 10, "y":20}, "end":{"x": 200, "y": 100}}, | |
{"start": {"x": 10, "y":20}, "end":{"x": 200, "y": 100}}, | |
{"start": {"x": 10, "y":20}, "end":{"x": 200, "y": 100}}, |
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
max [] = error "cannot get max from empty list" | |
max [x] = x | |
max (head:tail) | |
| head > max tail = head | |
| otherwise = max tail |
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 SubsetSum(z,k){k=k||[0];l=k.length;while(l&&k){s=z[0]+k[l-1];k.push(s);k=s&&k;l--;}return!!z[0]&&(!k||SubsetSum(z.slice(1),k));} |