This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
###################################################################################################### | |
# Add names of applications which you want to maximize to ~/.windowmaxrc, each application name in a single line, for example: | |
# | |
# -> cat ~/.windowmaxrc | |
# iTerm | |
# Safari | |
# Google Chrome | |
# MacDown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
w0t0p2: | |
dir: "~" | |
commands: | |
- pry | |
w0t1p0: | |
dir: "~/a/" | |
w0t1p1: | |
dir: "~/a/" | |
w0t1p2: | |
dir: "~/b/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ 0 = $# ] | |
then | |
lein repl | |
else | |
lein_home=$(brew info leiningen | sed -n 3p | cut -d' ' -f1) | |
clojure_jar_file_name=$(ls ${lein_home}/libexec) | |
clojure_jar_file_path="$lein_home/libexec/$clojure_jar_file_name" | |
java -cp "$clojure_jar_file_path" clojure.main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
struct Point { | |
var x: Int = 200 | |
var y: Int! = 2 | |
var z: Int? = nil | |
} | |
class CPoint { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
class HTMLHeadingParser | |
class TreeNode | |
attr_accessor :content, :children, :parent, :level | |
def initialize(content, parent=nil) | |
@content = content | |
@children = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
hostname='www.ttincloud.com' | |
session_name=www_ttincloud_com | |
function sign_in() { | |
echo "Session timeout, now re-sign-in." | |
echo -n "Username: " | |
read username |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -i.bak -pe 's#<string>./dashAlfredWorkflow#<string>echo '\''tell application "System Events"\n tell process "Dash"\n tell first window\n tell first group\n set most_left_btn to first button\n set most_left_frame to value of attribute "AXFrame" of most_left_btn\n set most_left to first item of most_left_frame\n repeat with btn in buttons\n set frame to value of attribute "AXFrame" of btn\n set lft to first item of frame\n if lft < most_left then\n set most_left_btn to btn\n set most_left to lft\n end if\n end repeat\n tell most_left_btn\n perform action "AXPress"\n end tell\n end tell\n end tell\n end tell\nend tell'\'' | osascript &> /dev/null;\n./dashAlfredWorkflow#' info.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
tell process "Dash" | |
tell first window | |
tell first group | |
set most_left_btn to first button | |
set most_left_frame to value of attribute "AXFrame" of most_left_btn | |
set most_left to first item of most_left_frame | |
repeat with btn in buttons | |
set frame to value of attribute "AXFrame" of btn | |
set lft to first item of frame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! GotoBeginningOf(type, ...) | |
normal `[ | |
if a:type == "line" | |
normal ^ | |
endif | |
endfunction | |
function! GotoEndOf(type, ...) | |
normal `] | |
if a:type == "line" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map <c-c> <esc> |
OlderNewer