Skip to content

Instantly share code, notes, and snippets.

@reccanti
reccanti / init.vim
Created April 28, 2021 16:29
Configuration for Neovim!
"This setup requires both 'Neovim' and 'vim-plug' to be
"installed for it to work. Read the docs to figure out how
"to do that! I'm not going to include links in case they
"get stale. Once you've done that, source this file and run
":PlugInstall to get everything working!
"
"~reccanti 4/27/2021
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
@reccanti
reccanti / input.scss
Created April 15, 2021 21:11
Generated by SassMeister.com.
.foo {
&#{&}#{&}:focus {
color: black;
}
}
@reccanti
reccanti / command.sh
Last active February 24, 2021 23:06
The different JSON results and their diffs. Ideally, we'd like to get to an empty diff!
diff jsonBin.json scraper.json > result.diff
@reccanti
reccanti / log
Created November 28, 2020 20:50
OBS 26.0.2 Crash Log
Process: obs [4998]
Path: /Applications/OBS.app/Contents/MacOS/obs
Identifier: com.obsproject.obs-studio
Version: 26.0.2 (26.0.2)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: obs [4998]
User ID: 501
Date/Time: 2020-11-28 15:35:34.570 -0500
@reccanti
reccanti / notes.md
Last active May 1, 2022 17:05
Notes – Kingdom Hearts II Final Mix – Beginner – Any%

reccanti's Kingdom Hearts II Final Mix Speedrunning Notes

Howdy folks! If you're not me (reccanti), then welcome to my speedrunning notes! For the most part, I've been following along with this guide InsertLogic (give it a watch!). Most things will be related to what he said, though I'll bring up places where I deviate from that or replace his strategy with something a little easier:

InsertLogic's Guide

Walkthrough

Roxas

@reccanti
reccanti / mov-to-gif.sh
Created April 23, 2020 17:49
A script I use to convert .mov files generated by the MacOS cmd+shift+5 Screen Record tool into gifs. Based on this article from the Giphy Engineering Blog: https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/
ffmpeg -i BackToTopDemo.mov -filter_complex "[0:v] fps=30,scale=720:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" BackToTopDemo.gif
@reccanti
reccanti / test.js
Created February 17, 2020 06:13
A small, copy-pastable, unit testing framework for Node JS.
// Lightweight testing framework
// Runs through a nested JS Object until it
// finds an entry with a function value.
// Otherwise, recursively cycle through the list, adding
// descriptive tags along the way
function run(tests) {
const greenText = text => `\x1b[32m${text}`;
const redText = text => `\x1b[31m${text}`;
const resetText = text => `\x1b[0m${text}`;
@reccanti
reccanti / CCMagentaCyanTunnel.swift
Created January 11, 2020 06:23
A swift playground that modifies the black and white demo to be more flexible and maintainable
import SpriteKit
import PlaygroundSupport
// Variables to manipulate the demo
let COLORS: [UIColor] = [.white, .cyan, .white, .magenta]
let NUM_SHAPES = 6 // The number of shapes that will appear onscreen
let SPEED = 0.5 // the speed at whic the demo will move
/*
@reccanti
reccanti / CCBlackAndWhiteTunnels.swift
Created January 11, 2020 06:19
A swift playground that uses scaling squares to give the appearance of moving through a tunnel
import SpriteKit
import PlaygroundSupport
// Variables to manipulate the demo
let NUM_SHAPES = 8 // The number of shapes that will appear onscreen
let SPEED = 1 // the speed at whic the demo will move
func getScaleFactor(numShapes: Int, index: Int) -> Double {
return 100.0 / Double(numShapes) * Double(index)
@reccanti
reccanti / CCRotatingSquares.swift
Created January 11, 2020 06:15
A swift playground with rotating, translucent squares
import SpriteKit
import PlaygroundSupport
let view = SKView()
let scene = SKScene(size: CGSize(width: 100, height: 100))
scene.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)
scene.scaleMode = .aspectFit
for i in 1 ... 7 {
let rect = SKShapeNode(rect: CGRect(x: -25, y: -25, width: 50, height: 50))