This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| javascript:(function(){var newSS, styles='* { background:white ! important; color: black !important; text-decoration: none !important } :link, :link * { color: #0000EE !important } :visited, :visited * { color: #551A8B !important }'; if(document.createStyleSheet) { document.createStyleSheet("javascript:'"+styles+"'"); } else { newSS=document.createElement('link'); newSS.rel='stylesheet'; newSS.href='data:text/css,'+escape(styles); document.getElementsByTagName("head")[0].appendChild(newSS); } })(); |
| # load required libraries | |
| library(shiny) | |
| library(plyr) | |
| library(ggplot2) | |
| library(googleVis) | |
| library(reshape2) | |
| ####creation of example data on local directory for uploading#### |
| // Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core? | |
| L.TileLayer.Common = L.TileLayer.extend({ | |
| initialize: function (options) { | |
| L.TileLayer.prototype.initialize.call(this, this.url, options); | |
| } | |
| }); | |
| (function () { | |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| #!/usr/bin/env ruby | |
| ## disconnect | |
| # ./disconnect.rb -u yourusername | |
| # | |
| # This is a command-line utility for the bulk-downloading of run data from | |
| # the connect.garmin.com web application, which has lackluster export | |
| # capabilities. | |
| # |
| #!/usr/bin/python | |
| import random | |
| import oauth2 as oauth | |
| import sys | |
| import twitter | |
| class Markov(object): | |
| def __init__(self): |
| # Target is to generate a graph file in gexf format (http://gexf.net/format) for Gephi | |
| #----------------------------------------------------- | |
| # STEP 1 | |
| # Generate nodes and edgelist from each email log file | |
| #----------------------------------------------------- | |
| setwd("C:/R") | |
| # use sqldf for operations suited for db http://code.google.com/p/sqldf/ |