Skip to content

Instantly share code, notes, and snippets.

@scheib
scheib / puck-js-blinky-lights.js
Created October 24, 2017 22:52
puck.js program to blink lights
function setLed(n) {
LED1.write(n === 1);
LED2.write(n === 2);
LED3.write(n === 3);
}
function blinkCount(n) {
if (n === 0) {
n = 5;
}
@scheib
scheib / background.js
Created November 28, 2012 22:49
chrome-app-onload-focus
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('window.html');
});
@scheib
scheib / javascript-keyboard-handler.html
Created February 18, 2011 21:39
A simple javascript keyboard handler tracking button state.
<!DOCTYPE html>
<!-- Simple keyboard state handler, Vincent Scheib. -->
<!-- Adapted from http://www.cryer.co.uk/resources/javascript/script20_respond_to_keypress.htm -->
<html><body>
<table border="1" cellspacing="0">
<tbody><tr>
<th>KeyDown</th>
<th>KeyUp</th>
<th>KeyPress</th>
</tr>
Imports EnvDTE
Imports System
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.Collections.Generic
'------------------------------------------------------------------------------
'FILE DESCRIPTION: scheib.vb Vincent Scheib's macros
'------------------------------------------------------------------------------
@echo off
call :GOSUB__IS_A_DIR %1
if errorlevel 1 goto ERROR_not_found
set path_backup=%path%
set path=%1;%path%
echo Updated path. Backed up old path to path_backup.
goto END
#!/bin/sh
# Use BeyondCompare as difftool for git in cygwin.
# git config --global difftool.bc3.cmd "beyondcompare-diff.sh \"\$LOCAL\" \"\$REMOTE\""
# git difftool -t bc3 branch1..branch2
# Reference: http://www.tldp.org/LDP/abs/abs-guide.pdf
library=githelperfunctions.sh
#[ -f $library ] && . $library
test2