This file contains hidden or 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
| javascript:void(function(){setInterval(function(){document.querySelectorAll('iframe').forEach(function(element){console.log('Iframe Killa - Removing Element:', element);element.parentNode.removeChild(element)})},100)}()); |
This file contains hidden or 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
| // Since overlays are VectorGrid layers with canvas rendering, | |
| // they don't support clicking through them (the topmost canvas | |
| // swallows the event, lower layers will not see it). | |
| // We workaround this by this hack (inspired by | |
| // http://www.vinylfox.com/forwarding-mouse-events-through-layers/): | |
| // | |
| // All overlays are in their own Leaflet pane. When a click hits a | |
| // layer in the pane, we first handle the event like normal, and then | |
| // hit the event handler below this comment. | |
| // |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| import os.path | |
| import re | |
| ''' | |
| INSTRUCTIONS | |
| 1. Create a file with the following code | |
| 2. Put the file you want to convert into the same folder as it, and rename it to "py_file.py" | |
| 3. Add a "#F" comment to any lines in the code which have a function call that doesn't assign anything (so no =), | |
| as the program cannot handle these convincingly | |
| 4. Run the converter file |
This file contains hidden or 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
| /* The solution found here: http://www.aspsnippets.com/Articles/Change-URL-in-Browser-Address-Bar-without-reloading-using-JavaScript-and-jQuery.aspx */ | |
| /** HTML5 History pushState method | |
| * The pushState method works similar to window.location but it does not refresh or reload the page and it will modify the URL even if the page does not exists. The pushState method actually inserts an entry into the history of the browsers which allows us to go back and forth using the browser’s forward and back buttons. | |
| * The pushState method accepts the following three parameters. | |
| * 1. State object: - The state object is a JavaScript object which can contain any details about the page and must be serializable. | |
| * 2. Title: - The title of the page. | |
| * 3. URL – The URL of the page. | |
| */ |
This file contains hidden or 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
| INSERT INTO <my_table_name> (cartodb_id, the_geom, the_geom_webmercator) | |
| WITH inputs AS (SELECT | |
| ST_Transform(ST_SetSRID(ST_MakeEnvelope( | |
| -126.21093749999999, 23.241346102386135, | |
| -63.28125, 50.064191736659104 | |
| ), 4326), 5070) geom, | |
| 500000 width, | |
| 500000 height | |
| ), rast AS (SELECT | |
| (st_pixelaspolygons( |
This file contains hidden or 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
| <html> | |
| <head> | |
| <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css"/> | |
| <style> | |
| #mapid{ | |
| height: 480px; | |
| } | |
| #download { | |
| position:absolute; |
This file contains hidden or 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
| #!/usr/bin/env python | |
| from __future__ import print_function, unicode_literals | |
| import operator | |
| import psycopg2 | |
| import psycopg2.extras | |
| import io | |
| import json | |
| import sys | |
| import logging |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.