- Homebrew should be installed (Command line tools for Xcode are included).
- Install
nvm
via Homebrew
nvm
via Homebrewbtn.addEventListener("send-btn",onSend); | |
send = CAF(send); | |
var prevSend = Promise.resolve(); | |
function onSend(evt) { | |
prevSend.finally(function f(){ | |
prevSend = send( | |
CAF.timeout(1000,"send took too long."), | |
{ some: "data" } | |
) |
import base64 | |
from odoo import models, fields, api | |
class SomeModel(models.Model): | |
_name = 'some.model' | |
field1 = fields.Char(string="Field 1") | |
field2 = fields.Boolean(string="Field 2") | |
@api.multi |
// this code will turn an OUT cursor from the node-oracledb library | |
// and turn the data into an array objects that has the structure of | |
// [{NAME: value, NAME_2: value, NAME_N: value}, ...] | |
// where the NAME is the column name returned through the cursor | |
// | |
// Distributed freely under MIT License <http://mutedsolutions.mit-license.org> | |
// Copyright 2016 Muted Solutions, LLC. All Rights Reserved. | |
const EventEmitter = require("events"); | |
const util = require("util"); |