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 archlinux:base-devel | |
RUN pacman -Syu meson ninja cmake csfml curl ncurses --noconfirm --needed | |
RUN curl -LO https://github.com/Snaipe/Criterion/releases/download/v2.4.1/criterion-2.4.1.tar.xz | |
RUN tar -xf criterion-2.4.1.tar.xz | |
RUN cd criterion-2.4.1 && arch-meson -Db_pie=false -Db_lto=false build | |
RUN cd criterion-2.4.1 && meson compile -C build -v --ninja-args=-n,-v,-d,explain |
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
# Example use case | |
include check_cmd.mk | |
all: $(VENV) | |
VENV=VENV | |
$(VENV): | |
$(call CHECK_CMD, python3) | |
@ python3 -m venv $@ |
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 selenium import webdriver | |
from selenium.webdriver.firefox.options import Options | |
from selenium.webdriver.firefox.service import Service | |
URL = "https://www.google.com" | |
def main(): | |
options = Options() | |
options.headless = True |
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
git clone https://github.com/Epitech/banana-vera.git || exit 1 | |
cd banana-vera | |
yay -Sy boost | |
cmake . -DVERA_LUA=OFF -DPANDOC=OFF -DVERA_USE_SYSTEM_BOOST=ON | |
make -j | |
sudo make install |
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
print("Light out in 1 line, use A1 to E5 to play (A-E vertical, 1-5 horizontal)"*0,type('',((__:=setattr)and(BS:=5)and(r:=__import__('random'))and()),{'__init__':lambda s:(__(s,'b',[[0 for _ in range(BS)]for _ in range(BS)])or __(s,'ir',0)or s.sb())and None,'__iter__':lambda s: s,'__next__':lambda s: s.ir,'__repr__':lambda s:'\n'.join(' '.join('.x'[c]for c in line)for line in s.b),'main':lambda s:(__(s,'ir',0),[(print(s),(s.hp(),s.cw()))for _ in iter(s.__next__, 1)], "You won!")[2],'c':property(lambda s:sum(map(sum,s.b))),'cp':lambda _,cs:(len(cs) == 2 and cs[0]in'ABCDE'and cs[1] in '12345'),'cw':lambda s:(__(s,'ir',s.iw)),'iw':property(lambda s: (s.c==0)),'hp':lambda s:(s.cp(p:=input("Where to play? "))and(s.sl(*s.tc(p)))),'sb':lambda s:[s.sl(r.randrange(0,BS),r.randrange(0,BS))for _ in range(100)],'sl':(lambda s,x,y:[s.sw(x+dx,y+dy)for dx,dy in((0,0),(0,-1),(0,1),(-1,0),(1,0))if((0<=(x+dx)<BS)and(0<=(y+dy)<BS))]),'sw':lambda s,x,y:(__(s,'b',[[c if((cx!=x)or(cy!=y))else(not(s.b[y][x]))for cx,c in enumerate(l |
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 | |
from github import Github | |
BASE_DIR = '...' | |
GITHUB_TOKEN = '...' | |
CWD = os.getcwd() | |
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
/* */ | |
body { | |
background: #0b0815; | |
} | |
header { | |
background-color: #0b0815 !important; | |
} |
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 __future__ import annotations | |
from dataclasses import dataclass | |
from typing import Any, Optional, List, Generic, TypeVar, NoReturn, Callable, Union, Tuple | |
_K = TypeVar('_K') | |
_V = TypeVar('_V') | |
@dataclass |
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
1 => 1 ------------------------------------------------------ | |
< Min 0.00001 | 1 | 0.00x | |
> Max 0.00003 | 1 | 0.00x | |
~ Avg 0.00001 | 1.0 | 0.00x | |
2 => 1 ------------------------------------------------------ | |
< Min 0.00001 | 1 | 1.00x | |
> Max 0.00030 | 30 | 29.07x | |
~ Avg 0.00004 | 8.48 | 4.17x | |
3 => 1 ------------------------------------------------------ | |
< Min 0.00003 | 2 | 0.61x |
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
all: start | |
PKG = | |
VENV = venv | |
VBIN = $(VENV)/bin | |
TEST = tests | |
$(VBIN)/python: | |
python3 -m venv venv |