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
| # -*- coding: utf-8 -*- | |
| require "observer" | |
| class Hero | |
| include Observable | |
| attr_accessor :hp | |
| def initialize |
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 "test/unit" | |
| class AnonModule < Module | |
| attr_reader :name | |
| def initialize(klass,name,&block) | |
| super(&block) | |
| @name = name | |
| @klass = klass |
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 "test/unit" | |
| require "turn/autorun" | |
| module Game | |
| class State | |
| attr_reader :name | |
| def initialize(name) | |
| @name = name | |
| #cs_init | |
| 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
| configure:20583: checking for Lua | |
| configure:20590: $PKG_CONFIG --exists --print-errors "lua >= 5.1" | |
| configure:20593: $? = 0 | |
| configure:20607: $PKG_CONFIG --exists --print-errors "lua >= 5.1" | |
| configure:20610: $? = 0 | |
| configure:20648: result: yes | |
| configure:20872: i686-pc-mingw32-gcc -E -I. -DCEGUI_LUA_VER=51 conftest.c | |
| conftest.c:57:33: fatal error: tolua++.h: No such file or directory | |
| #include <tolua++.h> | |
| ^ |
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
| (1008) [17:54:21 quintus@roma] ~ | |
| % ruby -v | |
| ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] | |
| (1009) [17:55:21 quintus@roma] ~ | |
| % gem -v | |
| 2.0.0 | |
| (1010) [17:55:22 quintus@roma] ~ | |
| % gem env | |
| RubyGems Environment: | |
| - RUBYGEMS VERSION: 2.0.0 |
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
| (1001) [17:51:12 quintus@roma] ~ | |
| % ruby -v | |
| ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] | |
| (1002) [17:51:16 quintus@roma] ~ | |
| % gem -v | |
| 2.0.0 | |
| (1003) [17:51:17 quintus@roma] ~ | |
| % gem env | |
| RubyGems Environment: | |
| - RUBYGEMS VERSION: 2.0.0 |
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
| # jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_13-b20 [linux-amd64] | |
| [12] pry(main)> str = "AA\xC3AA" | |
| => "AA\xC3AA" | |
| [13] pry(main)> str.encoding | |
| => #<Encoding:UTF-8> | |
| [14] pry(main)> str.force_encoding("BINARY") | |
| => "AA\xC3AA" | |
| [15] pry(main)> str.encode("UTF-8") | |
| Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-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
| /opt/rubies/rubinius/bin/rbx extconf.rb | |
| checking for -Wall option to compiler... yes | |
| checking for -Waggregate-return option to compiler... yes | |
| checking for -Wcast-align option to compiler... yes | |
| checking for -Wextra option to compiler... yes | |
| checking for -Wformat=2 option to compiler... yes | |
| checking for -Winit-self option to compiler... yes | |
| checking for -Wlarger-than-65500 option to compiler... yes | |
| checking for -Wmissing-declarations option to compiler... yes | |
| checking for -Wmissing-format-attribute option to compiler... 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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <fcntl.h> | |
| #include <git2.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| git_repository* p_repo; | |
| git_reference* p_ref; | |
| git_reference* p_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
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| require "pp" | |
| require "json" | |
| require "socket" | |
| module I3 | |
| class Error | |
| end |