This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const slp = require('slp-parser-js'); | |
const SlippiGame = slp.default; | |
const path = require('path'); | |
const fs = require('fs'); | |
const _ = require('lodash'); | |
const cliProgress = require("cli-progress"); | |
const inputFolder = "./Slippi"; | |
const outputFolder = "./sorted"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
import xml.etree.ElementTree as ET | |
def parseXML(xmlFile): | |
tree = ET.parse(xmlFile) | |
root = tree.getroot() | |
# create empty dictionary where we will save data | |
data = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
This script demonstrates using a Slippi files as a fake live Slippi stream. | |
*/ | |
var tailstream = require('tailstream'); | |
const { SlippiRealtime, SlpStream } = require("@vinceau/slp-realtime"); | |
const path = require('path'); | |
const chokidar = require("chokidar"); | |
const fs = require('fs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: | |
# ./ipns_publish.sh keyname some_file.txt | |
LIFETIME="2160h" | |
# Check valid number of arguments | |
if [ "$#" -ne 2 ]; then | |
echo "Invalid arguments. Expected 2, got $#" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const _ = require('lodash'); | |
const path = require('path'); | |
const { default: SlippiGame } = require('slp-parser-js'); // npm install slp-parser-js | |
const basePath = path.join(__dirname, 'slp/'); // this var is "<directory your script is in>/slp" | |
const dolphin = { | |
"mode": "queue", | |
"replay": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $EUID != 0 ]; then | |
sudo "$0" "$@" | |
exit $? | |
fi | |
date 0102030405 | |
open /Applications/Sketch.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const DisplayFormikState = (props: any) => | |
<div style={{ margin: "1rem 0" }}> | |
<h3 style={{ fontFamily: "monospace" }} /> | |
<pre | |
style={{ | |
background: "#f6f8fa", | |
fontSize: ".65rem", | |
padding: ".5rem", | |
}} | |
> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Build a concurrent sorting algorithm in Go using channels | |
Sorting algorithms are well understood, and sequential implementations are simple to build. For each of your favourite sorting algorithms, build concurrent versions that utilize channels for communicating between Goroutines. Experiment with a pipelining approach, where the sorting is split into stages and each stage is handled by a Goroutine, and fork/join approach, where data to be sorted is split into smaller subsets and a Goroutine is created for each subset. | |
*/ | |
package main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Modified Numeric Keypad", | |
"rules": [ | |
{ | |
"description": "Modified Numeric Keypad Mode [Tab as trigger key]", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "tab" |
NewerOlder