ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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
/* | |
# GEOJSON TILE LAYER IN LEAFLET.JS | |
The original idea for this gist comes from Koko A.'s post on leaflet-js google groups | |
(https://groups.google.com/forum/#!msg/leaflet-js/d7ur-evSz7Q/p_B4ea_0K1AJ) | |
Use it at your own peril (• | |
## The basic concept | |
- setup the map and the tiles as usual | |
- respond to the "tileload" event with a function that loads the json file (that has the same name - z, x, y - as the tile) |
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
// 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 | |
/** | |
* You can pass in a random number generator object if you like. | |
* It is assumed to have a random() method. | |
*/ |
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
<template> | |
<div class="w-96 mx-auto py-12 flex flex-col gap-12 items-center"> | |
<h1 class="text-center text-4xl font-bold">Canvas resize</h1> | |
<img | |
:src="avatarURL" | |
alt="Name" | |
class="w-32 h-32 rounded-full" | |
v-if="avatarURL" | |
/> |
This script will print out your local IP and copy it to clipboard. When serving/developing a web-project with Nuxt for example, You can then paste this url into your phone and test it on the device.
The url that gets printed/copied looks like so: http://192.168.0.1:3000