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
#!/bin/sh | |
var=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/' | sed 's/\./-/g' ) | |
wget -q --spider http://api.hackspace.ca/s/vhs/data/fpga/update?value=$var |
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
#Setup here: | |
#http://cihatkeser.com/servo-control-with-raspberry-pi-in-5-minutes-or-less/ | |
import os | |
import time | |
os.system('./servod') | |
def servoPosition(servoId, servoPos): |
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
#Author-Wayne Brill | |
#Description-Allows you to select a CSV (comma seperated values) file and then edits existing Attributes. Also allows you to write parameters to a file | |
import adsk.core, adsk.fusion, traceback | |
commandId = 'ParamsFromCSV' | |
workspaceToUse = 'FusionSolidEnvironment' | |
panelToUse = 'SolidModifyPanel' | |
# global set of event handlers to keep them referenced for the duration of the command |
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
outVar = 0 | |
while outVar <= 0xFFFFFFFF: | |
#print hex(outVar) | |
print '{:010x}'.format(outVar) | |
outVar = outVar + 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
# Makefile for libusbJava, a Java libusb wrapper | |
# Copyright (C) 2009-2014 ZTEX GmbH | |
# http://www.ztex.de | |
# | |
# This Makefile ia a part of the reorganized version of the libusbJava source tree | |
# with proper makefiles. (SVN version of Apr. 6, 2009). | |
# | |
# Please visit http://libusbjava.sourceforge.net for more information about the | |
# original project. |
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
@ECHO OFF | |
ECHO "%~1" | |
CD /d "%~dp1" | |
SET svgToEps="%ProgramFiles%\Inkscape\inkscape.exe" -f %~n1.svg -E %~n1.eps" | |
SET dxfToEps="%ProgramFiles%\Inkscape\inkscape.exe" -f %~n1.dxf -E %~n1.eps" | |
SET epsToAi="%ProgramFiles%\pstoedit\pstoedit.exe" -dt -f ps2ai "%~n1.eps" %~n1.ai | |
IF "%~x1"==".svg" ( | |
ECHO SVG | |
%svgToEps% | |
%epsToAi% |
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
def parseSQL(filename): | |
fd = open(filename, 'r') | |
sqlFile = fd.read() | |
fd.close() | |
memberCount = [] | |
keyholderCount = [] | |
friendCount = [] | |
cardCount = [] | |
otherCount = [] |
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/imx6sx_ai_m4/board.h b/imx6sx_sdb_m4/board.h | |
index 8801729..f259fb1 100644 | |
--- a/imx6sx_ai_m4/board.h | |
+++ b/imx6sx_sdb_m4/board.h | |
@@ -38,7 +38,7 @@ | |
#include "clock_freq.h" | |
/* The board name */ | |
-#define BOARD_NAME "IMX6SX_AI_M4" | |
+#define BOARD_NAME "IMX6SX_SDB_M4" |
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
// ==UserScript== | |
// @name Partsio | |
// @namespace This service is pretty great though, convince your boss to buy you a subscription | |
// @version 0.1 | |
// @description Remove trial modal dialog | |
// @author Jarrett | |
// @match http*://parts.io/* | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// ==/UserScript== |
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
from io import BytesIO | |
from time import sleep, time | |
import picamera | |
from PIL import Image | |
import imgcompare | |
from Adafruit_IO import Client, Feed | |
ADAFRUIT_IO_KEY = '' | |
ADAFRUIT_IO_USERNAME = 'jrainimo' |
OlderNewer