This file contains hidden or 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
| (defun modal-emacs-on () (interactive) (modal-emacs-mode 1)) | |
| (defun modal-emacs-off () (interactive) (modal-emacs-mode -1)) | |
| (defvar modal--normal-mode-map "The standard keymap that starts everything") | |
| (setq modal--normal-mode-map (make-sparse-keymap)) | |
| (define-key modal--normal-mode-map "i" 'modal--insert-mode) | |
| (define-key modal--normal-mode-map "n" 'next-line) | |
| (define-key modal--normal-mode-map "p" 'previous-line) | |
| (define-key modal--normal-mode-map "f" 'forward-char) | |
| (define-key modal--normal-mode-map "b" 'backward-char) |
This file contains hidden or 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
| bash-3.2$ irb | |
| irb | |
| 1.9.3-p327-falcon :001 > def lol(x=exit); puts hi; end | |
| def lol(x=exit); puts hi; end | |
| => nil | |
| 1.9.3-p327-falcon :002 > def lol(x=exit); puts "hi"; end | |
| def lol(x=exit); puts "hi"; end | |
| => nil | |
| 1.9.3-p327-falcon :003 > lol 10 | |
| lol 10 |
This file contains hidden or 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 | |
| ruby $1 |
This file contains hidden or 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 | |
| /Applications/Emacs.app/Contents/MacOS/Emacs --debug-init "$@" | |
| ;; in my bin home directory |
This file contains hidden or 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
| (defun write-file-no-msg (filename) | |
| "write current buffer without causing a message to whatever" | |
| (let ((write-proc (start-process-shell-command "silent-write-file" "*silent-write-file*" | |
| (format "cat > %s" filename)))) | |
| (process-send-string write-proc (buffer-string)) | |
| (process-send-eof write-proc))) |
This file contains hidden or 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
| require File.expand_path('./interactions.rb', File.dirname(__FILE__)) | |
| module Interactions | |
| class EventList < Interaction | |
| def event_on_page? artist, venue, date=nil | |
| event_on_page_all? [artist, venue, date].reject | |
| end | |
| def event_on_page_all? all_content | |
| with_cuke do |
This file contains hidden or 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
| ;; This buffer is for notes you don't want to save, and for Lisp evaluation. | |
| ;; If you want to create a file, visit that file with C-x C-f, | |
| ;; then enter the text in that file's own buffer. | |
| (progn | |
| (let* ((artists '( "Enterprise Baroque Ensemble" | |
| "Engineering Flute Quartet" | |
| )) |
This file contains hidden or 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
| `which ruby` | |
| #see |
This file contains hidden or 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 sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
This file contains hidden or 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
| (defun insert-literate-funnes (ch) | |
| (interactive) | |
| (goto-char (point-min)) | |
| (insert ">") | |
| (while (< (forward-line 1) 1) | |
| (insert ">"))) | |
| ;; |