Skip to content

Instantly share code, notes, and snippets.

@jacquerie
jacquerie / 0_reuse_code.js
Created July 8, 2016 20:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jacquerie
jacquerie / stdout.txt
Created January 9, 2016 22:39
$ mdls 23.jpg
kMDItemBitsPerSample = 32
kMDItemColorSpace = "RGB"
kMDItemContentCreationDate = 2016-01-09 13:02:34 +0000
kMDItemContentModificationDate = 2016-01-09 13:02:34 +0000
kMDItemContentType = "public.jpeg"
kMDItemContentTypeTree = (
"public.jpeg",
"public.image",
"public.data",
"public.item",
@jacquerie
jacquerie / 4gq25.txt
Created January 9, 2016 14:39
$ outguess -r 4gq25.jpg 4gq25.txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello.
The path lies empty; epiphany seeks the devoted.
Liber Primus is the way. Its words are the map, their
meaning is the road, and their numbers are the direction.
@jacquerie
jacquerie / grobid.py
Created October 30, 2015 15:46
Python-driven GROBID retraining
#!/usr/bin/env python
# -*- coding: utf8 -*-
import os
import grobid_core
import grobid_trainer
if __name__ == '__main__':
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Utility script to build the Invenio Status Dashboard."""
from __future__ import print_function
import sys
@jacquerie
jacquerie / README.mdown
Last active February 8, 2016 12:55
Generate and use GROBID bindings with PyXB

Generate and use GROBID bindings with PyXB

  1. Install PyXB and IPython:

    $ pip install ipython pyxb
  2. Generate the bindings:

@jacquerie
jacquerie / mindfuck.py
Last active August 29, 2015 14:23
Explicit assignment and `+=` yield different results if the index produces side effects
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from itertools import count
a = [1, 10]
b = [1, 10]
c1 = count(0).next
c2 = count(0).next
@jacquerie
jacquerie / foobar.py
Last active October 28, 2023 16:09
How to decode the message at the end of Google Foobar
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import base64
MESSAGE = '''
EUYQGhMMSx0cU0FIU1MCFAQPG01NQ0gTAEICChUGBxZTRVxBSQoZFQYKHQpKSUNURhcVEgoUFR1I
SltDSBkBTRwKEAgQHxFCSkFJDgkJCgoGCkMLAQBGUklUQhMPAgAJCgYLV0MOSR0VAxAaABZBQVRP
TRICCRVIAk5IEg4dVFRfRkYZBgRARBI=
'''
@jacquerie
jacquerie / enum.csv
Last active August 29, 2015 14:22
% curl -H "Accept: application/vnd.github.drax-preview+json" https://api.github.com/licenses
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"agpl-3.0"
"apache-2.0"
"artistic-2.0"
"bsd-2-clause"
"bsd-3-clause"
"cc0-1.0"
"epl-1.0"
"gpl-2.0"
"gpl-3.0"
"isc"
Nitto Francesco PALMA nitto.palma@senato.it
Felice CASSON https://twitter.com/felicecasson https://www.facebook.com/FeliceCassonVenezia
Maurizio BUCCARELLA maurizio.buccarella@senato.it https://twitter.com/mbuccarella https://www.facebook.com/pages/Maurizio-Buccarella/231777100349249
Rosaria CAPACCHIONE rosaria.capacchione@senato.it https://twitter.com/roscapacchione https://www.facebook.com/pages/Rosaria-Capacchione/1416506645234972
Mario Michele GIARRUSSO mariomichele.giarrusso@senato.it https://twitter.com/giarrussomario https://www.facebook.com/MarioGiarrussocittadinoa5stelle
Gabriele ALBERTINI gabriele.albertini@senato.it https://twitter.com/g_albertini
Lucio BARANI lucio.barani@senato.it https://twitter.com/lucio_barani https://www.facebook.com/onorevole.lucio.barani
Enrico BUEMI enrico.buemi@senato.it https://twitter.com/buemienrico https://www.facebook.com/enrico.buemi.PSI
Giacomo CALIENDO
Enrico CAPPELLETTI cappelletti.senato@gmail.com https://twitter.com/e_cappelletti https://www.facebook.com