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
;; e.g. bind to C-c C-e in emacs-lisp-mode | |
(defun mb-eval-and-execute () | |
"Evaluate and execute current defun." | |
(interactive) | |
(funcall (eval-defun-2))) |
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
/* tests for webkit and opera to fix styling bugs :@ */ | |
Modernizr.addTest('opera', function () { | |
return /Opera/.test(({}).toString.call(window.opera)); | |
}); | |
Modernizr.addTest('webkit', function () { | |
return Modernizr.testProp('-webkit-box-shadow'); | |
}); | |
/* css to trigger webkit |
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
(add-to-list 'load-path "~/.emacs.d/slime") | |
(add-to-list 'load-path "~/.emacs.d/slime/contrib") | |
(when (require 'slime "slime" t) | |
(slime-setup '(slime-fancy slime-asdf slime-references slime-indentation))) | |
(setq slime-enable-evaluate-in-emacs t | |
slime-net-coding-system 'utf-8-unix | |
;; lisp-indent-function 'cl-indent:function | |
) |
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
(defparameter *big* 100) | |
(defparameter *small* 1) | |
(defun guess-my-number () | |
(ash (+ *small* *big*) -1)) | |
(defun smaller () | |
(setq *big* (1- (guess-my-number))) | |
(guess-my-number)) |
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
#main { | |
display:table; | |
#sidebar, #content { | |
display:table-cell; | |
} | |
#sidebar { | |
width:150px; | |
} |
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
#main { | |
overflow:hidden; | |
#sidebar { | |
width:150px; | |
float:left; | |
} | |
#content { | |
margin-left:200px; |
NewerOlder