Skip to content

Instantly share code, notes, and snippets.

Patricio M. Ros pmros

Block or report user

Report or block pmros

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View oos_make_error_000
rock code:
handlerInstall: static func (irq: Int, handler: Func (Registers*)) {
irqRoutines[irq] = handler as Closure thunk
clang error:
src/devices/cpu/IRQ.ooc:58:5: error: used type 'lang_types__Closure' (aka
'struct _lang_types__Closure') where arithmetic or pointer type is
..._lang_array__Array_set(devices_cpu_IRQ__IRQ_class()->irqRoutines, irq, lang_types__Pointer, ((lang_types__Closure) (handler)).thunk)...
View gist:606916
patricio@patricio-pc:~/prog/oos$ gdb --symbols=oos.exe
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Para las instrucciones de informe de errores, vea:
pmros / gist:1020856
Created Jun 11, 2011
opal compile browser.rb > browser.js
View gist:1020856
self.m$puts("Hello, world! Running in the browser..");
"All code is generated to keep the same line as the original ruby";
self.m$puts(("This code is generated from line " + (8).m$to_s() + ", in file: " + __FILE__.m$to_s()));
pmros / gist:4177601
Created Nov 30, 2012
Sequel Model: undefined method exception
View gist:4177601
require 'sequel'
DB = Sequel.sqlite 'test'
class MyModel < Sequel::Model(:My_Table)
m = MyModel.first
m.columns #=> [:x_c1, :x_c2, :c3]
m.x_c1 #=> undefined method!!!
pmros /
Last active Nov 29, 2015
pamatcher demo

pamatcher is a pattern matching library for JavaScript iterators. Example of use in browser.

pmros / gist:5243781
Last active Dec 15, 2015
Bluetao closure sample
View gist:5243781
main: () => int
x:= 5
1.upto 3, (i: Integer) { i }
=> x.toint
pmros / gist:6254407
Created Aug 16, 2013
Error when I try to install lives from AUR.
View gist:6254407
asf_decoder.c:66:21: error: return type is an incomplete type
static enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag)
asf_decoder.c: In function 'ff_codec_get_id':
asf_decoder.c:71:7: warning: 'return' with a value, in function returning void [enabled by default]
return tags[i].id;
asf_decoder.c:74:5: warning: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
if( toupper((tag >> 0)&0xFF) == toupper((tags[i].tag >> 0)&0xFF)
pmros / index.js
Created Mar 25, 2016
requirebin sketch
View index.js
var event = require('value-event/event')
var listener = function (data) {
console.log('data', data)
var elem = document.getElementById('foo')
.addEventListener('click', event(listener, {
clicked: true
pmros /
Last active Aug 15, 2016
Submission app in Cycle JS (using a state store driver)
You can’t perform that action at this time.