- Arduino
- The Handy Board
- Handyboard Hacker's Resource Guide
- [The Handy Cricket](http://www.handyboard.com/cricket" ADD_DATE="908235315" LAST_VISIT="935879243" LAST_MODIFIED="908235252)
- Blackfin Handyboard (in Development)
- OOPic: Object-Oriented Programmable Integrated Circuit
- Parallax BASIC Stamp Microcontrollers
- Sumo11 Robot Controller
- IntelliBrain Robot Controller
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 struct | |
import re | |
from collections import Counter | |
class DatPatterns: | |
def __init__(self, filepath): | |
self.filepath = filepath | |
self.content = None | |
def read_file(self): |
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
window.frames.document.querySelector('video').playbackRate=3; |
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
""" | |
OpenAI API Script | |
================= | |
This script allows you to interact with OpenAI's GPT-3.5 Turbo model. It appends a given first line to a text file, | |
then repeatedly queries OpenAI's API based on the last line in the text file and appends the response to the same file. | |
Requirements: | |
------------- | |
- OpenAI Python package: Install it using `pip install openai`. |
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 | |
version=$(curl -s https://portswigger.net/burp/releases | grep "Professional / Community" | head -n1 | grep -E "[0-9\.]+" -o) | |
if [[ -d ~/Applications/BurpSuite.app ]]; then | |
local_version=$(cat ~/Applications/BurpSuite.app/Contents/Resources/version.txt) | |
if [[ "$version" == "$local_version" ]]; then | |
echo "Latest version is $version - which is the same as the local" | |
exit 1 | |
fi |
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 copy | |
import fractions | |
def number_of_transients(matrix): | |
"""Get number of transients states. | |
Assume absorbing states follow transient states | |
without interlieveing.""" |
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
# Install Command-line tools as dependency for Homebrew | |
xcode-select --install # Sets the development directory path to /Library/Developer/CommandLineTools | |
# Install Homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Install Mas (command-line interface for Mac App Store) | |
brew install mas | |
# Search for Xcode showing only the first 5 results | |
mas search xcode | head -5 |
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
/* HTML to Microsoft Word Export | |
* This code demonstrates how to export an html element to Microsoft Word | |
* with CSS styles to set page orientation and paper size. | |
* Tested with Word 2010, 2013 and FireFox, Chrome, Opera, IE10-11 | |
* Fails in legacy browsers (IE<10) that lack window.Blob object | |
*/ | |
function saveDoc() { | |
if (!window.Blob) { | |
alert('Your legacy browser does not support this action.'); |
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 | |
# Author: http://crunchbang.org/forums/viewtopic.php?id=38748#p414992 | |
# m4bronto | |
# Chapter #0:0: start 0.000000, end 1290.013333 | |
# first _ _ start _ end | |
while [ $# -gt 0 ]; do | |
ffmpeg -i "$1" 2> tmp.txt |
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
/** | |
* Calculate the contrast of a color to determine the appropriate opposing text color. | |
* @author D. Condrey | |
* @param {string|object} - element background-color or element | |
* @return {string} | |
* white - if background is a dark shade color | |
* black - if background is a light shade color | |
*/ | |
define(function() { |
NewerOlder