Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Claudio Costa streamer45

🏠
Working from home
  • Italy
View GitHub Profile
View gist:8693402
graph info:
vertex 0x2386060 of type BUS
vertex 0x2386170 of type BUS
vertex 0x2386280 of type BUS
we have an edge from a BUS 0x2386060 to BUS 0x2386280
we have an edge from a BUS 0x2386060 to BUS 0x2386170
we have an edge from a BUS 0x2386170 to BUS 0x2386280
Found 3 deps for 0x2386280
0x2386060
View gist:8727876
int kr_compositor_control_easers_to_offset(int member_type) {
switch (member_type) {
case KR_X:
return offsetof(struct kr_compositor_control_easers,x);
case KR_Y:
return offsetof(struct kr_compositor_control_easers,y);
case KR_Z:
return offsetof(struct kr_compositor_control_easers,z);
case KR_WIDTH:
return offsetof(struct kr_compositor_control_easers,w);
View gist:8741175
- alsa: '{"title" : "alsa","type" : "object","properties" : {"card" : {"type" : "number" },"name" : {"type" : "string" ,"maxLength" : 39 },"required" : ["card","name"]}}'
alsa_path: '{"title" : "alsa_path","type" : "object","properties" : {"card_num" : {"type" : "number" },"required" : ["card_num"]}}'
app_server: '{"title" : "app_server","type" : "object","properties" : {"clients" : {"type" : "number" },"uptime" : {"type" : "number" },"required" : ["clients","uptime"]}}'
router: '{"title" : "router","type" : "object","properties" : {"maps" : {"type" : "number" },"required" : ["maps"]}}'
router_map: '{"title" : "router_map","type" : "object","properties" : {"endpoints" : {"type" : "number" },"required" : ["endpoints"]}}'
sprite: '{"title" : "sprite","type" : "object","properties" : {"filename" : {"type" : "string" ,"maxLength" : 255 },"rate" : {"type" : "number" },"controls" : {"type" : "object","properties" : {"x" : {"type" : "number" },"y" : {"type" : "number" },"z" : {"type" : "number" },"w" : {"type"
View gist:8769058
../lib/krad_transponder/gen/krad_transponder_common_helpers.h:48:1: error: unknown type name ‘kr_var’
kr_var *kr_transponder_info_patch_patch(kr_transponder_info_patch *patch,kr_path *path);
^
../lib/krad_transponder/gen/krad_transponder_common_helpers.h:48:74: error: unknown type name ‘kr_path’
kr_var *kr_transponder_info_patch_patch(kr_transponder_info_patch *patch,kr_path *path);
^
In file included from ../lib/krad_transponder/krad_transponder_common.h:329:0,
from ../lib/krad_radio/krad_radio_common.h:7,
from ../lib/krad_radio/krad_radio_payload.h:4,
from krad_app/krad_app_common.h:11,
View git.diff
diff --git a/lib/krad_compositor/krad_compositor_path.c b/lib/krad_compositor/krad_compositor_path.c
index 14997dc..c81b24f 100644
--- a/lib/krad_compositor/krad_compositor_path.c
+++ b/lib/krad_compositor/krad_compositor_path.c
@@ -39,51 +39,6 @@ kr_compositor_path_type path_type_get(kr_compositor_path *path) {
return path->info.type;
}
-/*void controls_tick(kr_compositor_controls *c, path_control_easers *e) {
- if (kr_easer_active(&e->x)) {
View gist:9123107
App Server: Client disconnected
Compositor: frame submitted source port
convert 0
Compositor: frame submitted source port
Compositor: frame submitted source port
Compositor: frame submitted source port
Compositor: frame submitted source port
Compositor: frame submitted source port
Compositor: frame submitted source port
Compositor: frame submitted source port
View gist:0aef54dc77f0d6aba9af
**Example request**:
GET /containers/4fa6e0f0c678/top HTTP/1.1
**Example response**:
HTTP/1.1 200 OK
Content-Type: application/json
{
@streamer45
streamer45 / hw.py
Created Dec 27, 2012
Python HelloWorld for Krad!
View hw.py
#!/usr/bin/env python
# Hello Krad World Video in Python
from time import sleep
from kradradio_client import Kradradio
# Station name
station_name = "hellokrad"
station = Kradradio(station_name)
# Video resolution and frame rate
@streamer45
streamer45 / hw.py
Created Dec 27, 2012
HelloWorld for Krad in Python!
View hw.py
#!/usr/bin/env python
# Hello Krad World Video in Python
from time import sleep
from kradradio_client import Kradradio
# Station name
station_name = "hellokrad"
station = Kradradio(station_name)
# Video resolution and frame rate
View krad_radio_client.py
from time import sleep
import shlex
import subprocess
KRAD = "krad_radio"
class Kradradio:
def __init__(self, sysname):
self.sysname = sysname
def cmd(self, cmd):