Name: JavaScript REPL
Id: achil.vscode-javascript-repl
| divide( | |
| sum( /*points done, or in progress*/ | |
| prop("Tasks").map( | |
| toNumber( | |
| current.prop("Status").match("Done|Archived") ? current.prop("Estimates") : 0 | |
| ) | |
| ), | |
| prop("Tasks").map( | |
| toNumber( | |
| current.prop("Status").match("QA|Merge|Revisión|Pipeline") ? toNumber(current.prop("Estimates")) * 0.8 : 0 |
| { | |
| "folders": [ | |
| { | |
| "name": "adapters", | |
| "path": "open-plus-integrator-adapters" | |
| }, | |
| { | |
| "name": "integrator", | |
| "path": "open-plus-integrator-backend" | |
| }, |
All your notes, scripts, config files and snippets deserve version control and tagging!
gist is a simple bash script for gist management.
It is lightweight(~700LOC) and dependency-free! Helps you to boost coding workflow.
| #!/bin/bash | |
| # | |
| # This is free and unencumbered software released into the public domain. | |
| # | |
| # Requires bc, dc, openssl, xxd | |
| # sudo apt-get install bc dc openssl xxd | |
| # | |
| # by grondilu from https://bitcointalk.org/index.php?topic=10970.msg156708#msg156708 | |
| base58=({1..9} {A..H} {J..N} {P..Z} {a..k} {m..z}) |
| https://gist.github.com/System-Glitch/cb4e87bf1ae3fec9925725bb3ebe223a | |
| How to Bitcoin regtest | |
| Setup | |
| Download bitcoin core | |
| Unpack it wherever you want. | |
| Create a directory named data inside the unpacked folder. | |
| Create a directory named .bitcoin inside your home folder: mkdir ~/.bitcoin | |
| Copy bitcoin.conf into ~/.bitcoin | |
| Copy rpcauth into <unpacked_folder>/share/rpcauth |
| #Zshell | |
| #http://www.zsh.org/ | |
| sudo apt-get install -y zsh | |
| #post-install instructions | |
| apt-cache show fzf | |
| #debian info | |
| cat /usr/share/doc/fzf/README.Debian |
| pm.test("Successful POST request", function () { | |
| pm.expect(pm.response.code).to.be.oneOf([200, 201, 202]); | |
| }); | |
| pm.test("Response time is less than 10s", function () { | |
| pm.expect(pm.response.responseTime).to.be.below(10000); | |
| }); | |
| pm.test('Response has all properties', function () { | |
| let data = pm.response.json(); |
| /** | |
| * This code bellow is an Airtable implementation and should be placed there with the proper params for tables and fields | |
| */ | |
| let table = base.getTable("users"); | |
| let query = await table.selectRecordsAsync(); | |
| let recordsToUpdate = query.records.filter(record => { | |
| let notified = (record.getCellValue("notified") !== null && record.getCellValue("notified").name == "true") ? true : false; | |
| return !notified | |
| }) |
| //asynchronous | |
| ; (async () => { | |
| console.time('testAsynchronous') | |
| let start = new Date() | |
| let hrstart = process.hrtime() | |
| let testAsync = await Promise.all([ | |
| Promise.resolve(1), | |
| new Promise(async (resolve, reject) => { |