- Homebrew should be installed (Command line tools for Xcode are included).
- Install
nvmvia Homebrew
| function test(...[, , thirdArg, ...otherArgs]) { | |
| console.log(thirdArg, otherArgs); | |
| } | |
| test(1, 'two', 3, 4, 'five'); |
| export GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 GIT_SSH_COMMAND="ssh -vvv" && git clone <URL> |
| // 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"); |
| 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 |
| const fetch = require('node-fetch'), | |
| FormData = require('form-data'); | |
| // your gitea domain without trailing slash | |
| const GITEA_DOMAIN = 'https://subdomain.domain.xyz'; | |
| // you can find this variables when you visit your gitea installation | |
| // open dev-tools and look in the Cookies section | |
| const i_like_gitea = 'YOUR_I_LIKE_GITEA_STRING'; | |
| const gitea_awesome = 'YOUR_GITEA_AWESOME_STRING'; |
| btn.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" } | |
| ) |
nvm via Homebrew| // DB_NAME via: ChromeDev Tools -> Application Tab -> Indexed DB | |
| // should be something like: _pouch_bank_MD5_HASH | |
| const DB_NAME = "YOUR_DB_NAME"; | |
| indexedDB.open(DB_NAME, DB_VERSION = 5).onsuccess = function (evt) { | |
| const db = this.result; | |
| const transaction = db.transaction("by-sequence", 'readonly'); | |
| const objectStore = transaction.objectStore("by-sequence"); | |
| const index = objectStore.index("_doc_id_rev"); |
| { | |
| "env": { | |
| "browser": true, | |
| "commonjs": true, | |
| "es6": true, | |
| "node": true, | |
| "jest": true | |
| }, | |
| "parserOptions": { | |
| "ecmaVersion": 9 |