🏠
Working from home
Pinned Loading
-
If you want to know when some task i...
If you want to know when some task is over you can simply call this to let you know 1# Usage
2# some task && notify "The task is over!"
34notify() {
5osascript -e "display notification \"$@\""
-
Run a Node.js script for x amount of...
Run a Node.js script for x amount of times, record each output to a file, and report the failure rate 1#!/bin/bash
23# Check if a number was provided as an argument
4if [ $# -eq 0 ]
5then
-
Example of decorator use in JavaScript
Example of decorator use in JavaScript 1function log(target, name, descriptor) {
2const original = descriptor.value;
3if (typeof original === 'function') {
4descriptor.value = function(...args) {
5console.log(`[${original.name}] Arguments: ${args}`);
-
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.