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
Divide by zero | |
[Thrown class java.lang.ArithmeticException] | |
Restarts: | |
0: [QUIT] Quit to the SLIME top level | |
Backtrace: | |
0: Numbers.java:156 clojure.lang.Numbers.divide | |
1: Numbers.java:3691 clojure.lang.Numbers.divide | |
2: NO_SOURCE_FILE:1 user/eval1950 |
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
;;; sets zsh path | |
(let ((path (shell-command-to-string ". ~/.zshrc; echo -n $PATH"))) | |
(setenv "PATH" path) | |
(setq exec-path | |
(append | |
(split-string-and-unquote path ":") | |
exec-path))) |
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
; SLIME 20100404 | |
user> (println "Hello World") | |
Hello World | |
nil | |
user> |
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
create a file in your ~ dir named .gitignore_global | |
then: | |
git config --global core.excludesfile ~/.gitignore_global | |
add content to your .gitignore_global file |
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
C runs the command self-insert-command, which is an interactive built-in function in `C source code'. | |
It is bound to many ordinary text characters. | |
(self-insert-command N) |
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
C runs the command self-insert-command, which is an interactive built-in function in `C source code'. | |
It is bound to many ordinary text characters. | |
(self-insert-command N) | |
Insert the character you type. | |
Whichever character you type to run this command is inserted. | |
Before insertion, `expand-abbrev' is executed if the inserted character does | |
not have word syntax and the previous character in the buffer does. |
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
C runs the command self-insert-command, which is an interactive built-in function in `C source code'. | |
It is bound to many ordinary text characters. | |
(self-insert-command N) | |
Insert the character you type. | |
Whichever character you type to run this command is inserted. | |
Before insertion, `expand-abbrev' is executed if the inserted character does | |
not have word syntax and the previous character in the buffer does. |
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
Spork.each_run do | |
... | |
# Hack to ensure models get reloaded by Spork - remove as soon as this is fixed in Spork. | |
# Silence warnings to avoid all the 'warning: already initialized constant' messages that | |
# appear for constants defined in the models. | |
silence_warnings do | |
Dir["#{Rails.root}/app/models/**/*.rb"].each {|f| load f} | |
end | |
end |
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
Spork.each_run do | |
require 'factory_girl_rails' | |
# reload all the models | |
Dir["#{Rails.root}/app/models/**/*.rb"].each do |model| | |
load model | |
end | |
end |
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
# Do not refactor, it is a bad practice. YOLO | |
# Not understanding why or how something works is always good. YOLO | |
# Do not ever test your code yourself, just ask. YOLO | |
# No one is going to read your code, at any point don't comment. YOLO | |
# Why do it the easy way when you can reinvent the wheel? Future-proofing is for pussies. YOLO |