git config --global alias.chunk 'add -p'
Usage: starts an interactive chunk-by-chunk staging session, similar to git rebase -i
. Handy for picking apart a full index to make a nicer narrative of small commits.
{ | |
"yieldstar_best": [ | |
{ | |
"Partner": "realpage", | |
"Data": { | |
"PhysicalProperty": { | |
"Property": { | |
"Building": { "@IDValue": "1", "Name": "N/A" }, | |
"Floorplan": { | |
"Identification": { "@IDValue": "1" }, |
defmodule Ecto.Adapter.Custom do | |
#### | |
# Ecto.Adapter | |
## | |
# TYPES | |
# @type t :: Ecto.Adapter.t | |
@type t :: Ecto.Adapter.Custom |
defmodule Matcha do | |
@moduledoc """ | |
Documentation for Matcha. | |
""" | |
@doc """ | |
Handles the sigil `~m`. | |
It returns a match pattern or specification. |
defmodule Mnemonix.Stores.Meta.PassThrough do | |
@moduledoc """ | |
A `Mnemonix.Store` that caches reads from a backend store into a frontend one. | |
Writes and removals are applied to both stores. | |
Works best with quicker or closer stores in the frontend, like in-memory ones; | |
with a store-wide ttl to keep their footprint light. | |
iex> {:ok, backend} = Mnemonix.Stores.Redix.start_link() |
// Colors selected to match the Twilight theme | |
@git-added-color: #8F9D6A; | |
@git-modified-color: #7587A6; | |
@git-removed-color: #CF6A4C; | |
// Blur inactive windows | |
body.is-blurred .workspace { | |
-webkit-filter: blur(0.13em) hue-rotate(19deg); | |
} |
Mnemonix is a key/value adapter library that employs a repository pattern. I wanted to support a few things with it:
# Elixir v1.0.2 | |
defmodule Prime do | |
def stream do | |
Stream.unfold( [], fn primes -> | |
next = next_prime(primes) | |
{ next, [next | primes] } | |
end ) | |
end |
defmodule Guard do | |
@guardables ~W[ | |
== != === !== > >= < <= | |
and or not | |
+ - * / | |
<> | |
in | |
is_atom is_binary is_bitstring is_boolean | |
is_float is_function is_integer is_list |
defmodule MyApp.Mixfile do | |
use Mix.Project | |
def project do | |
[app: :my_app, | |
version: "0.0.1", | |
elixir: "~> 1.2", | |
build_embedded: Mix.env == :prod, | |
start_permanent: Mix.env == :prod, | |
deps: deps] |