Skip to content

Instantly share code, notes, and snippets.

const exec = require('child_process').exec;
function mkDir(path) {
exec(`mkdir -p ${path}`,
function (error, stdout, stderr) {
if (error !== null) {
console.log('exec error: ' + error);
}
});
}
@flowsn4ke
flowsn4ke / snowflake.go
Created May 12, 2022 20:22 — forked from asyncins/snowflake.go
[snowflake-go]
package main
import (
"errors"
"fmt"
"sync"
"time"
)
const (
import { useEffect, useRef } from "react"
const x_offset = 50
const y_offset = 50
const initial_x_axis_value = 50
const initial_y_axis_seconds_value = 5
const initial_y_axis_minutes_value = 15
const initial_y_axis_hours_value = 25
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node