Skip to content

Instantly share code, notes, and snippets.

(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
const syncMove = require('@mapbox/mapbox-gl-sync-move');
mapboxgl.accessToken = 'pk.eyJ1IjoiYnJzYmwiLCJhIjoiY2phYmxrZ2VnMDB6aDJ6cGxpeDhhZHNrYyJ9.M73MEVN66tbuq0ATBxqIDQ';
const lr = new mapboxgl.Map({
container: 'lr', // container id
style: 'mapbox://styles/brsbl/cjo2p4xjq55b12rp6yihgdcs5', // stylesheet location
center: [-74.50, 40], // starting position [lng, lat]
@brsbl-zz
brsbl-zz / gist:f07bfc2c9cedfff21916f6f4cd3f3052
Created July 27, 2016 16:27 — forked from johanlaidlaw/gist:1596626
Scraper for transfermarkt
<?php
include_once('../simple_html_dom.php');
function scraping($url) {
// create HTML DOM
$html = file_get_html($url);
// Find the table that has class="tabelle_spieler" in the source code
// There are two of these tables and we want the second one therefor 1 (index start by 0)