README is empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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" /> |
README is empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |