Skip to content

Instantly share code, notes, and snippets.

@hugoalvarado
hugoalvarado / .gitignore
Last active February 8, 2022 04:51
gitignore based on djangowaves.com/tips-tricks/gitignore-for-a-django-project/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python

Git cheat sheet

Common commands

General

Create repository:

git init
@hugoalvarado
hugoalvarado / steam-info.txt
Created February 18, 2021 04:55
Steam info Macbookpro16.1
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
CPU Family: 0x6
@hugoalvarado
hugoalvarado / git-command-dump.md
Created November 28, 2018 03:59
Git Commands

Handy Git Command Dump

Find common parent

git merge-base velocity_msync master

import gym
import numpy as np
import time
def run_test_env(env_name, perform_action = True, exit_on_done = True):
env = gym.make(env_name)