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 sys | |
| import os | |
| def create_table(n, m): | |
| print(' ========================') | |
| print(' || TABLE OF {:<4d} || '.format(n)) | |
| print(' ||====================||') |
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
| #É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") |
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 PIL import Image | |
| def pair(a): | |
| if a % 2 == 0: | |
| return a | |
| else: | |
| return min(a+1,255) | |
| im = Image.open("machiavel.jpg") |
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
| #!/bin/bash | |
| LIST="$(ls | grep $1)"; | |
| for i in $LIST; | |
| do mv $i ${i/$1/$2}; | |
| done |
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 | |
| 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() |