Using d3.geo.tile to display vector tiles using canvas, with d3.behavior.zoom for pan & zoom. This example provides additional mechanism for caching tile data, and different road styles dependend on types from json tiles.
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j
Output:
ejs
HTML:
<a href="http://some-url.com">
test title
</a>
const { uncmin } = require("numeric"); | |
const fmin = require("fmin"); | |
const data = require("./intervals-data.json"); | |
document.body.style.display = "flex"; | |
const makeDiv = title => { | |
const div = document.createElement("div"); | |
const text = document.createElement("div"); |
set nosmoothscroll | |
let hintcharacters = "asdfewjklio" | |
let scrollduration = 0 | |
unamp e | |
unmap "shift+d" | |
unmap "shift+e" | |
unmap "shift+g" | |
unamp 0 | |
unmap $ |
@-webkit-keyframes fadein { | |
from { | |
opacity: 0; | |
} | |
to { | |
opacity: 1; | |
} | |
} | |
#sVim-command { |
const L = require('leaflet'); | |
const csv = require('comma-separated-values'); | |
const fs = require('fs'); | |
const fileData = fs.readFileSync('quakes.csv').toString(); | |
const csvData = csv.parse(fileData); | |
const linkEl = document.createElement('link'); | |
linkEl.rel = 'stylesheet'; | |
linkEl.href = 'file:///' + __dirname + '/node_modules/leaflet/dist/leaflet.css'; |
// Ported from Stefan Gustavson's java implementation | |
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
// Read Stefan's excellent paper for details on how this code works. | |
// | |
// Sean McCullough banksean@gmail.com | |
// | |
// require.js wrap by Szymon Kaliski contact@treesmovethemost.com | |
define([], function() { | |
/** |
/* | |
ABOUT: | |
A fast single file 2D voronoi diagram generator. | |
HISTORY: | |
0.2 2016-12-30 - Fixed issue of edges not being closed properly | |
- Fixed issue when having many events |
I hereby claim:
- I am szymonkaliski on github.
- I am szymonkaliski (https://keybase.io/szymonkaliski) on keybase.
- I have a public key ASD2G2YJgkYAlDxtlFjz9ObDKeTCi4pT9lO0fnhU9iPB-wo
To claim this, I am signing this object: