This file contains 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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% | |
% LaTeX TEMPLATE - Project/Research Report | |
% | |
% This original template has been downloaded from: | |
% http://www.LaTeXTemplates.com | |
% | |
% Original author of the Title page: | |
% WikiBooks (http://en.wikibooks.org/wiki/LaTeX/Title_Creation) | |
% License: CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/) |
This file contains 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
#!/usr/bin/env python3 | |
#!/usr/bin/env python | |
""" | |
A script designed to | |
1) resize all of the downloaded images to desired dimension (DEFAULT 64x64 pixels) and | |
2) rename images in folders from 1.png to n.png for ease of use in training | |
Modified version from https://github.com/rkjones4/GANGogh/blob/master/misc/picStuff.py | |
""" |
This file contains 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
package main | |
import ( | |
"os" | |
"log" | |
"bufio" | |
"strconv" | |
"strings" | |
"runtime" | |
"time" |
This file contains 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
#!/usr/bin/env sh | |
# Jan 9, 2019 | |
# Debian 4.17 | |
echo Battery Status: | |
awk "BEGIN {printf \"%.1f%%\n\n\", 100*$(cat /sys/class/power_supply/BAT0/energy_now)/$(cat /sys/class/power_supply/BAT0/energy_full)}" | |
echo 'CPU Temperature (Celsius):' | |
echo "$(($(cat /sys/class/thermal/thermal_zone0/temp)/1000)) C\n" |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <unistd.h> | |
//#include <sys/socket.h> | |
//#include <netinet/in.h> | |
#include <arpa/inet.h> | |
//#include <netinet/if_ether.h> |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <openssl/sha.h> | |
/* | |
* SHA1 Function | |
* Description: just returns the hash of argv[1] | |
* To compile: gcc -Wall sha1.c -o sha1 -lcrypto | |
*/ |
This file contains 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
#!/usr/bin/env python3 | |
''' | |
Will loop infinitely until stopped by the user (ctrl+C). | |
When interrupted, the program will print "Leaving main!" before raising the <KeyboardInterrupt> exception. | |
Not very useful but I thought it was pretty cool. | |
''' | |
def main(): | |
try: |
This file contains 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
all : main | |
main : main.o | |
gcc main.o -Wall -o main | |
main.o : main.c | |
gcc -W -Wall -c main.c -o main.o | |
run : main | |
rm main.o |
This file contains 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
all : threads | |
threads : test-threads.c | |
gcc -lpthread test-threads.c -o threads | |
run : threads | |
./threads |
This file contains 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
#!/usr/bin/env python3 | |
import urllib.request, json | |
import sys | |
import datetime | |
args = sys.argv[1:] | |
dest='' | |
origine='' | |
while len(args)!=0: |
NewerOlder