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 / 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 / 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 / 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 / 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 / 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";
* });
@justgage
justgage / Pom.re
Created March 26, 2019 18:17 — forked from mrmurphy/Pom.re
type pomWithError('data, 'err) = Js.Promise.t(Result.t('data, 'err));
type pom('data) = pomWithError('data, unit);
module JsPromise = {
let make = () => {
let resolver = ref(ignore);
let p =
Js.Promise.make((~resolve, ~reject as _) =>
resolver := (a => resolve(. a))
);
### Keybase proof
I hereby claim:
* I am justgage on github.
* I am justgage (https://keybase.io/justgage) on keybase.
* I have a public key ASAONOhDZTZ7R3cr8hN7MSqdX_R6hvPTP1YXScwUNJR28Qo
To claim this, I am signing this object:
@justgage
justgage / El.jsx
Created November 11, 2018 14:50
A way to add classnames easier
import React from "react";
import classNames from "classnames";
export const Div = props => {
const { children } = props;
console.log(props);
return <div className={classNames(props)}>{children}</div>;
};
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width">
<meta name="description" content="">
<meta name="author" content="">
<title>Manage Locations | Podium</title>
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" href="/css/app.css">