Skip to content

Instantly share code, notes, and snippets.

View justgage's full-sized avatar

Gage Peterson justgage

View GitHub Profile
@justgage
justgage / all_hallows_eve.vim
Created February 28, 2024 15:00
All Hallows Eve Theme for Vim
" Name: All Hallow's Eve Theme
" Author: David Heinemeier Hansson
" Converter: Gage Karl Peterson
" Background and foreground
hi Normal guibg=#434242 guifg=#FFFFFF
hi Visual guibg=#73597EE0
hi Cursor guibg=#FFFFFF guifg=#FFFFFF
hi LineNr guifg=#FFFFFF guibg=#000000
hi CursorLineNr guifg=#FFFFFF guibg=#333300
@justgage
justgage / README.md
Last active January 30, 2023 20:50 — forked from jasonm23/README.md
Elixir mix oh-my-zsh completion plugin

Elixir Mix Oh-My-Zsh plugin

This will give you completion when you type mix <tab> inside your project. This was forked to make it work with current versions of Elixir as of Sep 10th 2020.

  • Download the zip file.

  • Copy the folder (and rename it to something sensible) to ~/.oh-my-zsh/custom/plugins/ and add _elixir_mix to your .zshrc plugins list:

plugins=(
@justgage
justgage / TakeingForGranted.md
Created October 18, 2016 04:32
Summary of "O How Great the Plan of Our God! By President Dieter F. Uchtdorf"

Do We Take Spiritual Truths for Granted?

From this talk by President Dieter F. Uchtdorf

Life-changing truths are before our eyes and at our fingertips, but sometimes we sleepwalk on the path of discipleship ... We tread a path covered with diamonds, but we can scarcely distinguish them from ordinary pebbles.

In what ways do we take spiritual things for granted?

  • Scriptures (don't read them as much as we should considering what they are)
  • Prayers (forget who we're talking to, too much a rush)
@justgage
justgage / fn.ex
Last active June 16, 2022 07:42
This will automatically add new functions to a facade file
defmodule Mix.Tasks.Gen.Fn do
use Mix.Task
require Logger
@moduledoc """
A code generator to create a function on a facade. This will also create the facade if it doesn't exist.
You use it like this:
mix gen.fn "Widget.create(arg1, arg2 \\\\ 0)"
@justgage
justgage / Wallet.java
Created May 3, 2014 01:50
A simple program to keep track of money in various wallets.
This is a simple program that will keep track of how much money you have in various "Wallets".
-----------------------------------------
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.PrintWriter;
@justgage
justgage / simplemde.scss
Created May 21, 2021 16:29
Simple MDE w/ Dark Mode
/* SimpleMDE Theme Dark Mode https://github.com/justgage/simplemde-theme-base */
@charset "UTF-8";
:root {
--color-background: white;
--color-text: black;
--color-text-muted: rgb(170, 170, 170);
--color-border: #ddd;
--color-background: white;
--color-background-faded: darken(white, 5%);
@justgage
justgage / byui_android_setup.md
Last active February 24, 2021 05:18
How to set up BYU-I Email on an Android phone.

#How to set up BYU-I Email on an Android phone.

Step1: Enter your "Email" app on you phone

Step2: take your username from byui and tack a @byui.edu on the end for your username.

Step3: Enter your normal password and hit "manual setup"

Step4: Choose IMAP

@justgage
justgage / machine.js
Last active January 31, 2020 06:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@justgage
justgage / HowToElm.md
Last active January 17, 2020 23:49
How To Elm

How to Elm

This is a basic guide on how to learn Elm rather than actually teach you. I'm going to mostly link to resources that I feel are valuable and try to "teach you how to fish".

The main purpose is to accelerate your learning and save you a lot of googling and weeding through bad explinations.

Essential links

@justgage
justgage / BEM.re
Created April 21, 2019 03:04
BEM.re
let whitespaceRegex = Js.Re.fromString("\\s+");
/**
* This is a little helper to make sure that classNames are BEM style
*
* Example:
* module B =
* BEM.Block({
* let block = "Legal";
* });