start new:
tmux
start new with session name:
tmux new -s myname
(* | |
Droplet for Leap.app which is something it should provide. This droplet serves three functions: | |
1. drop files/folders to tag in leap | |
2. open the current folder in leap if there is no selection | |
3.combine with alfred to make a global shortcut key to quick tag selection | |
Author: Zhao Cai | |
Notes: | |
1. Work with Finder Selection: Parameter to open is a list of alias references to the items you dropped. But Finder selection is a specifier for the applicatiaon Finder itself. Anyway, it has to be changed to the "drag'n'drop" format. | |
2. | |
Link: |
#!/usr/bin/env bash | |
# Bash Stack | |
set -o errtrace | |
set -o errexit | |
set -o nounset | |
declare -a stack |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# == Synopsis | |
# Requires the terminal-notifier gem ([sudo] gem install terminal-notifier) | |
# growlnotify wrapper to turn Growl alerts into Mountain Lion notifications | |
# Uses growlnotify option syntax to keep your old scripts working with the new shiny. | |
# | |
# If you use Growl via growlnotify in your shell scripting, this script | |
# will replace Growl's alerts with Mountain Lion notifications. |
diff --git a/rubylib/rdbgp/commands/context.rb b/rubylib/rdbgp/commands/context.rb | |
index 000869c..7a28b45 100644 | |
--- a/rubylib/rdbgp/commands/context.rb | |
+++ b/rubylib/rdbgp/commands/context.rb | |
@@ -41,6 +41,7 @@ module Debugger | |
sc = @state.context | |
propInfo = processor.propInfo | |
stackDepth = get_adjusted_stack_depth(processor, stackDepth) | |
+ processor.logger.debug("Adjusted stack depth: " + stackDepth.to_s) | |
the_binding = sc.frame_binding(stackDepth) |
#! /usr/bin/env python | |
""" Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
Resources: | |
* http://en.wikipedia.org/wiki/8-bit_color | |
* http://en.wikipedia.org/wiki/ANSI_escape_code |
command! -range Ieval :<line1>,<line2>call EvalScriptRegion() | |
vnoremap <silent> <CR> :Ieval<CR> | |
function! EvalScriptRegion() range | |
if has_key(g:vimshell_interactive_interpreter_commands, &ft) | |
exec a:firstline.','a:lastline.'VimShellSendString' | |
else | |
exec a:firstline.','a:lastline.'QuickRun' | |
endif |
#!/usr/bin/env ruby | |
# Translates an objective C method call on the pasteboard, | |
# as copied from the docs, into MacRuby syntax, placing it | |
# back on the pasteboard. | |
# @example | |
# '+ (NSColor *)colorWithCalibratedRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha' | |
# => 'colorWithCalibratedRed(red, green:green, blue:blue, alpha:alpha)' | |
string = `pbpaste` |
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
require 'facets' | |
x = %Q{ | |
| This | |
| is | |
| margin controlled! | |
}.margin | |
puts x |