View Makefile
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
.DEFAULT_GOAL := send_app | |
PORT=/dev/ttyS4 | |
PYBOARD=tools/pyboard.py | |
PYTHON=python3 | |
send_app: | |
$(PYTHON) $(PYBOARD) -d $(PORT) -f cp badge/*.py : |
View convert_pbm.py
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
# Convert image to bytes | |
#!/usr/bin/env python | |
import sys | |
import os | |
def main(): | |
if len(sys.argv) != 2: | |
usage() | |
return 2 |
View mini_darkroom.lua
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
require "keybow" | |
-- MACRO controls for darkroom Twitch. | |
-- SHIFT 0 (RED) | |
-- Middle Button : You awake... | |
-- Right Button : Because it's dark .. | |
-- SHIFT 1 (GREEN) | |
-- Middle Button : You go in a direction... |
View accel_demo.go
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
package main | |
import ( | |
"time" | |
"machine" | |
"image/color" | |
"tinygo.org/x/drivers/microbitmatrix" | |
"tinygo.org/x/drivers/mma8653" | |
) |
View NerdCodeVim.json
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
"vim.normalModeKeyBindings": [ | |
{ | |
"before": ["<leader>", "c", "c"], | |
"commands": [ | |
"editor.action.addCommentLine" | |
] | |
}, | |
{ | |
"before": ["<leader>", "c", "u"], |
View xml-curl.sh
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
curl -k -X POST -d @filename.xml -H "Content-Type: application/xml" URL |
View search_epub.sh
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
for file in Terry*.epub; do echo $file; unzip -p "$file" | egrep -no '(\w+\s+)+force(\s+\w+)+'; done |
View twitter_message.rb
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
require 'mechanize' | |
module CCCB::Core::TwitterMessage | |
extend Module::Requirements | |
TWITTER_REGEX = /twitter.com\/(?<name>[A-Za-z0-9_]*)\//i | |
needs :bot, :links |
View twitter_message.rb
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
require 'mechanize' | |
module CCCB::Core::TwitterMessage | |
extend Module::Requirements | |
TWITTER_REGEX = /twitter.com\/(?<name>[A-Za-z0-9_]*)\//i | |
needs :bot, :links |
View fk_checker.rb
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
require 'rexml/document' | |
edmx = File.read(ARGV.first) | |
doc = REXML::Document.new(edmx) | |
mapped = [] | |
constrained = [] | |
doc.elements.each('edmx:Edmx/edmx:Runtime/edmx:ConceptualModels/Schema/Association') do |ele| |
NewerOlder