Skip to content

Instantly share code, notes, and snippets.

View Rub21's full-sized avatar
🐕

Ruben L. Mendoza Rub21

🐕
View GitHub Profile

Top 20 Users who closed notes

User Num notes
andrewpmk 7029
JBacc1 6054
jaakkoh 5131
Paul Johnson 2836
schmarn 2249
mappy123 2188
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
abbreviation Expanded
aly Alley
arc Arcade
ave Avenue
blf Bluff
blvd Boulevard
byp Bypass
cir Circle
cres Crescent
@Rub21
Rub21 / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Rub21
Rub21 / scale.md
Last active August 29, 2015 14:15 — forked from ian29/scale.md

scale, and selecting specific zoom levels

Mapnik is very smart about converting map scale to zoom level. As a secret/power user feature, Mapnik exposes a !scale_denominator! variable that changes according to the zoom level and + latitude of the vector tile being rendered. Read about the Mapnik's !scale_denominator! variable here.

With some postgres magic, the !scale_denominator lets us control which features appear and disappear, within a layer.

Concretely this is a two-part process. First you will need to load the following z() function into your PostGIS database:

CREATE OR REPLACE FUNCTION public.z(scaledenominator numeric)

Getting Started with NPM (as a developer)- Segir si funciona

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Rub21
Rub21 / client.html
Last active August 29, 2015 14:17 — forked from diorahman/client.html
<html>
<head>
<title>jsonp test</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(function(){
$('#select_link').click(function(e){
e.preventDefault();
console.log('select_link clicked');
@Rub21
Rub21 / README.md
Last active August 29, 2015 14:17 — forked from tmcw/README.md
We can't make this file beautiful and searchable because it's too large.
lat,lon,elems
40.7332282,-89.6326497,way64365323_way64364218
40.7332282,-89.6326497,way64365323_way64364718
41.8447043,-87.7189528,way163771236_way163769447
40.7029474,-89.5917399,way64373880_way64371207
40.8267228,-89.608813,way64995732_way64991859
40.8267228,-89.608813,way64995732_way64992360
40.671075,-89.6201658,way65053654_way65053490
40.671075,-89.6201658,way65053654_way65053573
40.7099342,-89.6293203,way65808514_way65808261