I hereby claim:
- I am rmosolgo on github.
- I am rmosolgo (https://keybase.io/rmosolgo) on keybase.
- I have a public key whose fingerprint is 77C7 1234 2A6A C5E7 CF1F 2F1E 949B E1E2 5F48 E7AE
To claim this, I am signing this object:
| # This object returns the _new_ state and any error message during the transition. | |
| # So in the response, you could check for the presence of an error message. | |
| # (In the case of an error, presumably the state would not change.) | |
| StateMachineTransitionType = GraphQL::ObjectType.define do | |
| name "StateMachineTransition" | |
| field :error_message, types.String | |
| field :state, types.String # Could also define StateMachineStateEnum | |
| end | |
| MutationType = GraphQL::ObjectType.define do |
I hereby claim:
To claim this, I am signing this object:
| require "benchmark/ips" | |
| # Let's say you want pure functions in Ruby. | |
| # Which form of "packaging" is the fastest? | |
| pure_func_proc = -> (a, b) { a + b } | |
| pure_func_lambda = lambda { |a, b| a + b } | |
| def pure_func_global(a, b) | |
| a + b |
| printerName:DYMO LabelWriter 450 Turbo | |
| printParamsXml:<LabelWriterPrintParams><Copies>1</Copies><TwinTurboRoll>Auto</TwinTurboRoll></LabelWriterPrintParams> | |
| labelXml:<?xml version="1.0" encoding="utf-8"?> | |
| <DieCutLabel Version="8.0" Units="twips"> | |
| <PaperOrientation>Landscape</PaperOrientation> | |
| <Id>LargeShipping</Id> | |
| <PaperName>30256 Shipping</PaperName> | |
| <DrawCommands> | |
| <RoundRectangle X="0" Y="0" Width="3331" Height="5715" Rx="270" Ry="270"/> | |
| </DrawCommands> |
| # An untested idea to use objects' `update_at` properties to determine | |
| # whether the query response has changed since a given time. | |
| # | |
| # Requires some setup, you must pass the `updated_at` from the incoming ETag into the query: | |
| # | |
| # ``` | |
| # # The `context` object itself is read-only, so use a nested hash, which may be modified during query execution: | |
| # etags = {updated_at: last_etag} | |
| # | |
| # result = MySchema.execute(query_string, context: {etags: etags}) |
| _____ ___ __ __ ____ _____ _____ __ __ | |
| ||_// ||=|| (( (( ||=) (( )) (( )) ||<< | |
| || || || \_)) \_)) ||_)) \\_// \\_// || \\ | |
| _____ _____ | |
| |- == | .-,( ),-. |-----| | |
| |Web | .-( )-. | iOS | | |
| | App| ( Apple Server ) | | | |
| | | '-( ).-' |-----| | |
| '-----' '-.( ).-' `--°--' |
| // - Request saves on a key-by-key basis | |
| // | |
| // - After the operation, record whether keys are now persisted | |
| // or whether they errored out | |
| // | |
| // - Store keys in a workflow: | |
| // _requestedKeys -> requested, but not in flight or successfully saved | |
| // _pendingKeys -> keys whose save is in flight now | |
| // _successKeys -> keys whose save was successful | |
| // _errorKeys -> keys whose save errored |
| var frame; | |
| var frameSrc = "/sleep" // some local endpoint that just `sleep 2` or something | |
| function addFrame() { | |
| frame = document.createElement("iframe") | |
| frame.style.display = "none" | |
| document.head.appendChild(frame) | |
| frame.src = frameSrc | |
| } |
| class Funzies.ComponentsNewView extends Batman.View | |
| constructor: -> | |
| super | |
| @set 'pendingComponents', new Batman.Set | |
| @set 'defaultKind', null | |
| @set 'newFiles', null | |
| @observe 'newFiles', (nv, ov) -> | |
| if nv?.length | |
| @_componentsFromFiles(nv) |
| class MyApp.TasksController extends MyApp.ApplicationController | |
| new: -> | |
| task = new MyApp.Task | |
| task.get('task_entries').build(item: new MyApp.Item) | |
| @set('task', task) | |
| # /tasks/new will be rendered implicitly. MyApp.TasksNewView will be used to render that template, if it is defined. | |