Skip to content

Instantly share code, notes, and snippets.

View FyeCobain's full-sized avatar
💭

Michel Bracam FyeCobain

💭
View GitHub Profile
@FyeCobain
FyeCobain / keybindings.json
Last active June 15, 2024 00:06
VSC key bindings
[
{ "key": "ctrl+n", "command": "explorer.newFile" },
{ "key": "ctrl+shift+n", "command": "explorer.newFolder" },
{ "key": "alt+b", "command": "workbench.action.toggleActivityBarVisibility" },
{ "key": "alt+p", "command": "projectManager.listProjects" },
]
@FyeCobain
FyeCobain / typescript.json
Last active June 3, 2024 00:01
TypeScript User Snippets (semicolon)
{
"TO-DO": {
"prefix": "todo",
"body": [
"// TODO",
],
"description": "Writes '//TODO'"
},
"console.log()": {
@FyeCobain
FyeCobain / javascript.json
Last active June 3, 2024 00:01
JavaScript User Snippets (no semicolon)
{
"TO-DO": {
"prefix": "todo",
"body": [
"// TODO",
],
"description": "Writes '//TODO'"
},
"console.log()": {
@FyeCobain
FyeCobain / aliases.doskey
Last active June 5, 2024 21:52
Aliases for CMD commands
;= HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor
;= AutoRun (REG_SZ)
;= DOSKEY /MACROFILE="C:\doskey\aliases.doskey"
pn = pnpm $*
dlx = pnpm dlx $*
npm-u = npm uninstall $*
dk = docker $*
dkc = docker compose $*
art = php artisan $*
@FyeCobain
FyeCobain / centerRoot.pyw
Last active June 3, 2024 00:01
Python: Center Tkinter root
width, height, rise = 300, 250, 70
x, y = root.winfo_screenwidth()/2-width/2, root.winfo_screenheight()/2-height/2-rise
root.geometry('%dx%d+%d+%d' % (width, height, x, y))