Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
This code snippet, modifed from Mpanik's rundemo.cpp (r727, license LGPL), | |
renders the State of California using USGS state boundaries data. | |
Here's a play-by-play (via https://lists.berlios.de/pipermail/mapnik-devel/2008-August/000679.html) | |
rundemo.cpp renders a map of Ontario/Quebec, and instead I wanted to draw a | |
map of California and its surrounding states. | |
I grabbed the data from the USGS in the form of "statesp020" (google it, or | |
browse through nationalatlas.gov) and first wanted to modify rundemo.py |
// includes bindings for fetching/fetched | |
var PaginatedCollection = Backbone.Collection.extend({ | |
initialize: function() { | |
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
typeof(options) != 'undefined' || (options = {}); | |
this.page = 1; | |
typeof(this.perPage) != 'undefined' || (this.perPage = 10); | |
}, | |
fetch: function(options) { |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
tce-load -wi ncurses | |
TERM=vt100 top -c |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Torque Named Map | CartoDB</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> | |
<style> | |
html, body, #map { |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
import requests | |
from flask import Flask, request | |
BASE_URL = "https://my_account.carto.com" # Or CDN, or on-prem | |
API_KEY = "my_api_key" | |
VERIFY_SSL_CERT = True # Set to False if you don't want the proxy to verify CARTO's cert | |
app = Flask(__name__) |