Skip to content

Instantly share code, notes, and snippets.

View l3robot's full-sized avatar
🤖

Louis-Émile Robitaille l3robot

🤖
View GitHub Profile
@l3robot
l3robot / table_multiplication.py
Last active June 25, 2016 16:02
create a table of multipllication
import sys
import os
def create_table(n, m):
print(' ========================')
print(' || TABLE OF {:<4d} || '.format(n))
print(' ||====================||')
@l3robot
l3robot / projet-edtr.R
Last active June 15, 2016 22:39 — forked from arnaudgodin/projet-edtr.R
Émile
#Étude sur l'enquête de la dynamique du travail
#Par Arnaud Godin
#Été 2016
#Version R
good_graph <- readline(prompt="Quel graphique veux-tu faire: ")
library(foreign)
dtr<-read.csv("edtr-75M0010-F-2010-fichier-famille-economique_F2.csv")
@l3robot
l3robot / test1.py
Last active August 29, 2015 14:06
A test of mine
from PIL import Image
def pair(a):
if a % 2 == 0:
return a
else:
return min(a+1,255)
im = Image.open("machiavel.jpg")
@l3robot
l3robot / ext
Created July 30, 2014 20:21
Simple script to change the extension of many file in a folder. Usage : ext <old_ext> <new_ext>. It actually replace a part of a name to another
#!/bin/bash
LIST="$(ls | grep $1)";
for i in $LIST;
do mv $i ${i/$1/$2};
done
@l3robot
l3robot / checkJPG.py
Created July 30, 2014 15:22
Python script to find false .jpg files in a directory. It finds PNG files -- python 3.3
import os
a = input("Enter the directory name here : ");
b = os.listdir(a)
for i in b:
c = a + i
f = open(c, "rb")
image = f.read()