Skip to content

Instantly share code, notes, and snippets.

module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@Addisonbean
Addisonbean / simple.zsh-simple
Created December 30, 2016 23:36
Modified version of the simple zsh theme
PROMPT='%{$fg[blue]%}%1~%{$fg_bold[white]%}$(git_prompt_info)%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
export LSCOLORS="exfxcxdxbxegedabagacad"
export LS_COLORS='di=36;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:'
#!/usr/bin/env ruby
locker_count = ARGV[0].to_i
final_states = 1.upto(locker_count).reduce([false] * locker_count) do |states, f|
states.each_with_index.map do |s, i|
next s if i < f
i % f == 0 ? !s : s
end
end
@Addisonbean
Addisonbean / reverse.rb
Last active August 4, 2016 23:58
Switch Text Directions
#!/usr/bin/env ruby
first = "\u202E"
last = "\u202D"
print first + ARGV[0].reverse + last
lyrics = [
/^We(')?re no strangers to love[\.,]?$/i,
/^You know the rules and so do I[\.,]?$/i,
/^A full commitment(')?s what I(')?m thinking of[\.,]?$/i,
/^You wouldn(')?t get this from any other guy[\.,]?$/i,
/^I just wanna tell you how I(')?m feeling[\.,]?$/i,
/^Gotta make you understand[\.,]?$/i,
/^Never gonna give you up[\.,]?$/i,