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
| select * from | |
| ( | |
| select [name],create_date,modify_date, 'sp' as ObjType from sys.procedures | |
| union all | |
| select [name],create_date,modify_date, 'table' as ObjType from sys.tables | |
| union all | |
| select [name],create_date,modify_date, 'view' as ObjType from sys.views | |
| ) sub | |
| order by modify_date desc |
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
| require "rubygems" | |
| require 'hirb' | |
| Hirb.enable :output=>{'Object'=>{:class=>:auto_table, :ancestor=>true}} | |
| IRB.conf[:AUTO_INDENT] = true | |
| IRB.conf[:USE_READLINE] = true | |
| # Remove the annoying irb(main):001:0 and replace with >> | |
| IRB.conf[:PROMPT_MODE] = :SIMPLE |
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
| What changed in Ruby that makes the "usec" different in 1.8.6 and 1.9.1 | |
| ~: ruby -v | |
| ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] | |
| ~: irb | |
| >> t = Time.at(1250380800.123) | |
| => Sat Aug 15 17:00:00 -0700 2009 | |
| >> t.usec | |
| => 123000 |
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
| require 'image_science' | |
| class Thumb | |
| class << self | |
| # if a :thumb_dir is provided then the thumb | |
| # will be saved in the sub directory provided | |
| # with the same name as the original otherwise | |
| # it will be saved with "_th" after the name |
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
| local: brew install imagemagickb /usr/X11/lib/libX11.6.2.0.dylib /usr/X11/lib/libXau.6.0.0.dylib /usr/X11/lib/libXdmcp.6.0.0.dylib /usr/lib/libexpat.dylib -ljpeg /usr/X11/lib/libpng12.0.26.0.dylib /usr/lib/libz.dylib -lz -lm -march=nocona -mfpmath=sse -mmmx -msse3 -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -install_name /usr/local/Cellar/libwmf/0.2.8.4/lib/libwmf-0.2.7.dylib -compatibility_version 9 -current_version 9.0 | |
| i686-apple-darwin9-gcc-4.2.1: /usr/X11/lib/libpng12.0.26.0.dylib: No such file or directory | |
| make[3]: *** [libwmf.la] Error 1 | |
| make[2]: *** [all-recursive] Error 1 | |
| make[1]: *** [all-recursive] Error 1 | |
| make: *** [all] Error 2 | |
| http://github.com/mxcl/homebrew/blob/master/Library/Formula/libwmf.rb#L11 | |
| ==> Environment | |
| HOMEBREW_VERSION: 0.5 | |
| HEAD: |
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
| // using node.js | |
| var sys = require("sys"); | |
| var balls = [1, 2, 3, 4]; | |
| sys.puts("\n// for...in loop: before prototype\n"); | |
| for (var i in balls) { | |
| sys.puts(balls[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
| var sys = require('sys'); | |
| var b; | |
| try { | |
| //var b = require('./../module_b'); | |
| var b = require('../module_b'); | |
| } catch(e) { | |
| sys.puts(e); | |
| } |
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
| // stub jQuery's ready method so I can invoke | |
| // code in isolation | |
| $.fn.ready = function() { }; |
NewerOlder