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
/trigger add add_unread_marker print "" "${buffer.full_name} != ${env:urm_buffer} && ${buffer.short_name} =~ ^# && ${tg_displayed}" "" "/command -buffer ${buffer[${tg_signal_data}].full_name} * buffer set short_name 💬${channel}" | |
/trigger add del_unread_marker signal "buffer_switch" "${buffer.short_name} =~ ^💬" "" "/command -buffer ${buffer[${tg_signal_data}].full_name} * buffer set short_name ${channel}" | |
/trigger add set_unread_marker_env signal "buffer_switch" "" "" "/mute /set env urm_buffer ${buffer[${tg_signal_data}].full_name}" | |
/set weechat.look.buffer_notify_default highlight |
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 "DigiJoystick.h" | |
#define DAT 0 | |
#define PS 1 | |
#define CLK 2 | |
#define PULSE_TIME 3 | |
char buf[8] = { | |
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, |
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
import fcntl, socket, struct | |
import RPi.GPIO as GPIO | |
def get_mac(interface): | |
try: | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
info = fcntl.ioctl(s.fileno(), 0x8927, struct.pack('256s', interface[:15])) | |
return ':'.join(['%02x' % ord(char) for char in info[18:24]]) | |
except(IOError): |
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
#!/usr/bin/env python3.2 | |
import subprocess, re | |
matchers = { | |
'../scripts/public-add': re.compile('[AM]\tpublic/[\w.]'), | |
'../scripts/public-del': re.compile('D\tpublic/[\w.]'), | |
} | |
for line in subprocess.check_output(["git", "show", "--name-status"]).decode().split('\n')[4:-1]: |
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
<div id="content"> | |
$if(revision)$ | |
<h2 class="revision">Revision $revision$</h2> | |
$endif$ | |
<h1 class="pageTitle"><a href="$base$$pageUrl$">$pagetitle$</a></h1> | |
$if(messages)$ | |
$messages()$ | |
$endif$ | |
$content$ | |
<script type="text/javascript"> |