Skip to content

Instantly share code, notes, and snippets.

View gallettilance's full-sized avatar

Lance Galletti gallettilance

View GitHub Profile
@SamiSousa
SamiSousa / local-bridge-installer.md
Last active December 13, 2018 21:37
Launching bridge from 4.0 installer libvirt

Running console on installer via libvirt

The goal of this is to run a local version of console connected to a 4.0 OpenShift cluster created with the installer.

Setup installer on libvirt

Follow the steps here to set up the installer via libvirtd.

Some tips that you may find helpful:

@ashalkhakov
ashalkhakov / pitch.md
Last active April 2, 2018 05:35
ATS sales pitch

Time well spent when programming

Audience: C/C++ programmers.

Improving correctness means less maintenance and more fun!

  • everybody want more features
  • but more features usually mean more bugs and failures
  • stuck fixing bugs? not a good use of your time!
  • yet software devs spend most of their time hunting for and fixing bugs
@wojteklu
wojteklu / clean_code.md
Last active July 23, 2024 07:47
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@karpathy
karpathy / min-char-rnn.py
Last active July 22, 2024 04:44
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)