Skip to content

Instantly share code, notes, and snippets.

View davidalbertonogueira's full-sized avatar
🚀
building stuff

David Nogueira davidalbertonogueira

🚀
building stuff
  • Lisbon
View GitHub Profile
@davidalbertonogueira
davidalbertonogueira / fastText_multilingual_alignment.ipynb
Last active April 4, 2019 10:43
alignment to english of Fast text embeddings (using alignment matrices from Babylonpartners/fastText_multilingual)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidalbertonogueira
davidalbertonogueira / pyICU_tokenizer.ipynb
Created April 4, 2019 16:53
pyICU tokenizer wrapper
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def main():
import sqlite3
from sqlite3 import Error
def create_connection(db_file):
""" create a database connection to a SQLite database """
try:
conn = sqlite3.connect(db_file, isolation_level=None)
#print(sqlite3.version)
@davidalbertonogueira
davidalbertonogueira / script.pl
Last active July 26, 2019 14:22
Script to generate data similar to what's shown in post 'At what time of day does famous programmers work? Part 2. Workweek vs Weekend.', but with daily statistics — based on https://ivan.bessarabov.com/blog/famous-programmers-work-time-part-2-workweek-vs-weekend
#!/usr/bin/perl
#this script is made to show graphs with git commit time made on monday vs tuesday vs wednesday vs thursday vs friday vs saturday vs sunday
#
# The desription of this script and results of its usage is avaliable at:
# https://ivan.bessarabov.com/blog/famous-programmers-work-time-part-2-workweek-vs-weekend
#
# usage:
#
# git log --author="Sebastian Riedel" --format="%H %ai" | perl script.pl
#
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.