Skip to content

Instantly share code, notes, and snippets.

View adumont's full-sized avatar
😃

Alexandre Dumont adumont

😃
View GitHub Profile
{
"path_checkpoints": "/content/Fooocus/models/checkpoints",
"path_loras": "/content/Fooocus/models/loras",
"path_embeddings": "/content/Fooocus/models/embeddings",
"path_vae_approx": "/content/Fooocus/models/vae_approx",
"path_upscale_models": "/content/Fooocus/models/upscale_models",
"path_inpaint": "/content/Fooocus/models/inpaint",
"path_controlnet": "/content/Fooocus/models/controlnet",
"path_clip_vision": "/content/Fooocus/models/clip_vision",
"path_fooocus_expansion": "/content/Fooocus/models/prompt_expansion/fooocus_expansion",

Python - Surround with a function in VScode.md

You can create a code snippet for your function call by going to File > Preferences > User Snippets and selecting the language you're working with (in this case, Python). Then, select "New Global Snippets file" and enter a name for your snippet file.

{
	"myfunc": {
		"prefix": "Surround with...",
		"body": [
 "${1:function}(${TM_SELECTED_TEXT})"
@adumont
adumont / make.sh
Created October 8, 2022 18:15
building esp32forth via command line
# Arduino Installation directory
ARDUINO_DIR=~/opt/arduino-1.8.13
ESP32_DIR=~/.arduino15/packages/esp32
BUILD_DIR=/tmp/.build
CACHE_DIR=/tmp/.cache
SOURCE_DIR=~/esp32c3/esp32forth/ESP32forth
# Cleaning
[ -d "${BUILD_DIR}" ] && rm -rf ${BUILD_DIR}
[ -d "${CACHE_DIR}" ] && rm -rf ${CACHE_DIR}

Keybase proof

I hereby claim:

  • I am adumont on github.
  • I am adumont (https://keybase.io/adumont) on keybase.
  • I have a public key ASAl8VhQq9NmC4cM4MLt50NKjwtP25YFzoGY-unn3qQ_aQo

To claim this, I am signing this object:

@adumont
adumont / CA.fth
Last active May 9, 2022 11:21
Cellular Automaton in (my) FORTH
\ This is a FORTH program to draw Cellular Automaton
\ usage: RUN-CA ( RULE LINES -- )
\ Author: Alexandre Dumont
\ Runs in my own FORTH for 6502
\ https://github.com/adumont/hb6502/tree/main/forth
HEX
3F CONSTANT MXCOL
@adumont
adumont / TPLink-HS100-Taskers.xml
Created July 25, 2020 10:05
Tasker tasks for TP-Link HS100
@adumont
adumont / div3.rpl
Created May 3, 2020 09:22
Binary Division by 3 in RPL
<<
R->B 256 *
DUP DUP DUP DUP
4 /
SWAP 16 /
3 ROLL 64 /
4 ROLL 256 /
5 ROLL 1024 /
+ + + +
128 / DUP
@adumont
adumont / servicenow-mods-adumont.user.js
Last active April 20, 2020 07:28
ServiceNow Mods (adumont)
// ==UserScript==
// @name ServiceNow Mods (adumont)
// @namespace http://tampermonkey.net/
// @version 0.11.9
// @description ...
// @author ADUMONT
// @match https://acciona.service-now.com/*
// @grant none
// @updateURL https://gist.githubusercontent.com/adumont/0469d1edd6ef9696e97a33274960d480/raw/servicenow-mods-adumont.user.js
// @downloadURL https://gist.githubusercontent.com/adumont/0469d1edd6ef9696e97a33274960d480/raw/servicenow-mods-adumont.user.js
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.