Skip to content
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 })
::confirmation('password');
})
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 })
::confirmation('password')
::format('email', /@/)
View application.controller.js
import Ember from 'ember';
const {
get,
computed
} = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
View fugly.js
myFunc(context) {
fun3(fun2(fun1(context)));
}
View gist:aaa48aedf208a8f05496
1) test retrieve a weekly status that doesn't exist (HowWeDoin.Api.WeeklyStatusReplyTest)
test/api/weekly_status_reply_test.exs:29
** (FunctionClauseError) no function clause matching in Plug.Conn.resp/3
stacktrace:
(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 Plug.Logger.call/2>], body_params: %{}, cookies: %Plug.Conn.Unfetched{aspect: :cookies}, halted: false, host: "www.example.com", 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
end
@repo OtherRepo
:admin2 do
View example_code.ex
defmodule MyAuthenticator do
def auth(repo, model, id, password) do
user =
model
|> where(id: ^id)
|> preload([:profile])
|> repo.one!()
end
end
View food.md

Breakast

  • 1 - lg tblsp of peanut butter
  • 1 - mozzarella stick
  • 2 - egg, hard boiled
  • 2 - tsp of psyllium husk powder (fiber supplement)

Lunch (Weekday/Work)

  • 1 - 1/5 of sliced lemon pepper chicken

Lunch (Weekend/@Home)

View my_module.ex
defmodule MyModule do
defmacro __using__(_) do
quote do
@before_compile MyModule
end
end
defmacro __before_compile__(_) do
quote do
setup do
Something went wrong with that request. Please try again.