Skip to content

Instantly share code, notes, and snippets.

View tankorsmash's full-sized avatar

TankorSmash tankorsmash

View GitHub Profile
@tankorsmash
tankorsmash / plugins_to_load.vim
Created March 9, 2024 19:07
A mirror of my vim plugins as of March 2024
call plug#begin('~/.vim/plugged')
Plug 'https://github.com/tpope/vim-repeat.git'
Plug 'https://github.com/stefandtw/quickfix-reflector.vim'
Plug 'https://github.com/takac/vim-hardtime.git'
Plug 'https://github.com/ctrlpvim/ctrlp.vim.git'
" Plug 'https://github.com/nixprime/cpsm.git'
Plug 'https://github.com/FelikZ/ctrlp-py-matcher'
" Plug 'https://github.com/JazzCore/ctrlp-cmatcher/'
" Plug 'https://github.com/tmhedberg/matchit.git' "replaced with matchup
N4IgzgphAmIFwGYAMAOA7AJgDQgO4EMAnSGeARgE4A2NTHQiMAewFdCBjCeUAJQDkAgtxAA7fAFsucEPyE5oASzAAHADb4AnvAAuhFhBwTWI7fAAsGAKw5x+AB7mr8hQDMX5JBQB0l7CGgQqtr48Ej0+NpSZDjshBGMoTFMJvgKIhDEoQC+OAAigsJikvAg+XL+SmqaOnoGIEYsJuQUCF5mlihmVJZmCD0IZEhoNvbwyGEVbmOt7fKBwYkgcZHkMcsJcBPsycFpGWDZOACyyRBacKBFUiAAJCDOKurnLviqkIbixqabIw5wg0gJoopj9/PMQqD1qtwMF2ABrfAAI1UUhebzqsXiB1B2xSe0ymxyIGUhCY2iYVTA4kKEmuAAVSeTKdSHlVnq93vVPo1vhNbH8ga53KCAkEIRMoaCwLCEcjURyMetsVsdql0gSkESAMrqABuUkutJKOvw+vuFUe1TgaM5DSaoP5i2BwqB4MWkom0vw8KRKPgNsVWMWuN26uVRKO+DENOK0kj0dZT39Co+X0WjpFQqdbsh8WhAHMICJFoWRAB9WBSmW++XotZBnGq/HhnAAUXV+fOhtjIHbGU75sUlvZda5aYdo0zINdYvdear3tlfutKZAmMiyqSeLDhxAWpY2O7133KgU7AUyUHlSTK9Hdt5vydWZFOYl8891blydH642Ku3+y7gA0iITC4Ci0CFjG1wgWBEFQYmVoBqmPLppOALONOcyzrmKz/DgXo+l+t6cr+m5rk2O6EjgABaRbQSUdEiAABHSYEZFew7fra3L2nyk6ClhYI4W+eEfouNbcYGG7BpRgHUSAADCSoMdIyl5ohI48eO/ECphLrYQsuFSOJRHLsha4qY2AEakSilyQSR4lPZNmcWyUkoXxj5TgZwlGaJJkEZ+5mrmRsk2S2IAAGJMEwlZOdIMVxW5N4Wbqrz6PA1hjqhE5/FYgm+aK/nhHh0QwhJxG6Po9YydZobyRMuj4AEu4ADIsOIiIcRcohGtIHVdRxmkeSA6
@tankorsmash
tankorsmash / midnight.elm
Created December 7, 2022 20:35
Generate midnight and random time during the day
{-| Returns a random time and the midnight time in a TimeZone
-}
fuzzMidnightAndToday : Time.Zone -> Fuzz.Fuzzer ( Time.Zone, Time.Posix, Time.Posix )
fuzzMidnightAndToday timezone =
let
currentTimeInDays : Time.Posix -> Duration.Duration
currentTimeInDays currentTime =
let
conversionFunc toTime inTime =
toTime timezone currentTime
Launching in target application ...
Entry point was written to address 002A0000
Reading PE import directory ...
Reading PE debug info directory ...
Found program debug database: C:\Users\Josh\Documents\cocos_projects\magnolia_cocos\proj.win32\Debug.win32\magnolia_cocos_proj.pdb
Found source file: c:\users\josh\documents\cocos_projects\magnolia_cocos\proj.win32\main.cpp
Found source file: c:\users\josh\documents\cocos_projects\magnolia_cocos\classes\videoutil.cpp
Found source file: c:\users\josh\documents\cocos_projects\magnolia_cocos\classes\utilities\vibration.cpp
Found source file: c:\users\josh\documents\cocos_projects\magnolia_cocos\classes\utilities\textformatting.cpp
Found source file: c:\users\josh\documents\cocos_projects\magnolia_cocos\classes\utilities\sceneutilities.cpp
@tankorsmash
tankorsmash / SimpleInputRec.cpp
Created May 22, 2018 13:14
SIMPLE INPUT RECORD/PLAYBACK (c) 2015 Brian Provinciano
/******************************************************************************/
// SIMPLE INPUT RECORD/PLAYBACK
// (c) 2015 Brian Provinciano
//
// You are free to use this code for your own purposes, no strings attached.
//
// This is a very basic sample to record and playback button input.
// It's most useful when activated on startup, deactivated on shutdown for
// global button recording/playback.
//
@tankorsmash
tankorsmash / magnifier.shadertoy
Last active August 4, 2017 06:40 — forked from detunized/gist:1317940
Magnifying glass shader
// (c) 2011 detunized (http://detunized.net)
// Paste the shader below into http://shadertoy.com
// Click and drag the mouse around
#ifdef GL_ES
precision highp float;
#endif
uniform vec2 resolution;
uniform sampler2D tex0;
@tankorsmash
tankorsmash / beautify_double.cpp
Last active October 24, 2016 02:29
beautify_double(123456789) turns '123456789' into '123.45m'
const std::vector<const std::string> suffixes = {
"",
"M",
"B",
"T",
"Qa",
"Qi",
"Sx",
"Sp",
"Oc",
subreddits = ["thewalkingdead", "leagueoflegends", "wow", "soccer", "jokes", "aww", "redditlaqueristas", "pokemon", "ladyboners", "detroitlions", "cfb", "creepypms", "kotakuinaction", "gaming", "patriots", "polandball", "trollxchromosomes", "nba", "earthporn", "knitting", "standupshots", "tinytits", "ladybonersgw", "suicidegirls", "squaredcircle", "ainbow", "subaru", "teenagers", "azcardinals", "tumblrinaction", "airsoft", "massivecock", "baseball", "formula1", "mma", "fantasyfootball", "seahawks", "sourcefed", "gaybrosgonemild", "greenbaypackers", "hockey", "climbing", "womenofcolor", "anal", "gaybrosgonewild", "gamerghazi", "autos", "shorthairedhotties", "nascar", "rabbits", "askgaybros", "49ers", "kansascitychiefs", "steelers", "redditisfun", "dbz", "battlestations", "roosterteeth", "gaymers", "wheredidthesodago", "thelastairbender", "4chan", "forwardsfromgrandma", "classic4chan", "photoshopbattles", "oldschoolcool", "circlejerk", "cats", "malefashionadvice", "shittyaskscience", "milf", "pcmasterrace", "tr
@tankorsmash
tankorsmash / pre-commit
Last active December 23, 2015 22:39
pre-commit
#!/usr/bin/env bash
# Author: Boris Guéry <guery.b@gmail.com>
# https://github.com/borisguery/git-keywords-checker
# Add or remove keywords here
KEYWORDS_REGEX="var_dump\(|die\(|Zend_Debug::|print_r\(|console\.(debug|info|log|warn)\(|.*ipdb.*\("
# Add extensions to check here
EXTENSIONS_REGEX="(.php$|.phtml$|.js$|.py$)"
ERRORS_BUFFER=""