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
| ''' | |
| Read in a STCN data dump file, and convert it to a CSV file (delimited with tabs) | |
| The data looks something like this: | |
| SET: S0 [10000] TTL: 5 PPN: 339722142 PAG: 1 . | |
| Ingevoerd: 1996:31-01-12 Gewijzigd: 1996:07-02-12 09:12:25 Status: 1996:31-01-12 | |
| 0500 Aav |
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
| #!/usr/bin/env python | |
| # Example: python gimmesrc.py De_Cive > txt | |
| import sys, urllib, urllib2 | |
| URL = 'http://en.wikisource.org/w/index.php?action=raw&title=' | |
| if __name__ == '__main__': | |
| title = sys.argv[1] | |
| title_parts = [] |
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
| #!/usr/bin/env python | |
| ''' | |
| Markdown Watcher and auto regenerater | |
| While sitting in an aeroplane, I found myself editing a bunch of Markdown | |
| files and needing to regenerate the HTML and preview in a browser. | |
| It was tedious re-typing the 'markdown' command every time, so I made | |
| this little script to watch the *.markdown files and create the corresponding | |
| .html flavour if the modification date of the markdown file is newer or the | |
| html does not exist yet. |
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 sys | |
| import json | |
| import ntriples | |
| from datetime import datetime | |
| import httplib | |
| ES_URL = "localhost:9200" | |
| ES_PATH = "/bibserver/" | |
| field_mapping = { |
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
Show hidden characters
| [ | |
| { "keys": ["ctrl+i"], "command": "icclipboard" } | |
| ] |
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 sys | |
| import json | |
| import ntriples | |
| import time | |
| from datetime import datetime | |
| import httplib | |
| ES_URL = "localhost:9200" | |
| ES_PATH = "/bibserver/" |
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
| This gist has been replaced by: https://gist.github.com/1731588 |
NewerOlder