Skip to content

Instantly share code, notes, and snippets.

View marcmuon's full-sized avatar

Marc Kelechava marcmuon

View GitHub Profile
@JimFawkes
JimFawkes / exceptions_and_logging.py
Last active January 28, 2019 21:47
Example Code used in my Metis Investigation Presentation
"""Better Exceptions and Loguru
Metis Investigation by Moritz Eilfort
January 28th, 2019
Example code for presentation purposes.
Code: https://gist.github.com/JimFawkes/76a649c7bdf8bfbbc2b2051c98995789
Summary: https://gist.github.com/JimFawkes/e5f767288e6d8e2df8fa53b5862db9d6
"""
@gokulkrishh
gokulkrishh / media-query.css
Last active September 12, 2025 14:20
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@karpathy
karpathy / min-char-rnn.py
Last active October 23, 2025 09:39
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@PurpleBooth
PurpleBooth / README-Template.md
Last active October 23, 2025 06:26
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@sgnl
sgnl / add-upstream.md
Last active October 3, 2023 22:51
So you've forked a Repository and you want updates...

#tl;dr

setting up a branch to track a repo

pre: assuming you have forked a repo and cloned your fork to your computer

  1. git remote add [maintainer's name] [paste URL here]
  2. git fetch --all
  3. git branch --track [maintainer's name]_[branch] [remote name from step 1]/[branch you want to track] At this point you may watch to checkout to your newly create branch and issue a git pull command.