Skip to content

Instantly share code, notes, and snippets.

View rawsh's full-sized avatar

Robert Washbourne rawsh

View GitHub Profile
Definition of a norm\n• Assigns a positive number to each non-zero vector\n• Is only zero if the vector is an all-zero vector\n• Think of it as a function\nNorm properties\n• Homogeneity: ∥αx∥ = |α|∥x∥, for x ∈ RN and α ∈ R\n• Subadditivity: ∥x + y∥ ≤ ∥x∥ + ∥y∥, for x, y ∈ RN\n• Separability: x = 0 if and only if ∥x∥ = 0
@rawsh
rawsh / README.txt
Created October 10, 2021 10:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@rawsh
rawsh / README.txt
Created October 10, 2021 02:43
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@rawsh
rawsh / s.java
Created December 10, 2019 21:58
void reheapDown(int i) {
int left = i*2 +1;
int right = i*2 +2;
if (right < size) {
int largerChild;
if (heap[left] >= heap[right]) {
largerChild = left;
} else {
largerChild = right;
net_graph "1"
net_graphproportionalfont "0.5"
rate "786432"
hud_scaling "1"
cl_cmdrate "128"
cl_updaterate "128"
snd_menumusic_volume "0" // (disables menu music)
snd_mix_async "1" // (allows for shorter lookahead buffer (snd_mixahead), improves performance)
ffmpeg -re -i .mkv -c:v libx264 -preset veryfast -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -strict -2 -b:a 160k -ac 2 -ar 44100 -f flv rtmp://
ffmpeg -re -i .mkv -c copy -f flv rtmp://
ffmpeg -re -i /home/steam/trans/new/1.mkv -c:v libx264 -preset veryfast -maxrate 3000k \
-bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 \
-ar 44100 -f flv rtmp://
@rawsh
rawsh / nench.txt
Created January 7, 2019 18:13
Virmach ssd2g buffalo new york 10gbps
-------------------------------------------------
nench.sh v2018.04.14 -- https://git.io/nench.sh
benchmark timestamp: 2019-01-07 18:06:49 UTC
-------------------------------------------------
Processor: QEMU Virtual CPU version (cpu64-rhel6)
CPU cores: 2
Frequency: 2999.998 MHz
RAM: 1.9G
Swap: 1.0G
@rawsh
rawsh / nench.txt
Last active January 5, 2019 03:30
extra vm 7700k VPS ~ $3 virginia
https://openbenchmarking.org/result/1901043-KH-GAY61175664
https://openbenchmarking.org/result/1901048-KH-EXTRAVMTE51
compare: https://www.phoronix.com/scan.php?page=article&item=intel-7700k-linux&num=3
-------------------------------------------------
nench.sh v2018.04.14 -- https://git.io/nench.sh
benchmark timestamp: 2019-01-05 02:29:59 UTC
-------------------------------------------------

As you may already know, Wii U USB Helper has been discontinued, however, this shouldn't mean we're not allowed to use it anymore.

So I've made a launcher which makes it work again. Hooray!

Here's how to set it up:

Step 1 - Download the launcher.

Step 2 - Download a compatible version of Wii U USB Helper.