This file contains 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 sqlite3 | |
from flask import Flask, g | |
from binascii import hexlify | |
app = Flask(__name__) | |
DATABASE = '/home/janus/CashLink/database.db' | |
def get_db(): | |
db = getattr(g, '_database', None) |
This file contains 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/python | |
# | |
# This script produces a bibtex file 'inspire.bib' including all papers | |
# referenced in a collection of .tex files that have an Inspire entry. | |
# | |
# It extracts all bibtex keys from the latex file and queries Inspire | |
# for each of them, in order to get the full bibtex entry. | |
import os, re, glob, urllib |
This file contains 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 is a cmake script for running (part of) the gfortran testsuite with any compiler. | |
# Copy into trunk/gcc/testsuite/gfortran.dg/ and run from there: | |
# | |
# mkdir test_my_compiler; cd test_my_compiler | |
# cmake .. -DFC=my_fortran_compiler | |
# ctest -j$(nproc) -R CMP | |
# ctest -j$(nproc) -R EXE | |
# | |
# Note that the script does not run the complete testsuite, but only those tests which comply with the following conditions: |