Skip to content

Instantly share code, notes, and snippets.

const axios = require('axios');
const cheerio = require('cheerio');
let page = 1;
const maxPage = 100;
function start() {
const url = `https://audiovis.nac.gov.pl/zespol/2:${page}/`;
axios.get(url)
.then((response) => {
const ireland = [
{
name: 'Connacht',
parts: [
{ name: 'Galway', coordinates: '53.3333:-9.0:11' },
{ name: 'Leitrim', coordinates: '54.1167:-8.0:11' },
{ name: 'Mayo', coordinates: '53.9:-9.25:11' },
{ name: 'Roscommon', coordinates: '53.75:-8.25:11' },
{ name: 'Sligo', coordinates: '54.25:-8.6667:11' }],
},
return (function ($, mw) {
var translations = {
en: {
conflictMessage: 'A conflict detected on ',
conflictWithMessage: 'with',
createRedirect: 'Create a redirect',
creatingRedirect: 'Creating redirect...',
errorWhile: 'Error while "$1":',
invalidInput: 'Currently only Qid is a valid input',
loadMergeDestination: 'Load merge destination on success',
console.log('WERSJA', 150);
mw.loader.using(
[
'wikibase.ui.entityViewInit',
'jquery.ui.draggable',
'jquery.ui.droppable',
'oojs',
'oojs-ui-core',
'oojs-ui-widgets'

Keybase proof

I hereby claim:

  • I am yarl on github.
  • I am yarl (https://keybase.io/yarl) on keybase.
  • I have a public key whose fingerprint is B76E 2C7E E79F 7F00 7984 EB1D 173B B347 B846 7BEA

To claim this, I am signing this object:

/*
CSS styling for <input>
https://github.com/angular/material/issues/276
JS:
$scope.select = "foo";
$scope.list = ["foo", "bar"];
Front:
@yarl
yarl / geoportal-tms.php
Created January 2, 2014 18:32
Geoportal WMS to TMS conversion.
<?php
$zoom = htmlspecialchars($_GET["zoom"]);
$x = htmlspecialchars($_GET["x"]);
$y = htmlspecialchars($_GET["y"]);
//explanation: https://gist.github.com/tmcw/4954720
$y = pow(2, $zoom)-$y-1;
//source: https://github.com/timwaters/whoots/blob/master/whoots.rb
@yarl
yarl / prezentacja.html
Last active December 31, 2015 13:39 — forked from Karol007/gist:7931440
<!--
Based on Google IO 2012/2013 HTML5 Slide Template
URL: https://code.google.com/p/io-2012-slides
-->
<!DOCTYPE html>
<html>
<head>
<title>Wikipedia</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
@yarl
yarl / wiki-loves-monuments-2013-poland.html
Last active December 28, 2015 22:29
Presentation about Wiki Loves Monuments 2013 in Poland (Wiki Lubi Zabytki 2013)
<!--
Based on Google IO 2012/2013 HTML5 Slide Template
URL: https://code.google.com/p/io-2012-slides
-->
<!DOCTYPE html>
<html>
<head>
<title>Wiki Loves Monuments 2013 in Poland</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
@yarl
yarl / wikizabytki-geocoder.htm
Created August 21, 2013 22:55
Geocoder for Wiki Loves Monuments in Poland
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8">
<title>Geokoder dla Wiki Lubi Zabytki</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Paweł Marynowski (yarl@o2.pl)">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet">
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css" rel="stylesheet">