Skip to content

Instantly share code, notes, and snippets.

View TheSavior's full-sized avatar

Eli White TheSavior

View GitHub Profile
@TheSavior
TheSavior / .gitconfig
Created February 10, 2016 02:23
Git Aliases
[alias]
cleanup = "!git branch --merged | grep -v '\\*\\|master' | xargs -n 1 git branch -d && git remote prune origin"
cleanup-remote = "!git branch -r --merged | grep origin | grep -v '>' | grep -v master | xargs -L1 | cut -d"/" -f2- | xargs git push origin --delete"
old-branches = "!git for-each-ref --sort=committerdate --format='%1B[1;34m %(authordate:relative) %1B[m %(refname:short) %1B[1;32m%(authorname)%1B[m' refs/remotes"
@TheSavior
TheSavior / codegenConfig.js
Created February 25, 2020 21:08
Possible Codegen configuration
const Codegen = require('react-native-codegen');
const FlowParser = require('react-native-codegen-flow-parser');
const FabricObjcGenerator = require('react-native-codegen-fabric-objc-generator');
const ViewConfigGenerator = require('react-native-codegen-viewconfig-generator');
const MarkdownDocumentationGenerator = require('react-native-codegen-markdown-generator');
Codegen({
schema: new FlowParser({
files: ["src/*NativeComponent.js", "src/*NativeModule.js"],
otherConfig: true
@TheSavior
TheSavior / crossreference.js
Created October 1, 2023 22:53
Spotify : Chorus crosschecking
import fs from 'fs';
import { parse } from 'csv-parse';
import path from 'path';
import os from 'node:os';
const CLONE_HERO_SONGS_FOLDER = path.join(os.homedir(), 'Clone Hero', 'Songs');
const CHORUS_DUMP = new URL('Chorus_Dump-export_feb_15_2023.csv', import.meta.url).pathname;
const SPOTIFY_DATA_DUMP_FOLDER = new URL('SpotifyData-Aug-26', import.meta.url).pathname;
async function run() {