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
This is a test. |
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
mbp:~ stefan$ echo $PATH | |
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:. | |
mbp:~ stefan$ ls -al /opt/local/bin/ruby | |
-rwxr-xr-x 1 root admin 12680 21 Jun 18:06 /opt/local/bin/ruby | |
mbp:~ stefan$ whereis ruby | |
/usr/bin/ruby |
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
.yui-g#banner | |
%h4 Custom Town home and Bungalow Condos located in South Western Winnipeg. | |
.yui-gb | |
.yui-u{:class => 'first'} | |
%img{:class=>'frame', :src=>'images/kitchen.jpg'} | |
%h2 Well Designed | |
%p Beauty and comfort await you at Richmond Green, Winnipegs newest master planned community. Surrounded by the tranquility of water and a breathtaking landscaping, a variety of distinct home styles have been created to meet your individual desires. Designed with your comfort in mind, our condominiums offer a relaxing, maintenance free environment. with the security and pride that comes with home ownership. | |
.yui-u | |
%img{:class=>'frame',:src=>'images/family.jpg'} | |
%h2 Well Built |
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
// showcase viewer | |
$(document).ready(function(){ | |
$("div#showcase ul li a").act_as_showcase(); | |
googlemap(); | |
}); | |
// showcase | |
(function($) | |
{ | |
$.fn.act_as_showcase = 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
desc 'Minify javascript' | |
task :minify do | |
`rm -rf output/javascripts/tmp` | |
`cat output/javascripts/*.js | ruby lib/jsmin.rb > output/javascripts/tmp` | |
`rm -rf output/javascripts/*.js` | |
`mv output/javascripts/tmp output/javascripts/master.js` | |
end | |
# EOF |
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
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file | |
at java.lang.ClassLoader.defineClass1(Native Method) | |
at java.lang.ClassLoader.defineClass(ClassLoader.java:675) | |
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) | |
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) | |
at java.net.URLClassLoader.access$100(URLClassLoader.java:56) | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:195) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader.findClass(URLClassLoader.java:188) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:316) |
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
require 'benchmark' | |
str = "1 2 3 4-5 6 7 8-9" | |
Benchmark.bm do |bm| | |
bm.report("split: ") {10000.times do hash = Hash.new(0); str.split.each { |m| hash[m] += 1}; end } | |
bm.report("scan: (\\w+) ") { 10000.times do hash = Hash.new(0); str.scan(/\w+/m) { |m| hash[m] += 1} end } | |
bm.report("scan: (\w+(-\w+)?) ") { 10000.times do hash = Hash.new(0); str.scan(/(\w+(-\w+)?)/m) { |m| hash[m] += 1} end } | |
end | |
## Native environment tests - 1.8.7 |
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
require 'benchmark' | |
str = "1 2 3 4-5 6 7 8-9" | |
Benchmark.bm do |bm| | |
bm.report("split: ") {10000.times do hash = Hash.new(0); str.split.each { |m| hash[m] += 1}; end } | |
bm.report("scan: (\\w+) ") { 10000.times do hash = Hash.new(0); str.scan(/\w+/m) { |m| hash[m] += 1} end } | |
bm.report("scan: (\w+(-\w+)?) ") { 10000.times do hash = Hash.new(0); str.scan(/(\w+(-\w+)?)/m) { |m| hash[m] += 1} end } | |
end | |
## Native environment tests - 1.8.7 |
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
;; The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. | |
;; Find the sum of all the primes below two million. | |
(defn is-prime [n] | |
(loop [d (int (Math/sqrt n))] | |
(if (= d 1) | |
true | |
(if (= 0 (rem n d)) | |
false |
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
(defun color-theme-sunburst () | |
(interactive) | |
(color-theme-install | |
'(color-theme-sunburst | |
((background-color . "#000000") | |
(foreground-color . "#FFFFFF") | |
(cursor-color . "#DAD085")) | |
(default ((t (nil)))) | |
(modeline ((t (:background "DarkRed" :foreground "white" | |
:box (:line-width 1 :style released-button))))) |
OlderNewer