Skip to content

Instantly share code, notes, and snippets.

View Ed1123's full-sized avatar
🍉
learning... forever

Ed1123

🍉
learning... forever
View GitHub Profile
@Ed1123
Ed1123 / Random_number_game.py
Created November 12, 2018 00:52
My first Python game... I hope I'll learn plenty more. :'D
# This game consist in guessing a random
# number in less that determinate number
# of attemps.
import random
import time
def need_a_number(user_input):
while not user_input.isnumeric():
@ascendbruce
ascendbruce / README.md
Last active June 12, 2024 18:39
Use macOS-style shortcuts in Windows

Use macOS-style shortcuts in Windows / keyboard mappings using a Mac keyboard on Windows

ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows

Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

How does it work

@bgromov
bgromov / git-reset-author.sh
Created June 23, 2016 17:50
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD
@canton7
canton7 / 0main.md
Last active November 7, 2023 08:16
Local versions of tracked config files

How to have local versions of tracked config files in git

This is a fairly common question, and there isn't a One True Answer.

These are the most common techniques:

If you can modify your application