Skip to content

Instantly share code, notes, and snippets.

View mapmeld's full-sized avatar

Nick Doiron mapmeld

  • yes plz you can hire me
  • Chicago, IL
View GitHub Profile
@mapmeld
mapmeld / tekstoj.py
Created December 20, 2017 12:37
Process Tekstoj XML for Neural Network
# pip3 install lxml
import os
from lxml import etree
directory = './tekstoj'
originalArticles = os.listdir(directory)
count = 0
total = len(originalArticles)
@mapmeld
mapmeld / esperantoLookup.py
Created December 6, 2017 01:34
modifications to TensorFlow NLP model
# adding Latin Extended-A's Esperanto letters after the model's last letter ("~")
esperantoLetters = {
'ĉ': 127,
'Ĉ': 128,
'ĝ': 129,
'Ĝ': 130,
'ĥ': 131,
'Ĥ': 132,
'ĵ': 133,
'Ĵ': 134,
@mapmeld
mapmeld / building-inspector-chennai.md
Last active June 12, 2017 21:48
Describing existing and future work on Building Inspector Chennai

Existing and Future Work on Building Inspector Chennai

NYC Background

Building Inspector is a crowdsourcing server which was developed by the New York Public Library's Labs team to digitize many years of paper maps.

The crowdsourcing process works like this:

@mapmeld
mapmeld / tfaas.md
Last active April 12, 2017 04:03
TensorFlow Image Analogies as a Service
@mapmeld
mapmeld / speakerpolicy.md
Last active March 29, 2017 22:42
New Speaker Policy

I would be delighted to speak at your event, provided that it meets one or more of these conditions:

  • the event is free to attend
  • the event is a class or student org meeting on a .edu campus
  • the event pays me to speak (honorarium)
  • the event provides one* free 'scholarship ticket' to a student or early-career person in an underrepresented group**

* if the event already has scholarship tickets, it can fulfill this policy by adding a scholarship ticket, or by meeting one of the other criteria

** 'underrepresented group' should be defined by the community and organizers of the event

@mapmeld
mapmeld / arabic_svg.md
Last active January 3, 2017 17:09
What is going on with Arabic in OSM iD?

What is going on with Arabic in OSM iD?

The pull request in question

tl;dr in the OSM editor, Chrome and Safari show Arabic road labels incorrectly, so we will overwrite Chrome's rules

I'm happy to discuss Arabic support with you or do a presentation!

Background

@mapmeld
mapmeld / OverEncrypt.md
Last active July 25, 2023 18:55
OverEncrypt - paranoid HTTPS

OverEncrypt

This is a guide that I wrote to improve the default security of my website https://fortran.io , which has a certificate from LetsEncrypt. I'm choosing to improve HTTPS security and transparency without consideration for legacy browser support.

WARNING: if you mess up settings, lose your certificates, or decide to no longer maintain HTTPS certs, these steps can and will make your domain inaccessible.

I would recommend these steps only if you have a specific need for information security, privacy, and trust with your users, and/or maintain a separate secure.example.com domain which won't mess up your main site. If you've been thinking about hosting a site on Tor, then this might be a good option, too.

The best resources that I've found for explaining these steps are https://https.cio.gov , https://certificate-transparency.org , and https://twitter.com/konklone

@mapmeld
mapmeld / keybase.md
Created November 11, 2016 04:49
updated keybase key

Keybase proof

I hereby claim:

  • I am mapmeld on github.
  • I am mapmeld (https://keybase.io/mapmeld) on keybase.
  • I have a public key ASDcwh8nP9CpUrYduuA0OK60uVMHG8llOSCjhsZ-UnXh8go

To claim this, I am signing this object:

@mapmeld
mapmeld / s.f77
Created November 3, 2016 02:39
more fortran
character*19 a
write(*,100)
100 format('Content-type: text/html'//)
read(*,*) a
write(*,*) '<html>'
write(*,*) 'Here is what test1.cgi sees:<br>'
write(*,'(a72)') a
write(*,*) '<p>'
write(*,*) 'First box:',a(6:9),'<br>'
write(*,*) 'Second box:',a(16:19),'</html>'
@mapmeld
mapmeld / j.jade
Created November 3, 2016 02:34
jade template
.row
.col-sm-12
h4
a(href="https://en.wikipedia.org#{wikiLink}") #{name}
em #{latinName}
hr
p #{description}