Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jgrodziski on github.
  • I am jgrodziski (https://keybase.io/jgrodziski) on keybase.
  • I have a public key whose fingerprint is D629 2B73 5ADE 9129 D6BE BB5B 3513 46D6 EDFE 6C3B

To claim this, I am signing this object:

# -----------------------------------------------------------------------------
# FILE: jerem.zsh-theme
# DESCRIPTION: oh-my-zsh theme file.
# AUTHOR: Jérémie Grodziski (www.grodziski.com)
# VERSION: 0.1
# SCREENSHOT: http://www.grodziski.com/images/jerem.zsh-theme.png
# -----------------------------------------------------------------------------
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
#!/bin/bash
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo bash -c "echo JAVA_HOME="/usr/lib/jvm/java-8-oracle" >> /etc/environment"
java -version
#!/bin/bash
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo chsh -s /bin/zsh
curl https://gist.githubusercontent.com/jgrodziski/7405347/raw/f9bf15d5e2779417985d9137c3f5cb932b4858fb/jerem.zsh-theme -o ~/.oh-my-zsh/themes/jerem.zsh-theme
# then change these two lines in .zshrc
# ZSH_THEME="jerem"
# plugins=(git docker osx sublime mvn ssh-agent lein brew dircycle history jump z autojump zsh-syntax-highlighting)

Keybase proof

I hereby claim:

  • I am jgrodziski on github.
  • I am jgrodziski (https://keybase.io/jgrodziski) on keybase.
  • I have a public key whose fingerprint is 5A99 EE65 A0A4 7587 5EB1 EC89 C915 208B FDD0 637E

To claim this, I am signing this object:

#!/bin/bash
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo bash -c "echo JAVA_HOME="/usr/lib/jvm/java-8-oracle" >> /etc/environment"
java -version

From https://github.com/ESWAT/john-carmack-plan-archive/blob/master/by_day/johnc_plan_19981014.txt Layout - like bold - is my own.

It has been difficult to write .plan updates lately. Every time I start writing something, I realize that I'm not going to be able to cover it satisfactorily in the time I can spend on it. I have found that terse little comments either get misinterpreted, or I get deluged by email from people wanting me to expand upon it.

I wanted to do a .plan about my evolving thoughts on code quality and lessons learned through quake and quake 2, but in the interest of actually completing an update, I decided to focus on one change that was intended to just clean things up, but had a surprising number of positive side effects.

Since DOOM, our games have been defined with portability in mind. Porting to a new platform involves having a way to display output, and having the platform tell you about the various relevant inputs. **There are four principle inputs to a game: keystrokes, mouse moves

(ns promesa-retry
(:require
["util" :refer [format]]
[promesa.core :as p :refer [reject! resolve!] :refer-macros [alet await]]
[promesa.async-cljs :refer-macros [async]]
[cljs.test :as t :include-macros true]))
(defn backoff-duration [retries-count interval]
(+ (* interval retries-count) (rand-int interval)))
; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
@jgrodziski
jgrodziski / karabiner.json
Last active May 31, 2020 20:34
karabiner elements - shift press alone as parenthesis
//add these 2 rules in ~/.config/karabiner/karabiner.json under profiles/complex_modifications/rules
{
"description": "Change left_shift to left parens if alone.",
"manipulators": [
{
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": [
"any"