Skip to content

Instantly share code, notes, and snippets.


Gage justgage

View GitHub Profile
justgage /
Last active Sep 28, 2020 — forked from jasonm23/
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:

View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
justgage / fn.ex
Last active Feb 8, 2020
This will automatically add new functions to a facade file
View fn.ex
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)"
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";
* });
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))
View gist:f7b3e16720a4dda34cc4fdb3bca0bfe9
### Keybase proof
I hereby claim:
* I am justgage on github.
* I am justgage ( on keybase.
* I have a public key ASAONOhDZTZ7R3cr8hN7MSqdX_R6hvPTP1YXScwUNJR28Qo
To claim this, I am signing this object:
justgage / El.jsx
Created Nov 11, 2018
A way to add classnames easier
View El.jsx
import React from "react";
import classNames from "classnames";
export const Div = props => {
const { children } = props;
return <div className={classNames(props)}>{children}</div>;
View asdf.html
<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">
justgage /
Created May 12, 2017
React stuff we miss out on

15.5.4 (April 11, 2017)

React Addons

Critical Bugfix: Update the version of prop-types to fix critical bug. (@gaearon in 545c87f) Fix react-addons-create-fragment package to include loose-envify transform for Browserify users. (@mridgway in #9642) React Test Renderer

Fix compatibility with Enzyme by exposing batchedUpdates on shallow renderer. (@gaearon in #9382)