Skip to content

Instantly share code, notes, and snippets.

@davidmyersdev
davidmyersdev / README.md
Last active November 13, 2025 14:33
How to force Vue DevTools to load in a production app

Manually

To enable Vue DevTools in a production application that disables the DevTools integration, you can run the following code in your browser console.

window.__VUE_DEVTOOLS_GLOBAL_HOOK__.enabled = true

// Gather all Vue apps on the page.
const apps = Array.from(document.querySelectorAll('[data-v-app]'), (element) => {
  return element.__vue_app__
@WadeSeidule
WadeSeidule / rgf-vscode-keybinding.json
Created September 6, 2024 14:26
Add Fuzzy Finding to VSCode
// bind whatever keybind you want
[
{
"command": "multiCommand.runRgFAndFocusTerminal",
"key": "cmd+k"
}
]
@wenkokke
wenkokke / dependency_graph.py
Last active July 12, 2022 22:30
Describes the dependency graph of a Talon user directory.
from contextlib import contextmanager
from curses.ascii import isalpha
from dataclasses import dataclass
from pathlib import Path
import ast
import re
from typing import Any, Optional, Sequence, Set
@dataclass
import time
import requests
base = "https://visualfractions.com/calculator/divisible-by/is-{}-divisible-by-{}/"
for x in range(1, 20):
print("Checking {} for fizzybuzziness".format(x))
by3 = False
by5 = False
r = requests.get(base.format(x, 3))
@willwade
willwade / commands.md
Last active September 20, 2025 08:02
Apple iOS Voice Control commands list. These are the default ones listed in the settings. If you are looking for the Catalina commands Ron Leblanc has compiled a great list (https://www.dropbox.com/s/stacghczr68o8az/Voice%20Control%20Commands.xlsx?dl=0)
diff --git a/io.c b/io.c
index 3707a69344..93b91e1450 100644
--- a/io.c
+++ b/io.c
@@ -20,6 +20,7 @@
#include <ctype.h>
#include <errno.h>
#include "ruby_atomic.h"
+#include <time.h>
@ohanhi
ohanhi / frp.md
Last active September 23, 2025 16:12
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@wbroek
wbroek / genymotionwithplay.txt
Last active December 16, 2025 11:18
Genymotion with Google Play Services for ARM
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
@chrismccoy
chrismccoy / gitcheats.txt
Last active November 30, 2025 16:30
git cheats
# alias to edit commit messages without using rebase interactive
# example: git reword commithash message
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f"
# completely wipe git history
wipe-history = "!f() { git add . && git reset --soft $(git rev-list --max-parents=0 HEAD) && git commit --amend -m \"${1:-sup}\" && git push --force; }; f"
# squash the last N commits
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
$ rails r 'File.write("./viz.html", Rails.application.routes.router.visualizer)'
$ ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 8080, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start"
$ open "http://localhost:8080/viz.html"