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
0 [ ~/Scripts/Git/pry ] $ rake test --trace | |
rake/gempackagetask is deprecated. Use rubygems/package_task instead | |
** Invoke test (first_time) | |
** Execute test | |
bacon -Itest -rubygems -a | |
Pry::Helpers::CommandHelpers | |
get_method_object | |
- should look up instance methods if no methods available and no options provided | |
- should look up methods if no instance methods available and no options provided | |
- should look up instance methods first even if methods available and no options provided |
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 Status, Title, [Comes with Title], Collection, Location, [Box Color] | |
FROM ( | |
SELECT Status, Title, [Comes with Title], Collection, Location, [Box Color], Format | |
FROM [Order Table 2010/2011] | |
WHERE Status<>'ceased' AND Status<>'not renewed' AND Format<>'online' | |
UNION ALL | |
SELECT Status, Title, [Comes with Title], Collection, Location, [Box Color], Format | |
FROM [Free Magazines] | |
UNION ALL | |
SELECT Status, Title, [Comes with Title], Collection, Location, [Box Color], Format |
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
#include <iostream> | |
class circle { | |
public: | |
void draw(); | |
}; | |
void circle::draw() { | |
std::cout << "\n"; | |
std::cout << " ****\n"; |
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
// Save as mem_leak_objc.m and compile with: | |
// gcc -o mem_leak_objc mem_leak_objc.m -lobjc -framework Foundation | |
#import <Foundation/Foundation.h> | |
#import <stdio.h> // for printf and friends | |
#import <stdarg.h> // for va_list and va_start | |
void P(NSString *fmt, ...) { | |
va_list va; | |
va_start(va, fmt); |
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
OBJCFLAGS = -lobjc -framework Foundation | |
CFLAGS = -fblocks | |
CXXFLAGS = | |
DEPS = mylog.h | |
EXES = test_objc test_c test_cpp \ | |
mem_leak_objc mem_leak_objc_gc mem_leak_c mem_leak_cpp | |
.PHONY: all clean | |
.SUFFIXES: .c .cpp .m .o |
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 'active_record' | |
db_adapter = RUBY_PLATFORM == 'java' ? 'jdbcsqlite3' : 'sqlite3' | |
#db_name = ':memory:' | |
db_name = 'sqlite-ar-test.sqlite3' | |
ActiveRecord::Base.establish_connection adapter: db_adapter, database: db_name | |
ActiveRecord::Schema.define do | |
create_table :books, force: true do |t| |
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
$ rvm --trace reinstall 1.8.7 --arch i386 | |
+ [[ -n '' ]] | |
+ export 'PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ /scripts/cli : __rvm_parse_args() 705 > [[ -z '' ]] | |
+ /scripts/cli : __rvm_parse_args() 705 > [[ -n '' ]] | |
+ /scripts/cli : __rvm_parse_args() 707 > [[ 0 -eq 1 ]] | |
+ /scripts/cli : __rvm_parse_args() 707 > [[ -n '' ]] | |
+ /scripts/cli : __rvm_parse_args() 19 > [[ -n reinstall ]] | |
+ /scripts/cli : __rvm_parse_args() 21 > rvm_token=reinstall |
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
$ rvm --trace reinstall 1.8.7 --arch i386 | |
+ [[ -n '' ]] | |
+ export 'PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ /scripts/cli : __rvm_parse_args() 705 > [[ -z '' ]] | |
+ /scripts/cli : __rvm_parse_args() 705 > [[ -n '' ]] | |
+ /scripts/cli : __rvm_parse_args() 707 > [[ 0 -eq 1 ]] | |
+ /scripts/cli : __rvm_parse_args() 707 > [[ -n '' ]] | |
+ /scripts/cli : __rvm_parse_args() 19 > [[ -n reinstall ]] | |
+ /scripts/cli : __rvm_parse_args() 21 > rvm_token=reinstall |
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
0 [ ~ ] $ rvm get head | |
Original installed RVM version: | |
rvm 1.9.2 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/] | |
remote: Counting objects: 326, done. | |
remote: Compressing objects: 100% (266/266), done. | |
remote: Total 326 (delta 24), reused 177 (delta 19) | |
Receiving objects: 100% (326/326), 802.32 KiB | 128 KiB/s, 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
Last login: Thu Nov 3 00:54:10 on ttys001 | |
$ rvm list | |
rvm rubies | |
jruby-1.6.5 [ i386 ] | |
=> ruby-1.9.2-p290 [ i386 ] | |
$ ruby -e 'puts "Hello"' | |
Hello |