Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
#!/usr/bin/env python | |
# Copyright (c) 2011 Jan Kaliszewski (zuo). Available under the MIT License. | |
""" | |
namedtuple_with_abc.py: | |
* named tuple mix-in + ABC (abstract base class) recipe, | |
* works under Python 2.6, 2.7 as well as 3.x. | |
Import this module to patch collections.namedtuple() factory function | |
-- enriching it with the 'abc' attribute (an abstract base class + mix-in |
### MATPLOTLIBRC FORMAT | |
# This is a sample matplotlib configuration file - you can find a copy | |
# of it on your system in | |
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
# there, please note that it will be overridden in your next install. | |
# If you want to keep a permanent local copy that will not be | |
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
# like systems) and C:\Documents and Settings\yourname\.matplotlib | |
# (win32 systems). |
authors: | |
hanzou: | |
name: Hanzou Hattori | |
display_name: Hanzou | |
gravatar: c66919cb194f96c696c1da0c47354a6a | |
email: hanzou@company.com | |
web: http://company.com | |
twitter: company | |
github: hhattori | |
jorgen: |
#!/usr/bin/env python | |
import urlparse | |
import mimetypes | |
import os | |
import ConfigParser | |
import urllib2 | |
import json | |
import csv | |
import time |
<!-- using the truncate filter --> | |
{% for post in site.posts limit:10 %} | |
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2> | |
<span class="post-date">{{ post.date | date: "%B %d, %Y" }}</span> | |
{% if post.content.size > 2000 %} | |
{{ post.content | truncatewords: 300 }} <!-- bad! content gives you rendered html and you will truncate in the middle of a node --> | |
<a href="{{ post.url }}">read more</a> | |
{% else %} | |
{{ post.content }} | |
{% endif %} |
Couldn't find the text of this for a while...
license: gpl-3.0 | |
height: 2910 | |
border: no | |
redirect: https://observablehq.com/@d3/d3-calendar-view |
# Set working directory | |
dir <- "C:\\" # adjust to suit | |
setwd(dir) | |
# configure variables and filenames for MALLET | |
## here using MALLET's built-in example data and | |
## variables from http://programminghistorian.org/lessons/topic-modeling-and-mallet | |
# folder containing txt files for MALLET to work on | |
importdir <- "C:\\mallet-2.0.7\\sample-data\\web\\en" |