Skip to content

Instantly share code, notes, and snippets.

View spencerwi's full-sized avatar

Spencer Williams spencerwi

View GitHub Profile
@gnanderson
gnanderson / fif.sh
Last active November 3, 2023 15:30
Find in file using ripgrep, then fuzzy find matched filenames with fzf, preview match using bat
fif() {
rg \
--column \
--line-number \
--no-column \
--no-heading \
--fixed-strings \
--ignore-case \
--hidden \
--follow \
@ohanhi
ohanhi / frp.md
Last active May 6, 2024 05:17
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

@headius
headius / gist:e9f0ed8e88e8c2df15f8
Last active November 13, 2015 06:23
IntelliJ crash on OS X Yosemite, Oracle Java 8u45
Process: idea [61601]
Path: /Applications/IntelliJ IDEA 14.app/Contents/MacOS/idea
Identifier: com.jetbrains.intellij
Version: 14.1 (IU-141.177.4)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: idea [61601]
User ID: 501
Date/Time: 2015-05-08 17:07:21.695 -0500
@jerry4
jerry4 / ng-helpers.js
Last active August 29, 2015 14:09
ng app debugging
if (jerry) { alert("already added ngHelpers"); } //
var jerry = (function(){
var count = 0;
var unregisterDigestWatch = function() {}; // init empty
function registerDigestWatch(scope) {
scope = scope || angular.element(document).scope();
unregisterDigestWatch = scope.$watch(function() {
var c = count++;