- build-essential
- libxml2
- libxml2-dev (for nokogiri)
- libreadline6
# Original | |
defmodule Service.WebhookHandler do | |
def register_webhook(name) do | |
case Registry.register(webhook_id(name), __MODULE__) do | |
{:ok, _pid} -> :ok | |
error -> error | |
end | |
end | |
env: | |
browser: true | |
es6: true | |
extends: 'eslint:recommended' | |
parserOptions: | |
sourceType: module | |
rules: | |
indent: | |
- error | |
- 4 |
@import "globals"; | |
custom-element { | |
--custom-var: $primaryColour; | |
} |
require "yaks" | |
Book = Struct.new(:title, :author) | |
book = Book.new("Leviathan Wakes", "James A Corey") | |
class BookMapper < Yaks::Mapper | |
type "book" | |
attributes :title |
require "yaks" | |
Book = Struct.new(:title, :author) | |
book = Book.new("Leviathan Wakes", "James A Corey") | |
class BookMapper < Yaks::Mapper | |
type :book | |
attributes :title |
25/08/2014 15:41:10.000 kernel[0]: exec of /Users/andrew/Library/Containers/com.todoist.mac.Todoist/Data/Library/Application Support/Todoist/.Sparkle/Autoupdate.app/Contents/MacOS/Autoupdate denied since it was quarantined by Todoist and created without user consent, qtn-flags was 0x00000006 | |
25/08/2014 15:41:10.659 Todoist[83762]: Couldn't posix_spawn: error 1 | |
25/08/2014 15:41:10.669 Todoist[83762]: ( | |
0 CoreFoundation 0x00007fff918fb25c __exceptionPreprocess + 172 | |
1 libobjc.A.dylib 0x00007fff937c2e75 objc_exception_throw + 43 | |
2 CoreFoundation 0x00007fff918fb10c +[NSException raise:format:] + 204 | |
3 Foundation 0x00007fff9482efb4 -[NSConcreteTask launchWithDictionary:] + 3167 | |
4 Foundation 0x00007fff9482dd58 +[NSTask launchedTaskWithLaunchPath:arguments:] + 200 | |
5 Sparkle 0x00000001089d9c6e -[SUBasicUpdateDriver installWithToolAndRelaunch:displayingUserInterf |
class ApplicationController < ActionController::Base | |
# ... | |
concerning :Presenters do | |
included do | |
helper_method :present | |
end | |
def present(record_or_array, klass) | |
if record_or_array.respond_to?(:map) |
class ApplicationController < ActionController::Base | |
# Creates an accessor which is exposed to the view | |
def self.view_accessor(*names) | |
attr_accessor *names | |
helper_method *names | |
end | |
end |