Skip to content

Instantly share code, notes, and snippets.

View antoinealb's full-sized avatar

Antoine Albertelli antoinealb

View GitHub Profile

Général

  • Support de plusieurs langues pour le front end, au moins francais et anglais.
  • Unit testé autant que possible.
  • Création de compte facile, pas de collecte de 12 millions d'infos.
  • API REST ?
  • Écrit en Django 1.6 / Python 3.X

Fonctionalités présentes dans TappedOut

  • Mettre son deck en ligne, avec les caracs suivantes :
  1. Possibilité d'indiquer le format ou de demander au soft de le déterminer.
@antoinealb
antoinealb / Makefile
Created April 12, 2013 22:31
makefile for altera nios 2
#------------------------------------------------------------------------------
# VARIABLES APPENDED TO BY INCLUDED MAKEFILE FRAGMENTS
#------------------------------------------------------------------------------
# List of include directories for -I compiler option (-I added when used).
@antoinealb
antoinealb / serie2_exo3.py
Created April 3, 2013 16:40
Serie 2 exo 3 de ProbaStat
data = list(map(float, """64.5
63.5
69.5
66.5
68.5
67.0
67.5
70.0
69.5
67.5
@antoinealb
antoinealb / fullscreen4chan.py
Last active December 14, 2015 23:29
This scripts opens all the given thread's images in chromium, for those who like to live dangerously.
#!/usr/bin/env python3
import requests, sys, subprocess
from bs4 import BeautifulSoup
def main():
if len(sys.argv) < 2:
print("Usage {0} thread_url".format(sys.argv[0]))
return
@antoinealb
antoinealb / isa_watcher.py
Last active December 11, 2015 05:19
A simple script to watch for changes on IS academia. Best launched by crontab.
#!/usr/bin/env python2
import socket, ssl, re, hashlib
from datetime import date
# PDF URL on Is-Academia
URL = "/imoniteur_ISAP/!ETURELEVENOTES.pdf?ww_i_inscrblocFiltrage=XXXXXXXXXXXXX&ww_i_unite=10100&ww_i_inscription=XXX"
# GASPAR username
USERNAME = ""
@antoinealb
antoinealb / reverse.py
Created November 23, 2012 16:42
PDF File reverser
#!/usr/bin/env python2
from pyPdf import PdfFileReader, PdfFileWriter
import sys
import getpass
if len(sys.argv) > 1:
for filename in sys.argv[1:]:
@antoinealb
antoinealb / tp3_sub.c
Created November 8, 2012 16:38
Generator of logisim table for EPFL's CS-171 course's 3rd lab
#include <stdio.h>
void print_number(char num, int bitsize) {
while(bitsize--) {
if(num & (1 << bitsize))
printf("1");
else
printf("0");
printf("\t");
@antoinealb
antoinealb / malloc2d.c
Created October 30, 2012 22:53
Example of a 2 dimensional array allocation in C for the Informatics I course in MT section, EPFL
#include <stdlib.h>
#include <stdio.h>
int main(void) {
/* Programme d'exemple qui alloue un tableau 3x3 */
int sizeX = 3;
int sizeY = 3;
int **tab; /* ** Pour dire que c'est un tableau de pointeurs, c'est a dire un tableau de tableau */
int i;