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 <=(value) | |
size_self = self.size | |
size_value = value.size | |
return false if self.size > value.size | |
return true if self.size < value.size | |
value.each_with_index do |v, i| | |
return false if v < self[i] | |
end | |
return 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
class Array | |
def <=(value) | |
size_self = self.size | |
size_value = value.size | |
return false if self.size > value.size | |
return true if self.size < value.size | |
if size > 1000 | |
value = value[0..10] | |
end | |
value.each_with_index do |v, i| |
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
import XMonad.Layout.IM | |
import XMonad.Layout.PerWorkspace | |
import XMonad.Layout.Reflect | |
main = do | |
xmonad defaultConfig | |
{ layoutHook = onWorkspace "gimp" gimp } | |
where | |
gimp = withIM (0.11) (Role "gimp-toolbox") $ | |
reflectHoriz $ |
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
NONE="\[\033[0m\]" # unsets color to term's fg color | |
# regular colors | |
K="\[\033[0;30m\]" # black | |
R="\[\033[0;31m\]" # red | |
G="\[\033[0;32m\]" # green | |
Y="\[\033[0;33m\]" # yellow | |
B="\[\033[0;34m\]" # blue | |
M="\[\033[0;35m\]" # magenta | |
C="\[\033[0;36m\]" # cyan |
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
# default.gems generated gem export file. Note that any env variable settings will be missing. Append these after using a ';' field separator | |
aaronh-chronic -v0.3.9 | |
abstract -v1.0.0 | |
actionmailer -v3.0.7 | |
actionmailer -v3.0.6 | |
actionmailer -v2.3.8 | |
actionmailer -v2.3.5 | |
actionpack -v3.0.7 | |
actionpack -v3.0.6 | |
actionpack -v2.3.8 |
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
#config/initializers/bb-code.rb | |
module BBRuby | |
@@tags["Ruby"] = [ | |
/\[ruby\](.*?)\[\/ruby\]/mi, | |
'<pre class="syntax ruby">\1</pre>', | |
'Ruby code', | |
'[ruby]User.last.inspect[/ruby]', | |
:ruby] | |
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
def test_including_modules_for_correct_country | |
Schober::Reader.expects(:send).with(:include, Schober::Mapping::Categories::Ch) | |
Schober::Reader.expects(:send).with(:include, Schober::Mapping::Columns::Ch) | |
Schober::Reader.expects(:send).with(:include, Schober::Computing::Ch) | |
Schober::Reader.new("ch") | |
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
admin.qype.br | |
admin.qype.co.uk | |
admin.qype.com | |
admin.qype.es | |
admin.qype.fr | |
admin.qype.it | |
admin.qype.nl | |
admin.qype.pl | |
admin.qype.pt | |
bbc.qype.br |
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
Building native extensions. This could take a while... | |
ERROR: Error installing ray: | |
ERROR: Failed to build gem native extension. | |
/home/wojciech/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb | |
checking for GL/glxext.h... yes | |
checking for X11/extensions/Xrandr.h... yes | |
checking for main() in -lXrandr... yes | |
checking for main() in -lX11... yes | |
checking for main() in -lGL... yes |
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
/*! | |
* jQuery outside events - v1.1 - 3/16/2010 | |
* http://benalman.com/projects/jquery-outside-events-plugin/ | |
* | |
* Copyright (c) 2010 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://benalman.com/about/license/ | |
*/ | |
// Script: jQuery outside events |