This file contains hidden or 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
TEX=latexmk | |
OUT_FOLDER=.out | |
OPTS=-output-directory=${OUT_FOLDER} -pdf | |
PDF_VIEWER=okular | |
PDFS=YOUR_PDF.pdf | |
main: ${PDFS} | |
%.pdf : %.tex |
This file contains hidden or 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 argparse, logging | |
class Arg(object): | |
def __init__(self, *args, **kw): | |
super(Arg, self).__init__() | |
self.args = args | |
self.kw = kw | |
class FileArg(Arg): | |
def __init__(self, *args, **kw): |
This file contains hidden or 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
<!-- save under "~/.config/sublime-text-3/Packages/User/pdb.sublime-snippet" --> | |
<snippet> | |
<content><![CDATA[import pdb; pdb.set_trace()]]></content> | |
<tabTrigger>pdb</tabTrigger> | |
<scope>source.python</scope> | |
<description>pdb debug tool</description> | |
</snippet> |
This file contains hidden or 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
creds = dict(user="username", password="very_secure", db_name="sacred_experiments") | |
plotter = SacredPlotter(creds) | |
fig = plt.figure() | |
plotter.plot( | |
metrics=["accuracy", "loss"], | |
setups=[ | |
# cnn_type |
This file contains hidden or 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
from flask import Flask | |
from flask_migrate import Migrate | |
from flask_sqlalchemy import SQLAlchemy | |
app = Flask(__name__) | |
app.config["SQLALCHEMY_DATABASE_URI"] = f"sqlite:///testing.sqlite3" | |
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False | |
db = SQLAlchemy(app) |
This file contains hidden or 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 os | |
IMAGE_SERVICE_URL = "https://api.inf-cv.uni-jena.de/imserver/" | |
IMAGE_SERVICE_SECRET = os.environ.get("IMAGE_SERVICE_SECRET", "secret_needed!") | |
IMAGE_SERVICE_SECRET_KEY = "Upload-Secret" |
OlderNewer