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.
import java.awt.BorderLayout; | |
import java.awt.Color; | |
import java.awt.SystemColor; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.SwingUtilities; | |
import javax.swing.border.EmptyBorder; |
# Import files under folder name fawn | |
# It is very important to include the option (full.names=TRUE). It it is not included | |
# then you will get the error something like | |
# "Error in file(file, "rt") : cannot open the connection In addition: Warning message: | |
#In file(file, "rt") : cannot open file 'FAWN_2002.csv': No such file or directory | |
mydata=ldply(list.files(path="data/fawn/",pattern="csv",full.names=TRUE),function(filename) { | |
dum=read.csv(filename) | |
dum$filename=filename | |
return(dum) |
#!/bin/bash | |
function __RETURN_CODE { | |
RETCODE=$? | |
case $RETCODE in | |
0) RETSTR=" 😈 " ;; | |
1) RETSTR=" 😭 " ;; | |
2) RETSTR=" 😱 " ;; |
license: MIT | |
border: no |
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.
vioplot2 <- function (x, ..., range = 1.5, h = NULL, ylim = NULL, names = NULL, | |
horizontal = FALSE, col = "magenta", border = "black", lty = 1, | |
lwd = 1, rectCol = "black", colMed = "white", pchMed = 19, | |
at, add = FALSE, wex = 1, drawRect = TRUE, side="both") | |
{ | |
datas <- list(x, ...) | |
n <- length(datas) | |
if (missing(at)) | |
at <- 1:n | |
upper <- vector(mode = "numeric", length = n) |
#https://gist.github.com/GuyCarver/4173534 | |
from scene import * | |
import feedparser | |
from time import sleep | |
import random | |
import Queue | |
from threading import Thread, Event | |
fontsize = 25 |
/* Side notes for calling out things | |
-------------------------------------------------- */ | |
/* Base styles (regardless of theme) */ | |
.bs-callout { | |
margin: 20px 0; | |
padding: 15px 30px 15px 15px; | |
border-left: 5px solid #eee; |
This example is inspired by Calendar View and Trulia Trends. You can toggle the displaying type to see either the level of values or change trends in each day. Thank air-scientific.com for the pm2.5 data.