Skip to content

Instantly share code, notes, and snippets.

View 3outeille's full-sized avatar
🎯
https://www.youtube.com/watch?v=VYPi0qcHWvQ&ab_channel=ABANIMETION

Ferdinand Mom 3outeille

🎯
https://www.youtube.com/watch?v=VYPi0qcHWvQ&ab_channel=ABANIMETION
View GitHub Profile
@ruph
ruph / .vimrc
Last active February 17, 2025 06:40
vim settings
" Use vim settings, rather then vi settings (much better!)
" This must be first, because it changes other options as a side effect.
set nocompatible
set t_Co=256 " iTerm2 supports 256 color mode.
set ai " auto indenting
set history=100 " keep 100 lines of history
set ruler " show the cursor position
syntax on " syntax highlighting
filetype plugin on " use the file type plugins

Python et l'injection de dépendance

Ah, ça... quand on parle d'injection et de dépendance, on s'attend tout de suite à se prendre une flopée de visiteurs en manque de substance plus ou moins illicites. En réalité, on va parler "pattern". Et surtout, je vais lancer un vieux pavé dans la marre en disant qu'en Python c'est pas super utile, ou du moins que le langage permet déjà de le gérer sans se faire mal.

Piqure de rappel

Conversation un matin au travail:

@maxim
maxim / gh-dl-release
Last active February 22, 2025 16:16
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@toolness
toolness / adventures-in-python-core-dumping.md
Last active December 19, 2024 09:29
Adventures in Python Core Dumping

Adventures in Python Core Dumping

After watching Bryan Cantrill's presentation on [Running Aground: Debugging Docker in Production][aground] I got all excited (and strangely nostalgic) about the possibility of core-dumping server-side Python apps whenever they go awry. This would theoretically allow me to fully inspect the state of the program at the point it exploded, rather than relying solely on the information of a stack trace.

@MegaBedder
MegaBedder / browser.md
Last active October 21, 2024 20:09
Browser emulators & controllers

Headless Browser

A headless browser is a web browser without a graphical user interface.

Headless browsers provide automated control of a web page in an environment similar to popular web browsers, but are executed via a command-line interface or using network communication.

They are particularly useful for testing web pages as they are able to render and understand HTML the same way a browser would, including execution of JavaScript and AJAX which are usually not available when using other testing methods.

Headless browsers are used for:

  • Test automation in modern web applications.
@cbalint13
cbalint13 / yolo-quantization-demo.py
Last active August 12, 2024 11:36
TVM quantized YoloV3 demo
#!/usr/bin/python3
import nnvm
import nnvm.frontend.darknet
import tvm.relay.testing.yolo_detection
import tvm.relay.testing.darknet
import tvm.relay.transform as _transform
import matplotlib.pyplot as plt
import numpy as np
import tvm
@viridiano
viridiano / researchtoolbox.md
Last active March 21, 2024 12:20
Researchers Toolbox – Tools for grad students and researchers

AWESOME LINGUISTICS - A curated list of anything remotely related to linguistics, sorted in alphabetical order. Awesome

Getting Started with Coding for Humanities Scholars (Python)

NOTE: The Programming Historian contains many coding lessons gea

#!/usr/bin/python3
#import nnvm.frontend.darknet
import tvm.relay.testing.yolo_detection
import tvm.relay.testing.darknet
import tvm.relay.transform as _transform
import matplotlib.pyplot as plt
import numpy as np
import tvm
import onnx
@Dettorer
Dettorer / Énigme_1.md
Last active October 23, 2024 13:09
Énigmes Python pour les étudiants d'EPITA

Énigme 1

Sujet

Crédit : seirl

Expliquer le comportement suivant :

>>> def increment(l=[1, 2, 3]):
...     for i in range(len(l)):
... l[i] += 1
@jmoyers
jmoyers / 1. README.md
Last active June 23, 2023 17:00
Get up and running with a terminal, vim, and c++
  • color scheme
  • terminal
  • z proj, takes you to /some/deep/directory/project