Skip to content

Instantly share code, notes, and snippets.

View AresDev's full-sized avatar

Armando Restrepo AresDev

View GitHub Profile
@AresDev
AresDev / machine.js
Last active September 9, 2021 22:16
Generated by XState Viz: https://xstate.js.org/viz
const setValue = (ctx, e) => {
ctx.reference.receivingLocation = e.data;
};
const checkValue = (ctx, e) => {
return ctx.reference.receivingLocation !== null
}
@AresDev
AresDev / machine.js
Last active September 9, 2021 22:10
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@AresDev
AresDev / machine.js
Created September 3, 2021 15:48
Generated by XState Viz: https://xstate.js.org/viz
const searchValid = (context, event) => {
return context.canSearch && event.query && event.query.length > 0;
}
const searchMachine = Machine(
{
id: 'search',
initial: 'idle',
context: {
canSearch: true
@AresDev
AresDev / machine.js
Created September 3, 2021 13:31
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@AresDev
AresDev / machine.js
Created July 29, 2021 20:39
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@AresDev
AresDev / machine.js
Last active July 29, 2021 20:35
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@AresDev
AresDev / Log
Created November 4, 2016 13:21
Nativescript log with __enableVerboseLogging()
11-04 07:56:23.906 10276 10276 D TNS.Java: Platform.CallJSMethod: calling js method onClick with javaObjectID 127 type=com.tns.gen.android.view.View_OnClickListener
11-04 07:56:23.907 10276 10276 D TNS.Native: CallJSMethodNative called javaObjectID=127
11-04 07:56:23.907 10276 10276 D TNS.Native: CallJSMethodNative called jsObject=392669705
11-04 07:56:23.909 10276 10276 D TNS.Native: ObjectManager::GetJSInstanceInfo: called
11-04 07:56:23.909 10276 10276 D TNS.Native: ObjectManager::GetJSInstanceInfo: called
11-04 07:56:23.909 10276 10276 D TNS.Native: ObjectManager::GetJSInstanceInfo: called
11-04 07:56:23.911 10276 10276 D TNS.Native: ObjectManager::GetJSInstanceInfo: called
11-04 07:56:23.911 10276 10276 D TNS.Native: ObjectManager::GetJSInstanceInfo: called
11-04 07:56:23.944 10276 10276 D TNS.Java: Platform.CallJSMethod: calling js method onActivityPaused with javaObjectID 1 type=com.tns.gen.android.app.Application_ActivityLifecycleCallbacks
11-04 07:56:23.944 10276 10276 D TNS.Native: CallJSMethodNativ