Skip to content

Instantly share code, notes, and snippets.

@wesalvaro
wesalvaro / denshadego_zuiki_ps.gpc
Created August 10, 2021 03:14
Use the Zuiki Densha-de-GO! controller for the Nintendo Switch on the PlayStation. Out of the box, it functions but the mascon values do not map correctly. This script translates the Nintendo Switch accepted values into values accepted by the PlayStation.
#pragma METAINFO("Zuiki Densha-de-GO! for PS4", 1, 0, "Wes Alvaro")
// Converts NS Zuiki Densha-de-GO! controller mascon values for PS4.
// Mascon values need conversion or else mascon positions are skipped.
// No changes are needed for other controls (including EB).
// Controls should be set to 「スタンダード」"Standard" + 「ダイレクト」"Direct".
#include <switch.gph>
// The mascon is controlled with the left analog stick's y-axis.
// Values are negative for braking, positive for powering, 0 when neutral.
@zgrep
zgrep / shopping.html
Last active December 24, 2023 06:09
A poorly written tool for sorting out receipts. Has Walmart receipt import.
<!DOCTYPE html>
<meta charset='utf-8' />
<title>Shopping</title>
<style>
* { margin: 0; padding: 0; }
body {font-family: sans-serif; }
body > div {
display: flex;
width: 100%;
@ndbroadbent
ndbroadbent / sound.js
Last active March 29, 2020 20:03
howler.js for react-native-web
import Sound from 'react-native-sound'
export default Sound
@chourobin
chourobin / 0-bridging-react-native-cheatsheet.md
Last active August 28, 2025 08:25
React Native Bridging Cheatsheet
@joemasilotti
joemasilotti / killsim.sh
Last active October 17, 2020 11:28
Kill iOS Simulator Zombie Processes
ps aux | grep _sim | grep -v grep | awk '{print $2}' | xargs kill -9 2>/dev/null