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
Narrator_According_to_all_known_laws_of_aviation__there_is_no_way_that_a_bee_should_be_able_to_fly__Its_wings_are_too_small_to_get_its_fat_little_body_off_the_ground__The_bee__of_course__flies_anyway_because_bees_don_t_care_what_humans_think_is_impossible___Cut_to_Barry_s_room__where_he_s_picking_out_what_to_wear__BarryYellow__black__Yellow__black__Yellow__black__Yellow__black__Ooh__black_and_yellow_Yeah__let_s_shake_it_up_a_little___Barry_uses_honey_from_a_dispenser_to_style_his_hair__rinse_his_mouth__and_then_applies_it_to_his_armpits__Mom__Janet_Benson__calling_from_downstairs___Barry_Breakfast_is_ready_Barry_Coming__phone_rings__Oh__hang_on_a_second___adjusts_his_antennas_into_a_headset__Hello_Adam_Flayman_on_the_phone__Barry_Barry_Adam_Adam_Can_you_believe_this_is_happening_Barry_I_can_t_believe_it__I_ll_pick_you_up___hangs_up__sharpens_his_stinger__Lookin__sharp___flies_downstairs__Mom_Barry__why_don_t_you_use_the_stairs_Your_father_paid_good_money_for_those__Barry_Sorry__I_m_excited__Dad__Martin_Benson |
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
from unidecode import unidecode | |
import codecs | |
def rot13(mot): | |
return codecs.encode(mot, 'rot_13') | |
def string_set_from_file(file_path, encoding="utf-8"): | |
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
import os, sys, requests, json, shutil | |
results = json.loads(requests.request("GET", "https://imsea.herokuapp.com/api/1?q=" + sys.argv[1]).text)["results"] | |
os.path.exists(sys.argv[1] + "/") or os.makedirs(sys.argv[1] + "/") | |
[open(sys.argv[1] + "/" + sys.argv[1] + str(i // 2 + 1) + '.png', 'wb').write(requests.get(results[i]).content) for i in | |
range(0, len(results), 2)] | |
shutil.make_archive(sys.argv[1], 'zip', sys.argv[1] + "/") | |
shutil.rmtree(sys.argv[1] + "/") |
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
import curses | |
from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN | |
from random import randint | |
# Constants | |
KEY_ESC = 27 | |
height = 10 | |
width = 40 | |
half_height = int(height / 2) |
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
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.MouseAdapter; | |
import java.awt.event.MouseEvent; | |
import java.util.Random; | |
import static javax.swing.SwingConstants.CENTER; | |
public class AreYouDumb extends JFrame { | |
private final JLabel label; |
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
@ECHO off | |
REM @Author Florian Latapie | |
echo Apache Maven auto install script for Windows & echo. & echo Downloading the zip file & echo. | |
curl -o tmp.zip https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.zip | |
echo Installation & echo. | |
powershell -command "Expand-Archive tmp.zip 'C:\Program Files\apache'" | |
setx /M PATH "%PATH%;C:\Program Files\apache\apache-maven-3.8.6\bin" | |
del tmp.zip |
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
import curses | |
# Constants | |
import random | |
KEY_ESC = 27 | |
X = "X" | |
O: str = "O" | |
EMPTY = " " |
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
echo -e "Recherche de fichiers dans http://users.polytech.unice.fr/~lippi/cpp/td/" | |
# source : https://stackoverflow.com/a/26269730 | |
wget -q -r -np -nH --cut-dirs=3 -R *.html* http://users.polytech.unice.fr/~lippi/cpp/td/ | |
# -q : silencieux | |
# -r : récursivement | |
# -np : ne pas aller dans les répertoires du dessus | |
# -nH : ne pas sauvegarder les fichiers dans le dossier "hostname". | |
# --cut-dirs=3 : sauvegarde en omettant les 3 premiers dossiers ~lippi, cpp, td | |
# -R *.html* : exclure les fichiers .html | |
echo -e "Terminé !" |
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
javascript:window.location.host=window.location.host.replace(/(com|dev)/,x=>"comdev".replace(x,"")) |
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
javascript:window.location.href="https://gist."+window.location.href.match(/(github\.com\/[^/]+)(?:\/.*)?/)[1] |
OlderNewer