Skip to content

Instantly share code, notes, and snippets.

View graves's full-sized avatar

Thomas Graves graves

View GitHub Profile
$ webpack
Hash: 27b56b3b1af314c4f11e
Version: webpack 3.10.0
Time: 11633ms
Asset Size Chunks Chunk Names
../app/assets/stylesheets/core.bundle.css 347 kB 0 [emitted] [big] core
/assets/d36035ba2a89e7b0f79d019ae3cf1fe2.png 13.2 kB [emitted]
/assets/af7ae505a9eed503f8b8e6982036873e.woff2 77.2 kB [emitted]
/assets/fee66e712a8a08eef5805a46892932ad.woff 98 kB [emitted]
/assets/b06871f281fee6b241d60582ae9369b9.ttf 166 kB [emitted]
add_newline = true
[character]
success_symbol = "[λ](bold green)"
error_symbol = "[λ](bold red)"
# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
'("e1ef2d5b8091f4953fe17b4ca3dd143d476c106e221d92ded38614266cea3c8b" "7b3d184d2955990e4df1162aeff6bfb4e1c3e822368f0359e15e2974235d9fa8" "2cdc13ef8c76a22daa0f46370011f54e79bae00d5736340a5ddfe656a767fddf" "2f1518e906a8b60fac943d02ad415f1d8b3933a5a7f75e307e6e9a26ef5bf570" "71e5acf6053215f553036482f3340a5445aee364fb2e292c70d9175fb0cc8af7" "dde8c620311ea241c0b490af8e6f570fdd3b941d7bc209e55cd87884eb733b0e" "79278310dd6cacf2d2f491063c4ab8b129fee2a498e4c25912ddaa6c3c5b621e" "6c3b5f4391572c4176908bb30eddc1718344b8eaff50e162e36f271f6de015ca" "bf387180109d222aee6bb089db48ed38403a1e330c9ec69fe1f52460a8936b66" "c4bdbbd52c8e07112d1bfd00fee22bf0f25e727e95623ecb20c4fa098b74c1bd" "990e24b406787568c592db2b853aa65ecc2dcd08146c0d22293259d400174e37" "3c2f28c6ba2ad7
;; -*- no-byte-compile: t; -*-
;;; $DOOMDIR/packages.el
(package! treemacs-evil)
(package! treemacs-projectile)
(package! treemacs-magit)
(package! treemacs-icons-dired)
(package! doom-themes)
(package! gist)
(package! go-dlv)
;;; init.el -*- lexical-binding: t; -*-
;; This file controls what Doom modules are enabled and what order they load
;; in. Remember to run 'doom sync' after modifying it!
;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
;; documentation. There you'll find a "Module Index" link where you'll find
;; a comprehensive list of Doom's modules and what flags they support.
;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets.
(setq user-full-name "Thomas Graves"
user-mail-address "luvshrimps@gmail.com")
# Use zsh
set-option -g default-shell /bin/zsh
set -g mouse on
# Window title
set-option -g set-titles on
# Faster escape
set -s escape-time 0

Keybase proof

I hereby claim:

  • I am graves on github.
  • I am 0o0o0 (https://keybase.io/0o0o0) on keybase.
  • I have a public key ASDduiqkTzekxVCvGRfweY3Gx1tkw4Ue1Zb0mITElcujYgo

To claim this, I am signing this object:

@graves
graves / tds_ecto2.txt
Last active September 28, 2016 23:35
tds_test.exs test results at 0day Github release
❯❯❯ mix test test/tds_test.exs ✱ (git:ecto2)
test/test_helper.exs:46: warning: variable pid is unused
warning: using Ecto.Model is deprecated, please use Ecto.Schema instead
test/tds_test.exs:12: Tds.Ecto.TdsTest.Model (module)
warning: using Ecto.Model is deprecated, please use Ecto.Schema instead
test/tds_test.exs:30: Tds.Ecto.TdsTest.Model2 (module)
warning: using Ecto.Model is deprecated, please use Ecto.Schema instead
test/tds_test.exs:40: Tds.Ecto.TdsTest.Model3 (module)
Excluding tags: [:assigns_id_type, :array_type, :case_sensitive]
def insert_built_belongs_to_assoc(module, foreign_key, association_name, record) do
case Map.get(record, association_name) do
built_relation = %{__meta__: %{state: :built}} ->
relation = built_relation |> module.insert
relation_pkey_value = relation |> get_association_pkey_value
Map.put(record, foreign_key, relation_pkey_value)
_ -> Map.delete(record, foreign_key)
end
end