Skip to content

Instantly share code, notes, and snippets.

View faretek1's full-sized avatar
🧐
This place has an ancient name...

retek faretek1

🧐
This place has an ancient name...
View GitHub Profile
@GarboMuffin
GarboMuffin / games.md
Last active October 6, 2025 23:42
GMTK 2025 all games made using Scratch
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active October 20, 2025 23:14
Conventional Commits Cheatsheet
@dakoctba
dakoctba / gist:7676845
Last active August 27, 2025 08:40
How To Reset Your Github Fork

##How To Reset Your Github Fork

Let’s say I want to contribute to a project on github. The project repository is at wp-cli/wp-cli. First I fork it, and then clone the resulting repository, scribu/wp-cli:

git clone --recursive [email protected]:scribu/wp-cli.git
cd wp-cli

Now, I make some commits to master, push them to my fork and open a pull request. Piece of cake:

git commit -m "awesome new feature"

@simonw
simonw / gist:7000493
Created October 15, 2013 23:53
How to use custom Python JSON serializers and deserializers to automatically roundtrip complex types.
import json, datetime
class RoundTripEncoder(json.JSONEncoder):
DATE_FORMAT = "%Y-%m-%d"
TIME_FORMAT = "%H:%M:%S"
def default(self, obj):
if isinstance(obj, datetime.datetime):
return {
"_type": "datetime",
"value": obj.strftime("%s %s" % (