Skip to content

Instantly share code, notes, and snippets.

View fperrad's full-sized avatar

François Perrad fperrad

View GitHub Profile
@fperrad
fperrad / fibo.tcl
Last active March 29, 2024 10:42
picol
proc fib {x} {
if {<= $x 1} {
return 1
} else {
+ [fib [- $x 1]] [fib [- $x 2]]
}
}
puts [fib 20]
local record core
record Bus
userdata
call: function(self: Bus, service: string, object: string, interface: string, member: string, types: string, ...:any): boolean, any...
end
enum EnumBus
@fperrad
fperrad / h2_error_test.lua
Last active June 9, 2021 17:20
port of h2_error_spec.lua
require 'Test.Assertion' -- see https://framagit.org/fperrad/lua-testassertion
plan(43)
if debug then
diag("with debug")
else
diag("without debug")
end
const parameters in static function
diff --git a/src/lapi.c b/src/lapi.c
index 3e24781..871fad2 100644
--- a/src/lapi.c
+++ b/src/lapi.c
@@ -851,7 +851,7 @@ LUA_API void lua_seti (lua_State *L, int idx, lua_Integer n) {
}
diff -ru lib/Parse/Yapp/Grammar.pm lib/Parse/Yapp/Grammar.pm
--- lib/Parse/Yapp/Grammar.pm Sun Feb 11 16:29:31 2001
+++ lib/Parse/Yapp/Grammar.pm Fri Jun 1 18:28:28 2007
@@ -43,6 +43,20 @@
###########
# Methods #
###########
+###########################
+# Method To View Terminal #
+###########################