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
var checkboxes = YAHOO.util.Selector.query("input[type=checkbox]", "add_from_address_book"); | |
var length = checkboxes.length; | |
for(var i=0; i < length; i++) { | |
checkboxes[i].checked = true; | |
} |
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
$ sudo gem install bleak_house | |
Building native extensions. This could take a while... | |
ERROR: Error installing bleak_house: | |
ERROR: Failed to build gem native extension. | |
/usr/bin/ruby1.8 extconf.rb install bleak_house | |
extconf.rb:3:in `exec': No such file or directory - ruby-bleak-house build_snapshot.rb (Errno::ENOENT) | |
from extconf.rb:3 | |
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
With: | |
require 'bleak_house' | |
mongrel_rails start | |
Error comes: | |
This build of Ruby has not been successfully patched for BleakHouse. | |
$ ruby -v | |
ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux] |
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
# my new favorite bashrc function | |
# quickly inspect source files in style | |
function pless { | |
pygmentize $1 | less -r | |
} | |
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
class Array | |
def second | |
self[1] | |
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
[sudo] password for anil: | |
Building native extensions. This could take a while... | |
ERROR: Error installing sweeper: | |
ERROR: Failed to build gem native extension. | |
/usr/bin/ruby1.8 extconf.rb install sweeper | |
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- Text (MissingSourceFile) | |
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' | |
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' |
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
("/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs") | |
Loading prestart plugin files ... | |
... done. | |
Loading easy-mmode...done | |
Shell: /bin/bash | |
Aquamacs Mule installed. | |
Loading encoded-kb...done | |
Loading easymenu...done | |
Loading jka-compr...done | |
uncompressing tree-widget.el.gz...done |
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
anil-wadghules-computer:~/code/emacs/emacs.d/vendor anilwadghule$ tree textmate.el/ | |
textmate.el/ | |
|-- textmate.el | |
`-- vendor | |
`-- fuzzy-find-in-project | |
|-- README.markdown | |
|-- fuzzy-find-in-project.el | |
`-- fuzzy-find-in-project.rb |
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
:log => STDOUT, | |
:base_uri => 'http://localhost:8910', | |
:use_basic_auth => false |
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 anil-find-config () | |
(interactive) | |
(let ((config-file | |
(ido-completing-read "Config file: " (reject (directory-files "~/.emacs.d/anil/") | |
(lambda (x) (string-match "^\\." x)))))) | |
(if (empty? config-file) | |
(find-file "~/.emacs.d/anil.el") | |
(find-file (concat "~/.emacs.d/anil/" config-file))))) | |
;; fix kill-word |