I hereby claim:
- I am ryanramage on github.
- I am ryanramage (https://keybase.io/ryanramage) on keybase.
- I have a public key whose fingerprint is E2ED 94ED EB71 0CB3 BABE 72AD 554A 370A 6ED8 09EE
To claim this, I am signing this object:
import z from 'zod' | |
export const name = 'myFunction' | |
export const param = z.object({ | |
a: z.string(), | |
b: z.number() | |
}).strict | |
export const returns = z.boolean() | |
export const MyFunctionSchema = z.function().args(param).returns(returns) | |
/** @typedef { z.infer<typeof MyFunctionSchema> } MyFunction */ |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
library['_'] = function Operator_ (orca, x, y, passive) { | |
Operator.call(this, orca, x, y, '_', passive) | |
this.name = 'niff' | |
this.info = 'Reads offset, if equal to char' | |
this.ports.x = { x: -2, y: 0 } | |
this.ports.y = { x: -1, y: 0 } | |
this.ports.comparison = { x: 1, y: 0 } | |
this.ports.output = { x: 0, y: 1, bang: true } |
const scale = (inMin, inMax, outMin, outMax) => (input) => outMin + ((outMax - outMin) * ((input - inMin) / (inMax - inMin))) |
I hereby claim:
To claim this, I am signing this object:
Tech things
channel.sendMessage(message, {
origin: 'internal',
sender: sender
#!/usr/bin/env node | |
const isPhone = require('is-phone') | |
const RtmClient = require('@slack/client').RtmClient | |
const MemoryDataStore = require('@slack/client').MemoryDataStore | |
const RTM_EVENTS = require('@slack/client').RTM_EVENTS | |
const token = process.env.SLACK_TOKEN || '' | |
const rtm = new RtmClient(token, { | |
logLevel: 'error', |
{ | |
"took": 9, | |
"timed_out": false, | |
"_shards": { | |
"total": 1, | |
"successful": 1, | |
"failed": 0 | |
}, | |
"hits": { | |
"total": 9063, |
{ | |
"name": "example", | |
"version": "2.1.4", | |
"description": "Example docker", | |
"scripts": { | |
"start": "node bin/cli", | |
"docker-build": "rm -rf node_modules && npm i --production && ./node_modules/docker-build-run-push/docker-build", | |
"docker-run": "./node_modules/docker-build-run-push/docker-run", | |
"docker-push": "rm -rf node_modules && npm i && make build && npm prune && ./node_modules/docker-build-run-push/docker-push" | |
}, |
FROM ryanramage/pm2-git-alpine | |
# Add source files & deps | |
ADD . /var/www/ui-widgets | |
WORKDIR /var/www/ui-widgets | |
# Define mountable directories. | |
VOLUME ["/var/log/ui-widgets"] |