% My first GIST % Dr.Yahyaoui M.Kaddour % 09-08-2015
Je m'amuse comme je peux avec ces fantastiques outils que m'offre github
#! /bin/bash | |
source /webapp/site/bin/activate | |
cd /webapp/site/kardio/src | |
python manage.py runserver 0.0.0.0:8000 |
#!/usr/bin/env python | |
# rename and copy photos according to their EXIF date order | |
# needs exiv2 | |
import os, subprocess, shutil | |
fn = list(os.walk('.'))[0][2] |
import csv | |
from django.http import HttpResponse | |
# also include UnicodeWriter from the Python docs http://docs.python.org/library/csv.html | |
class ExportModel(object): | |
@staticmethod |
\usemodule[letter] | |
\setuplanguage [fr] [date={year, –, mm, –, dd}] % ISO 8601 date | |
\definefontfeature[default][default][protrusion=quality, | |
expansion=quality,script=latn] | |
\definefontfamily[kad][serif][Minion Pro] | |
\definefontfamily[kad][sans] [Gillius ADF] | |
\definefontfamily[kad][mono] [TeX Gyre Cursor][features=none] | |
\definefontfamily[kad][math] [TeX Gyre Pagella Math] | |
\mainlanguage[fr] |
\mainlanguage[fr] | |
\setuppagenumbering[alternative=singlesided,location={footer,inright}] | |
\setuplayout[header=1cm,leftmargin=1.5cm,rightmargin=1.5cm,footer=1.5cm] | |
\definefontfeature[default][default][protrusion=quality,expansion=quality,script=latn] | |
\definefontfamily[kad][serif][Minion Pro] | |
\definefontfamily[kad][sans] [Gillius ADF] | |
\definefontfamily[kad][mono] [TeX Gyre Cursor][features=none] | |
\definefontfamily[kad][math] [TeX Gyre Pagella Math] | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Written by Titus von der Malsburg <[email protected]>, March 2014. | |
# This is a simple script for converting vCard files to | |
# org-contacts. There is one mandatory argument: the name of the | |
# vCard file. The result is printed to standard out. | |
# Usage: |
\starttypescriptcollection [alegreya] | |
\starttypescript [serif] [alegreya] | |
\setups[font:fallback:serif] | |
\definefontsynonym [Serif] [file:Alegreya-Regular.ttf] [features=default] | |
\definefontsynonym [SerifItalic] [file:Alegreya-Italic.ttf] [features=default] | |
\definefontsynonym [SerifSlanted] [file:Alegreya-Italic.ttf] [features=default] | |
\definefontsynonym [SerifBold] [file:Alegreya-Bold.ttf] [features=default] | |
\definefontsynonym [SerifBoldItalic] [file:Alegreya-BoldItalic.ttf] [features=default] | |
\definefontsynonym [SerifBoldSlanted] [file:Alegreya-BoldItalic.ttf] [features=default] |
from flask import Flask, render_template_string, request | |
class CustomFlask(Flask): | |
jinja_options = Flask.jinja_options.copy() | |
jinja_options.update(dict( | |
block_start_string='<%', | |
block_end_string='%>', | |
variable_start_string='%%', | |
variable_end_string='%%', | |
comment_start_string='<#', |
pdf: | |
pdflatex -recorder word.tex | |
pdflatex word.tex |
% My first GIST % Dr.Yahyaoui M.Kaddour % 09-08-2015
Je m'amuse comme je peux avec ces fantastiques outils que m'offre github