This is a d3 map using topojson files derived from shapefiles from the datameet/maps repo.
Many thanks to authors of these awesome code samples.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright 2012-2016 Matt Martz | |
# All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
/*====================================================================================================================================* | |
ImportJSON by Trevor Lohrbeer (@FastFedora) | |
==================================================================================================================================== | |
Version: 1.2.0 | |
Project Page: http://blog.fastfedora.com/projects/import-json | |
Copyright: (c) 2012-2013 by Trevor Lohrbeer | |
License: GNU General Public License, version 3 (GPL-3.0) | |
http://www.opensource.org/licenses/gpl-3.0.html | |
------------------------------------------------------------------------------------------------------------------------------------ | |
A library for importing JSON feeds into Google spreadsheets. Functions include: |
(function() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
# install wine 1.7 | |
add-apt-repository ppa:ubuntu-wine/ppa | |
sudo apt-get update | |
sudo apt-get install wine1.7 | |
# download steam | |
curl -o ~/Downloads/SteamSetup.exe http://media.steampowered.com/client/installer/SteamSetup.exe | |
# install some tricks | |
winetricks vcrun2010 |
#! /usr/bin/env bash | |
cd ~ | |
# Install LAMP - apache, php | |
sudo apt-get install --assume-yes apache2 php5 mysql-server-5.6 mysql-client-5.6 | |
sudo service apache2 stop | |
# Install LAMP - mysql | |
sudo apt-get install --assume-yes mysql-server-5.6 mysql-client-5.6 |
#! /usr/bin/env bash | |
cd ~ | |
# Install LAMP | |
sudo apt-get install --assume-yes apache2 mysql-server php5 php5-mysql | |
# Install other needed stuff | |
sudo apt-get install --assume-yes wget |
#! /usr/bin/env bash | |
cd ~ | |
# Install LAMP | |
sudo apt-get install --assume-yes apache2 mysql-server php5 php5-mysql | |
# Install other needed stuff | |
sudo apt-get install --assume-yes wget dos2unix |
#! /usr/bin/env bash | |
cd ~ | |
# Install LAMP | |
sudo apt-get install --assume-yes apache2 mysql-server php5 php5-mysql | |
# Install other needed stuff | |
sudo apt-get install --assume-yes unzip |
var http = require('http'); | |
var querystring = require('querystring'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'application/json'}); | |
console.log('#### [Start] Request ###'); | |
console.log('Method: ' + req.method); | |
console.log('URL: ' + req.url); | |
console.log('Headers: '); | |
console.log(req.headers); |
This is a d3 map using topojson files derived from shapefiles from the datameet/maps repo.
Many thanks to authors of these awesome code samples.