This file contains 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
// Trim Mastodon RSS feed and add a reference to the original status URL | |
// This needs the Pro+ feature "Filter Code" blocks on IFTTT | |
let status_text = Feed.newFeedItem.EntryContent; | |
let status_url = Feed.newFeedItem.EntryUrl; | |
const tweet_max_length = 280; | |
// reference to original mastodon post | |
let footer = "\n\n(from ".concat(status_url).concat(")"); |
This file contains 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
C:\ti\ccsv8\ccs_base\common\uscif\xds110>xdsdfu.exe -e | |
USB Device Firmware Upgrade Utility | |
Copyright (c) 2008-2018 Texas Instruments Incorporated. All rights reserved. | |
Scanning USB buses for supported XDS110 devices... | |
<<<< Device 0 >>>> |
This file contains 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 | |
# znp-uart-test | |
# | |
# Use this script as a sanity check after you burn the ZNP coordinator | |
# firmware on your zzh stick. | |
# | |
# !! Before you run this script, make sure you flash the | |
# latest Z-Stack Coordinator firmware on your zzh stick. | |
# |
This file contains 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
using System; | |
using System.Management; | |
namespace WMIDeviceChangeDetect | |
{ | |
public class WMIDeviceChangeDetect | |
{ | |
private static void HandleEvent(object sender, EventArrivedEventArgs e) | |
{ |
This file contains 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
$ ./enumerate_devices | |
+ usb-1-1-4-3@0 045e:07a5 (hid) | |
- device node: /dev/hidraw1 | |
- manufacturer: Microsoft | |
- product: Microsoft® 2.4GHz Transceiver v9.0 | |
+ usb-1-1-4-3@1 045e:07a5 (hid) | |
- device node: /dev/hidraw2 | |
- manufacturer: Microsoft | |
- product: Microsoft® 2.4GHz Transceiver v9.0 | |
+ usb-1-1-4-3@2 045e:07a5 (hid) |
This file contains 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
#!/bin/bash | |
TWFR_SCREEN=/dev/fb0 | |
TWFR_USER=shibesbot | |
TWFR_ROTATE=180 # Comment this out if rotation is not necessary | |
# Grab the latest photo from timeline | |
twphotos -u $TWFR_USER -i -n 1 | grep "No new" | |
if [ $? == 0 ]; then | |
echo "no new photo" |
This file contains 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 sys | |
from xml.dom import minidom | |
def main(): | |
print "Opening " + sys.argv[1] | |
xmldoc = minidom.parse(sys.argv[1]) | |
rects = xmldoc.getElementsByTagName('rectangle') | |
print "Found " + str(len(rects)) + " rectangles" | |
This file contains 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
ESDK=${EPIPHANY_HOME} | |
ELIBS=${ESDK}/tools/host/lib | |
EINCS=${ESDK}/tools/host/include | |
ELDF=${ESDK}/bsps/current/fast.ldf # Modify this for different linker options | |
EHDF=${EPIPHANY_HDF} | |
# Modify this to suit the name of your application. | |
# Host app should be: $APP.c and device app: e_$APP.c | |
APP=hello_world |
This file contains 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
-module(ale_halloween). | |
-export([start/0]). | |
init() -> | |
application:start(gproc), | |
gpio:start_link({4, output}), | |
gpio:start_link({17, output}), | |
gpio:start_link({18, output}), | |
gpio:start_link({27, output}), | |
gpio:start_link({22, output}), |
This file contains 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
CFLAGS=-Wall -pedantic | |
SRC=$(wildcard *.c) | |
OBJ=$(SRC:.c=.o) | |
BIN=$(SRC:.c=) | |
all: $(BIN) | |
clean: | |
$(RM) $(OBJ) $(BIN) |
NewerOlder