I hereby claim:
- I am ptsefton on github.
- I am ptsefton (https://keybase.io/ptsefton) on keybase.
- I have a public key ASC4tD4OhLPv55oYWLyTpAjkOcP3SaOuVLCLWL4xB-daUAo
To claim this, I am signing this object:
<script src="https://cdn.jsdelivr.net/npm/webmidi"></script> | |
<body> | |
<style> | |
body { | |
background-color: #000000; | |
} | |
button { |
import argparse | |
import json | |
import os | |
def as_array(val): | |
if not isinstance(val, list): | |
return [val] | |
else: | |
return val |
I hereby claim:
To claim this, I am signing this object:
""" | |
Generates a lookup table in JSON format to map characters from Wingdings and Symbol font to unicode. | |
Eg, this fragment of HTML <font face="Symbol"></font>Laughs<font face="Symbol"></font>. | |
Which should render like this: [Laughs] | |
Uses the data in this mapping table found here: https://github.com/juanmf/sfPlugins/blob/master/reportPlugin/doc/Word2XSLTRenderingFO.xsl |
#!/usr/bin/env python | |
import urllib2 | |
import urllib | |
import json | |
import pprint | |
import requests | |
import random | |
import string | |
base_url = "http://w0414.uws.edu.au/" |
import csv | |
import StringIO | |
filestem = "WTC12_Table2_20140831" | |
in_file = "/Users/pt/Downloads/%s.dat" % filestem | |
out_file = "/Users/pt/Downloads/%s.csv" % filestem | |
def TOA52csv(in_file, out_file): | |
data = csv.reader(open(in_file)) | |
writer = csv.writer(open(out_file, "w")) |
Rem Incomplete, work in progresss, mucking around with markdown via Word | |
'For use on OS X with Word 2011 | |
' Requires pandoc - installed in /usr/local/bin | |
' Need to have styles Indent1 Indent2 etc with hanging indent at some standard increment (say 1cm), with tab-stops 1 for Indent1, 2 for Indent2 | |
' To install, paste into a module, maybe in your Normal template | |
' Bind SaveIt to, say Ctrl-s and MarkIt to Ctrl-q | |
Sub saveAsDoc(name) |