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
#include <stdio.h> | |
#include <libusb.h> | |
#define MY_VID 0x1209 | |
#define MY_PID 0xb1c0 | |
int main() { | |
libusb_device **devs; | |
libusb_context *ctx = NULL; | |
int r; |
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
async def json_dump_stream(obj, write): | |
if obj is None: | |
await write("null") | |
elif isinstance(obj, str): | |
await write('"') | |
await write(obj) | |
await write('"') | |
elif isinstance(obj, bool): |
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
local event = require("event") | |
local counts = {} | |
while true do | |
_, _, _, tab = event.pull("beamer_transfers") | |
for k,v in pairs(tab) do | |
if counts[k] == nil then counts[k] = 0 end | |
counts[k] = counts[k] + v |
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
address = {"Aries", "Auriga", "Crater", "Andromeda", "Aquarius", "Leo Minor", "Point of Origin"} | |
c = require("component") | |
event = require("event") | |
os = require("os") | |
sg = c.stargate | |
print("Dialing") | |
for i,v in ipairs(address) do print(i,v) end | |
print() |