This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "yaks" | |
| Book = Struct.new(:title, :author) | |
| book = Book.new("Leviathan Wakes", "James A Corey") | |
| class BookMapper < Yaks::Mapper | |
| type :book | |
| attributes :title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "yaks" | |
| Book = Struct.new(:title, :author) | |
| book = Book.new("Leviathan Wakes", "James A Corey") | |
| class BookMapper < Yaks::Mapper | |
| type "book" | |
| attributes :title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import "globals"; | |
| custom-element { | |
| --custom-var: $primaryColour; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| env: | |
| browser: true | |
| es6: true | |
| extends: 'eslint:recommended' | |
| parserOptions: | |
| sourceType: module | |
| rules: | |
| indent: | |
| - error | |
| - 4 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 | |
OlderNewer