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 'joyau/init' | |
| Joyau.init :gfx | |
| Joyau.draw { Joyau.drawText(0, 0, "Hello world!") } while Joyau.mayPlay | |
| Joyau.stop |
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
| /* | |
| Inits the wlan connection. You have to call this before calling the socket | |
| function. | |
| */ | |
| VALUE Wlan_init(VALUE self) { | |
| int err; | |
| err = sceUtilityLoadNetModule(PSP_NET_MODULE_COMMON); | |
| if (err < 0) | |
| rb_raise(rb_eRuntimeError, "Failled to load net module"); |
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 'fileutils' | |
| file "ruby" do | |
| FileUtils.ln_s '../ruby', 'ruby' | |
| end | |
| file "Joyau.prx" do | |
| FileUtils.ln_s '../Joyau.prx', 'Joyau.prx' | |
| 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
| require 'joyau/init' | |
| require 'joyau/color' | |
| require 'joyau/buffer_library' | |
| require 'enumerator' | |
| def draw_circle(x, y, radius, line_number, | |
| color, border_color, line_color, line_color2 = line_color) | |
| perimeter = (2 * Math::PI * radius).to_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
| static VALUE | |
| ossl_start_ssl(VALUE self, int (*func)()) | |
| { | |
| SSL *ssl; | |
| OpenFile *fptr; | |
| int ret; | |
| Data_Get_Struct(self, SSL, ssl); | |
| GetOpenFile(ossl_ssl_get_io(self), fptr); | |
| for(;;){ |
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
| VALUE Wlan_init(VALUE self) { | |
| int err; | |
| sceUtilityLoadNetModule(PSP_NET_MODULE_COMMON); | |
| sceUtilityLoadNetModule(PSP_NET_MODULE_INET); | |
| sceUtilityLoadNetModule(PSP_NET_MODULE_PARSEURI); | |
| sceUtilityLoadNetModule(PSP_NET_MODULE_PARSEHTTP); | |
| sceUtilityLoadNetModule(PSP_NET_MODULE_HTTP); | |
| sceUtilityLoadNetModule(PSP_NET_MODULE_SSL); |
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
| VALUE Wlan_connect(VALUE self, VALUE config, VALUE timeout) { | |
| if (sceNetApctlConnect(FIX2INT(config))) | |
| rb_raise(rb_eRuntimeError, "Failled to connect to acces point %d", | |
| FIX2INT(config)); | |
| time_t startTime, currTime; | |
| time(&startTime); | |
| int last_state = -1; |
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
| module IRB | |
| # Simple hack, showing the evaluated object | |
| # (we don't want to send the whole object through | |
| # our socket) | |
| class Evaluation | |
| def initialize(evaluation) | |
| @eval = evaluation | |
| end | |
| def inspect |
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 Module | |
| class Overloader | |
| EVERYTHING = Object.new | |
| class << (ANYTHING = Object.new) | |
| def ===(object); true; end | |
| end | |
| def initialize | |
| @functions = {} |
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
| user "FishFindus", "FishFindus" | |
| exit_msg ":)" | |
| hl_regexps /fish/i | |
| require 'scripts/alias' | |
| require 'scripts/last_nicks' | |
| access_id 2 |