Skip to content

Instantly share code, notes, and snippets.

View charlietran's full-sized avatar
💭
hoolie doolie

Charlie Tran charlietran

💭
hoolie doolie
View GitHub Profile
@charlietran
charlietran / TerminalVim.scpt
Last active October 14, 2023 06:50
Open file in iTerm vim for MacOS Sierra
-- TerminalVim.app
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm
-- To use this script:
-- 1. Open Automator and create a new Application
-- 2. Add the "Run Applescript" action
-- 3. Paste this script into the Run Applescript section
-- 4. Save the application as TerminalVim.app in your Applications folder
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default

Keybase proof

I hereby claim:

  • I am charlietran on github.
  • I am charlietran (https://keybase.io/charlietran) on keybase.
  • I have a public key whose fingerprint is B7ED 550C 9BAF 22D2 541D 26E2 28FC D5CE 2E12 53E6

To claim this, I am signing this object:

foo᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎᠎bar
@charlietran
charlietran / gist:1726418
Created February 2, 2012 23:24
CSS vertical centering for IE7+
/******************************************************************************
Vertical centering of variable-height content
Compatible with IE7 and below
Author: Charlie Tran
Date: Feb 2012
Agency: FreeAssociation (www.thinkfa.com)
More elegant solution here if you only care about IE8+: http://goo.gl/UN80L