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
function setLed(n) { | |
LED1.write(n === 1); | |
LED2.write(n === 2); | |
LED3.write(n === 3); | |
} | |
function blinkCount(n) { | |
if (n === 0) { | |
n = 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
chrome.app.runtime.onLaunched.addListener(function() { | |
chrome.app.window.create('window.html'); | |
}); |
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
<!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> |
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
Imports EnvDTE | |
Imports System | |
Imports System.Diagnostics | |
Imports System.Windows.Forms | |
Imports System.Collections.Generic | |
'------------------------------------------------------------------------------ | |
'FILE DESCRIPTION: scheib.vb Vincent Scheib's macros | |
'------------------------------------------------------------------------------ |
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
@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 |
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/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 |
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
test2 |