Skip to content

Instantly share code, notes, and snippets.

@rezwyi
rezwyi / google.analytics.js.coffee
Last active January 16, 2017 11:35
Google Analytics script in CoffeeScript
# See http://stackoverflow.com/questions/4214731/coffeescript-global-variables
root = exports ? this
root._gaq = [['_setAccount', 'UA-xxxxxxxx-y'], ['_trackPageview']]
insertGAScript = ->
ga = document.createElement 'script'
ga.type = 'text/javascript'
ga.async = true
proto = document.location.protocol
@rezwyi
rezwyi / tmux.conf
Created January 27, 2013 14:03
Tmux configuration file
# vim:set ft=tmux:
# Terminal
setw -g utf8 on
set -g default-terminal "screen-256color"
set-option -g default-shell /bin/zsh
# Color
source-file '~/.tmux/tmux-colors-solarized/tmuxcolors-light.conf'
@rezwyi
rezwyi / tmux-solarized-light.conf
Last active December 11, 2015 19:28
Solarized (light) theme for tmux
# default statusbar colors
set-option -g status-bg white #base2
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightyellow #base00
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
@rezwyi
rezwyi / terminal-solarized-light.xml
Last active December 11, 2015 19:29
Terminal.app Solarized (light) theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECgw
LjAyNzQ1MDk4MDM5IDAuMjExNzY0NzA1OSAwLjI1ODgyMzUyOTQAEAGAAtIQERITWiRj
bGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNo