Skip to content

Instantly share code, notes, and snippets.

@bag-man
bag-man / post.md
Created February 4, 2017 00:01
fzf + rgrep + vim mini tutorial

I've always had fzf and ripgrep on my radar, and I've finally gotten around to using them together. Good lord it makes a world of difference, especially when added to Vim as well as Bash.

Add the following snippet to your ~/.bashrc, this add's fzf keybindings to bash and gets fzf to use ripgrep by default for faster searching.

[ -f ~/.fzf.bash ] && source ~/.fzf.bash
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
bind -x '"\C-p": vim $(fzf);'

Okay now what can you do?

@ktknest
ktknest / pinch-zoom-directive.js
Last active July 10, 2018 07:51
pinch zoom in/out directive for AngularJS
/**
* NOTICE:
* This directive is old version!!
* Please check this repository:
* https://github.com/ktknest/angular-pinch-zoom
* /
// sample: http://codepen.io/ktknest/full/LDljw/
angular.module('app', [])
@dysinger
dysinger / haskell-mtn-lion.sh
Created July 30, 2012 22:52
Install Haskell from Scratch
#!/bin/bash -eux
ARCH=${ARCH:-x86_64}
CORES=$(sysctl -n hw.ncpu)
GHC=${GHC:-7.4.2}
CABAL=${CABAL:-0.14.0}
PLATFORM=${PLATFORM:-2012.2.0.0}
[[ ! -d /usr/local/src ]] && mkdir -p /usr/local/src
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active June 13, 2024 02:39
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@joelambert
joelambert / README
Created June 1, 2011 11:03
Drop in replacements for setTimeout()/setInterval() that makes use of requestAnimationFrame() where possible for better performance
Drop in replace functions for setTimeout() & setInterval() that
make use of requestAnimationFrame() for performance where available
http://www.joelambert.co.uk
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php