See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat
Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.
# Luke's config for the Zoomer Shell | |
# Enable colors and change prompt: | |
autoload -U colors && colors | |
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " | |
# History in cache directory: | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
HISTFILE=~/.cache/zsh/history |
This is a translation of grugbrain.dev into clear English. All props to the original author.
This is a collection of thoughts on software development, originally written by an pseudonymous author styling themselves the "grug brain developer," but then translated into clear English by Raph Levien.
I am not an extremely smart developer, but I have many years of experience and have learned some things, although still don't know everything.
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""[application description here]""" | |
# Prevent Python 2.x PyLint from complaining if run on this | |
from __future__ import (absolute_import, division, print_function, | |
with_statement, unicode_literals) | |
__author__ = "Stephan Sokolow (deitarion/SSokolow)" | |
__appname__ = "[application name here]" |
# Source: https://gist.github.com/84324e2d6eb1e62e3569846a741cedea | |
#################### | |
# Create a Cluster # | |
#################### | |
minikube start | |
############################# | |
# Deploy Ingress Controller # |
from __future__ import print_function | |
from math import sin, cos, radians | |
import timeit | |
''' | |
A simple Python benchmark. | |
Results on an overclocked AMD FX-8150 Eight-Core CPU @ 3.0 GHz, and | |
an Intel Core i5-2410M CPU @ 2.30GHz. |
def unicodetoascii(text): | |
TEXT = (text. | |
replace('\\xe2\\x80\\x99', "'"). | |
replace('\\xc3\\xa9', 'e'). | |
replace('\\xe2\\x80\\x90', '-'). | |
replace('\\xe2\\x80\\x91', '-'). | |
replace('\\xe2\\x80\\x92', '-'). | |
replace('\\xe2\\x80\\x93', '-'). | |
replace('\\xe2\\x80\\x94', '-'). |