Skip to content

Instantly share code, notes, and snippets.

Matt Fullerton mattfullerton

Block or report user

Report or block mattfullerton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mattfullerton
mattfullerton / getallckanresources.py
Created Jun 11, 2015
Download all resources from a CKAN
View getallckanresources.py
import urllib, urllib2, json
baseurl = 'https://yourckanurl.com'
apikey = None # Set to something else if using private datasets
print 'Downloading ' + baseurl + "/api/3/action/current_package_list_with_resources..."
request = urllib2.Request(baseurl +'/api/3/action/current_package_list_with_resources')
if apikey != None:
@mattfullerton
mattfullerton / multiviewtest.html
Created Aug 12, 2014
Failing Recline MultiView Grid+Map
View multiviewtest.html
<!DOCTYPE html>
<html lang="en">
<head>
<!-- you do not have to use bootstrap but we use it by default -->
<link href="vendor/bootstrap/2.3.2/css/bootstrap.css" rel="stylesheet">
<!-- css -->
<link href="vendor/leaflet/0.4.4/leaflet.css" rel="stylesheet">
<!--[if lte IE 8]>
<link rel="stylesheet" href="vendor/leaflet/0.4.4/leaflet.ie.css" />
@mattfullerton
mattfullerton / README.md
Created Mar 21, 2014
trajectories - README is empty
View README.md

README is empty

View stackedbars.js
var chartHeight;
var chartWidth;
// ceiling value; needs to be set
var ceiling;
// Y scale will fit values from 0-10 within pixels 0 - height
var y;
var yneg;
/**
View timestamp.js
/**
* Return a timestamp with the format "m/d/yy h:MM:ss TT"
* @type {Date}
*/
function timeStamp() {
// Create a date object with the current time
var now = new Date();
// Create an array with the current month, day and time
You can’t perform that action at this time.