Skip to content

Instantly share code, notes, and snippets.

View yrashk's full-sized avatar
🎯
Being productive

Yurii Rashkovskii yrashk

🎯
Being productive
View GitHub Profile

Keybase proof

I hereby claim:

  • I am yrashk on github.
  • I am yrashk (https://keybase.io/yrashk) on keybase.
  • I have a public key whose fingerprint is 7AE1 96E3 F604 D870 22EF 7B70 B23A 6D8C 00A9 65A7

To claim this, I am signing this object:

$ ./gitchain Info | json_pp
{
"Mining" : {
"Miners" : {
"954aba53482f0a27f33953d83cb08e629facc4c836c3bb7daa54b42bc52689ac" : {
"StartTime" : "2014-05-15T10:30:29.189687628+08:00"
},
"557ca23e1ce37303c71797829096d0a42bb5b07bc2751f76d0d61da37e00a7c4" : {
"StartTime" : "2014-05-15T10:30:27.59290694+08:00"
},
func TestErr(t *testing.T) {
passed := false
handled := false
err.Handle("this kind of failure", func(e error) {
handled = true
}).
Handle("that kind of failure", func(e error) {
}).
Run(func(h err.H) {
v := h(err.Ignore)(exampleFunction())
Verifying that +yrashk is my Bitcoin username. You can send me #bitcoin here: https://onename.io/yrashk
id-2:youhelp(master) $ rake spec
(in /Users/yrashk/Projects/SecondLife/youhelp)
Loading init file from /Users/yrashk/Projects/SecondLife/youhelp/config/init.rb
Loading /Users/yrashk/Projects/SecondLife/youhelp/config/environments/development.rb
~ Loaded DEVELOPMENT Environment...
~ loading gem 'merb_helpers' ...
~ loading gem 'uuidtools' ...
~ loading gem 'merb_activerecord' ...
~ loading gem 'activerecord' ...
id-2:youhelp(master) $
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Parent pid: 14091
~ Compiling routes...
~ Activating slice 'MerbAuthSlicePassword' ...
#! /usr/bin/env ruby
def print_help
puts %{
Generates database migration
Usage:
./script/generate_db_migration add_some_columns
<?
abstract class AbstractParent {
function __construct($param) { print_r($param); }
public static function test() { return new self(1234); }
}
diff --git a/lib/compiler/src/sys_expand_pmod.erl b/lib/compiler/src/sys_expand_pmod.erl
index 24650a5..f7c22ec 100644
--- a/lib/compiler/src/sys_expand_pmod.erl
+++ b/lib/compiler/src/sys_expand_pmod.erl
@@ -87,8 +87,22 @@ function(Name, Arity, Clauses0, St) ->
clauses([C|Cs],St) ->
{clause,L,H,G,B} = clause(C,St),
+ NoBaseParameters = case basep(St#pmod.parameters) of true -> tl(St#pmod.parameters); false -> St#pmod.parameters end,
T = {tuple,L,[{var,L,V} || V <- ['_'|St#pmod.parameters]]},