View Brian Keto

"Make it up as I go" Keto program

From early Jan - start of April I stuck to a ketosis diet and increasing difficulty exercise program. Over that time I lost about 25lbs.



  • 1 Mozarella Cheese Stick
  • 1 tablespoon of organic chunky peanut butter
View supervisor.ex
defmodule MySupervisor do
def start
import Supervisor.Spec
children = [
worker(FooBar, [])
opts = [strategy: :one_for_one, name: MySupervisor]
Supervisor.start_link(children, opts)
View worker.ex
defmodule ElixirDaze.Foobar do
require Logger
def start_link do
{:ok, spawn(__MODULE__, :foo, [0])}
def foo(count) do
if count > 5 do
View output
◉ Testing settings in dotspacemacs/layers Show in File
**○ TEST: Each path in dotspacemacs-configuration-layer-path is a string
**○ TEST: Each path in dotspacemacs-configuration-layer-path exists in filesystem
**○ TEST: Each layer in dotspacemacs-configuration-layers can be found
****✸ PASS: auto-completion
****✸ PASS: emacs-lisp
****✸ PASS: git
****✸ PASS: markdown
****✸ PASS: elixir
****✸ PASS: erlang
View grouped-validations
import { presence, length, confirmation} from 'ember-validations/validators';
passwordValidations(context) {
return context
::presence('password', 'passwordConfirmation')
::length('password', { greaterThan: 8 })
errors: computed('name', 'email', 'password', 'passwordConfirmation', function() {
View gist:1514ec4958caec0a72cd
import { presence, length, confirmation, format} from 'ember-validations/validators';
errors: computed('name', 'email', 'password', 'passwordConfirmation', function() {
let user = get(this, 'model');
return user
::presence('name', 'email', 'password')
::length('password', { greaterThan: 8 })
::format('email', /@/)
View application.controller.js
import Ember from 'ember';
const {
} = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
View fugly.js
myFunc(context) {
View gist:aaa48aedf208a8f05496
1) test retrieve a weekly status that doesn't exist (HowWeDoin.Api.WeeklyStatusReplyTest)
** (FunctionClauseError) no function clause matching in Plug.Conn.resp/3
(plug) lib/plug/conn.ex:439: Plug.Conn.resp(%Plug.Conn{adapter: {Plug.Adapters.Test.Conn, :...}, assigns: %{layout: false}, before_send: [#Function<0.32851098/1 in JaSerializer.ContentTypeNegotiation.set_content_type/2>, #Function<1.847247/1 in>], body_params: %{}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "", method: "GET", owner: #PID<0.270.0>, params: %{"reply_id" => "123", "reply_token" => "1234567890"}, path_info: ["api", "sessions", "reply"], peer: {{127, 0, 0, 1}, 111317}, port: 80, private: %{HowWeDoin.Router => {[], %{}}, :phoenix_action => :create, :phoenix_controller => HowWeDoin.SessionController, :phoenix_endpoint => HowWeDoin.Endpoint, :phoenix_format => "json-api", :phoenix_layout => {HowWeDoin.L
View admins.exs
@mode User
@repo Repo
:admin1 from(:users).brian do
admin true
@repo OtherRepo
:admin2 do