Skip to content

Instantly share code, notes, and snippets.

Avatar

Simon Collins simoncollins

  • Brisbane, Australia
View GitHub Profile
@simoncollins
simoncollins / README.md
Last active Aug 29, 2015
Sending messages to Tessel
View README.md

This shows how to send messages to a connected Tessel over USB and how to log messages that the Tessel writes to console.log().

You'll need to do a tessel push tessel-code.js to push the script to the Tessel first as it seems you can only have one connection at a time (unless there's another way I'm not aware of).

Then run node host-code.js to send the message to Tessel. You should see Tessel log back the message it received.

@simoncollins
simoncollins / hello1.js
Last active Dec 29, 2015
Testing Testing
View hello1.js
alert('Hello Tester');
@simoncollins
simoncollins / gist:6034200
Last active Dec 19, 2015
An introduction to the internals of a Git repository by building up a basic initial commit using Git's lower level plumbing commands.
View gist:6034200
# References:
# http://git-scm.com/book/ch1-3.html
# http://git-scm.com/book/en/Git-Internals
# Create a directory for our repository
mkdir test
# Initialise an empty git repository in the directory
git init