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 os | |
import shutil | |
def convert(): | |
tmp = '/tmp/togif' | |
if os.path.exists(tmp): | |
print('Temp path %s already exists' % tmp) | |
return | |
os.makedirs(tmp) |
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
'''Run this script and it will export a list of all CKAN extensions on github | |
(guessed by repo name containing ckanext) to json and csv files in in this directory | |
''' | |
import urllib | |
import json | |
import csv | |
jsonfp = 'extensions-gh.json' | |
csvfp = 'extensions-gh.csv' |
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 urlparse | |
import json | |
import requests | |
# set your api key for this work | |
apikey = 'XXXXX' | |
datapusher_url = 'http://datapusher-test.herokuapp.com' | |
ckan_url = 'http://datahub.io' | |
# gold prices | |
res_id = 'b9aae52b-b082-4159-b46f-7bb9c158d013' |
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
// convert a title to a slug | |
// | |
// lowercase, replace ' ' by '-' and remove everything that is not alphanumeric, underscore or dash | |
var slug = title | |
.toLowerCase() | |
.replace(/ /g, '-') | |
.replace(/--+/g, '-') | |
.replace(/[^\w-]+/g, '') | |
; |
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
// Geocoding using Mapquest Nominatim API | |
// | |
// Documentation for the API: http://wiki.openstreetmap.org/wiki/Nominatim | |
// Here's an example query: http://open.mapquestapi.com/nominatim/v1/search?q=detroit&format=json | |
// geocode function | |
// | |
// :param place: is a place name like "Detroit" or "London" | |
// :callback: function receiving arguments (error, {lon: ..., lat: ...}) | |
function geocode(place, callback) { |
- hummus - c++ pdf manipulator
- mimeograph - api on a conglomeration of tools (poppler, tesseract, imagemagick etc)
- pdftotextjs - wrapper around pdftotext
- pdf-text-extract - another wrapper around pdftotext
- pdf-extract - wrapper around pdftotext, pdftk, tesseract, ghostscript
- pdfutils - poppler wrapper
- scissors - pdftk, ghostscript wrapper w/ high level api
- textract - pdftotext wrapper
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 nodeUtil = require("util"), | |
PFParser = require("pdf2json") | |
; | |
var pdfParser = new PFParser(); | |
pdfParser.on("pdfParser_dataReady", function(data) { | |
console.log('here'); | |
console.log(data); | |
console.log(data.data.Pages[0]); |
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
2010-11-P01.csv:4:Vendor,Expense Description,Amount,Doc No,,,^M | |
2010-11-P02.csv:6:Vendor,Expense Description,Amount,Doc No,,,^M | |
2010-11-P03.csv:6:Document No","Amount | |
2010-11-P04-500.csv:1:Vendor ID,Vendor Name,Cost Element,Expenditure Account Code Description,SAP Document No,Amount £,Clearing Date^M | |
2010-11-P05-500.csv:1:Vendor ID,Vendor Name,Cost Element,Expenditure Account Code Description,SAP Document No,Amount £,Clearing Date^M | |
2010-11-P06-500.csv:1:Vendor ID,Vendor Name,Cost Element,Expenditure Account Code Description,SAP Document No,Amount £,Clearing Date^M | |
2010-11-P07-500.csv:1:Vendor ID,Vendor Name,Cost Element,Expenditure Account Code Description,SAP Document No,Amount £,Clearing Date^M | |
2010-11-P08-500.csv:1:Vendor ID,Vendor Name,Cost Element,Expenditure Account Code Description,SAP Document No,Amount £,Clearing Date^M | |
2010-11-P09-500.csv:1:Vendor ID,Vendor Name,Cost Element,Expenditure Account Code Description,SAP Document No,Amount £,Clearing Date^M | |
2010-11-P10-500.csv:1:Vendor ID,Vendor Name,Cos |