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
(function() { | |
setup() | |
return {name:"tls"} | |
}) | |
var alert_channel = "#pdxbots" | |
var watchlist = {} | |
var key = "tls:watchlist" | |
function setup() { |
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
(function() { | |
return { | |
name: "kluster" | |
} | |
}) | |
var proxpairs = {} | |
function go(msg) { | |
if(msg.method == "irc.privmsg") { |
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
diff --git a/src/main.zig b/src/main.zig | |
index d651eb9..93bb0ea 100644 | |
--- a/src/main.zig | |
+++ b/src/main.zig | |
@@ -230,7 +230,7 @@ fn netback(command: *thread.Command) void { | |
for(tree.root.Array.toSlice()) |jsonValue| { | |
const item = jsonValue.Object; | |
var toot = allocator.create(toot_lib.Type) catch unreachable; | |
- toot.init(item, allocator); | |
+ toot = toot_lib.Type.init(item, allocator); |
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
/* gdk/gdkevents.h */ | |
struct _GdkEventTouch | |
{ | |
GdkEventType type; | |
GdkWindow *window; | |
gint8 send_event; | |
guint32 time; | |
gdouble x; | |
gdouble y; | |
gdouble *axes; |
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
/* https://github.com/cirosantilli/x86-bare-metal-examples#bios-hello-world */ | |
#include "common.h" | |
BEGIN | |
DBG | |
mov $msg, %si | |
mov $0x0e, %ah | |
loop: | |
lodsb | |
or %al, %al |
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
(function() { | |
return {name:"911"} | |
}) | |
var alert_channel = '#pdxbots' | |
var reports | |
var reportdate | |
function go(msg) { | |
if (msg.method == "clocktower" && (new Date(Date.parse(msg.params.time))).getMinutes() == 15) { |
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
(function() { | |
return {name: "russelltemp"} | |
}) | |
function go(msg){ | |
if (msg.method == "irc.privmsg") { | |
var epoch_match = /^!russelltemp(\s+(\S+))$/.exec(msg.params.message) | |
if(epoch_match) { | |
var sensor_id = epoch_match[2] | |
var rows = russelltemp(sensor_id) |
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
(function() { | |
// descriptor | |
return {name:"osm"} | |
}) | |
// osm json | |
//{"bearing":345.9410965462545,"distance":355.0966239302687, | |
// "node":{"id":1963188104,"lat":45.5233261,"lon":-122.6584695,"tags":{... | |
function go(msg) { |
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
(function() { | |
return {name:"shift2bikes"} | |
}) | |
function go(msg) { | |
if (msg.method == "irc.privmsg") { | |
var cmd = /^!shift2bikes(\s+(.*))?/.exec(msg.params.message) | |
if(cmd) { | |
var now = new Date() | |
var rides = shiftGet(now) |
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
donp@jewel zig $ git diff | |
diff --git a/build.zig b/build.zig | |
index dd8c6fe..3411e9d 100644 | |
--- a/build.zig | |
+++ b/build.zig | |
@@ -1,3 +1,4 @@ | |
+const builtin = @import("builtin"); | |
const Builder = @import("std").build.Builder; | |
pub fn build(b: *Builder) void { |