Skip to content

Instantly share code, notes, and snippets.

var h = Cycle.h;
var Rx = Cycle.Rx;
var TickerDataFlowNode = Cycle.createDataFlowNode(function (attributes) {
var TickerModel = Cycle.createModel(function (attributes, intent) {
return {
color$: attributes.get('color$')
.takeUntil(intent.get('stop$'))
.merge(intent.get('stop$').map(function () { return '#FF0000'; })),
x$: Rx.Observable.interval(50).takeUntil(intent.get('stop$')),

Keybase proof

I hereby claim:

  • I am dobrite on github.
  • I am dobrite (https://keybase.io/dobrite) on keybase.
  • I have a public key whose fingerprint is F2F3 FBDB 484E D7C5 2CBE 55A4 120E 4DDE CCEA C8DE

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am dobrite on github.
  • I am dobrite (https://keybase.io/dobrite) on keybase.
  • I have a public key whose fingerprint is 943B BBE6 B002 4817 DB2C 99A0 55B8 8EB0 FF7A 1F35

To claim this, I am signing this object:

# Twilio Doc (Ruby):
# https://www.twilio.com/docs/sms/compliance/toll-free/api-onboarding?code-sample=code-submit-a-toll-free-verification-request-using-existing-customer-profile&code-language=Ruby&code-sdk-version=6.x
integration.toll_free_verification_sid ||=
client
.messaging
.v1
.tollfree_verifications
.create(
# unique per subaccount. this will be a real subaccount SID.
customer_profile_sid: "BUabc123",
local M = {}
local function do_open(uri)
local cmd, err = vim.ui.open(uri)
local rv = cmd and cmd:wait(1000) or nil
if cmd and rv and rv.code ~= 0 then
err = ('vim.ui.open: command %s (%d): %s'):format((rv.code == 124 and 'timeout' or 'failed'), rv.code, vim.inspect(cmd.cmd))
end
if err then
local M = {}
function M.open_commit_url()
local cwd = vim.fn.getcwd()
local function is_sha()
local word = vim.fn.expand '<cword>'
return word:match '^[0-9a-fA-F]+$'
end