Skip to content

Instantly share code, notes, and snippets.

View connerturmon's full-sized avatar
😊
Working on a Risk of Rain 2 save editor web application!

Conner connerturmon

😊
Working on a Risk of Rain 2 save editor web application!
  • VDO
  • Montrose, CO
View GitHub Profile
import React, { useEffect, useState } from 'react';
function Counter(props) {
const [file, setFile] = useState(null);
const [xml, setXml] = useState(null);
// Loads the provided file and parses the XML content.
useEffect(() => {
if (file !== null) {
@connerturmon
connerturmon / ytaud.sh
Created April 3, 2018 23:11
Script to rip audio from YouTube URLs via youtube-dl
#!/bin/bash
### ARGUMENTS:
# $1 : URL to YouTube Video
# $2 : (Optional) Folder in $HOME to place .mp3 file
## ytaud - This script downloads high quality .mp3 audio from a YouTube URL ($1) and places it in the user's ~/Music/ folder or $HOME/$2 folder.
## The quality by default is maximum (320kbps?) and I will likely add support for changing this later.
# Color for output