Greenlet for Node worker_threads
Works with ESM and CommonJS.
import greenlet from 'greenlet-node';
const add = greenlet(async (a, b) => {
return a + b;
});
worker_threads
Works with ESM and CommonJS.
import greenlet from 'greenlet-node';
const add = greenlet(async (a, b) => {
return a + b;
});
This tool takes a secret in the JSON format in STDIN and outputs the same secret with the data
field replaced with a clear-text stringData
.
This allows to make patches to secrets from clear-text like the following:
kubectl get secret my-secret -ojson | kube-clear-secret | sed 's/my-old-value/my-new-value/g' | kubectl apply -f -
import { curry, apply } from 'ramda'; | |
/** | |
* Debounce | |
* | |
* @param {Boolean} immediate If true run `fn` at the start of the timeout | |
* @param timeMs {Number} Debounce timeout | |
* @param fn {Function} Function to debounce | |
* | |
* @return {Number} timeout |
GET https://api.example.com/player/1234567890 | |
{ | |
"collection": { | |
"version": "1.0", | |
"href": "https://api.example.com/player", | |
"items": [ | |
{ | |
"href": "https://api.example.com/player/1234567890", | |
"data": [ | |
{"name": "playerId", "value": "1234567890", "prompt": "Identifier"}, |
var Benchmark = require('benchmark'); | |
function complete() { | |
console.log(String(this)); | |
} | |
var objDeleteBenchmark = new Benchmark('Object#delete-property', { | |
setup: function() { var obj = {foo: 'bar'}; }, | |
fn: function() { delete obj.foo; } | |
}); |
tmux, like other great software, is deceptive. On the one hand, it's fairly easy to get set up and start using right away. On the other hand, it's difficult to take advantage of tmux's adanced power features without spending some quality alone time with the manual. But the problem with manuals is that they aren't geared toward beginners. They are geared toward helping seasoned developers and computer enthusiasts quickly obtain the
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |