Skip to content

Instantly share code, notes, and snippets.

View karlstolley's full-sized avatar

Karl Stolley karlstolley

View GitHub Profile

Version Control: Command-line Git Installation

Be sure to install Git version 2.30.0 or higher.

MacOS/OS X Installation

A lot of developer technologies require XCode’s command-line tools, but they are useful in their own right. To install them, you’ll need to pull up the Terminal app on your Mac. The easiest way to do this is through Spotlight Search: click the magnifying glass in the upper right-hand corner of your Mac, and start typing Terminal; click the result that appears labeled as an Application.

You’ll have a small white window that pops up, with a line that most likely has the name of your computer followed by a colon, tilde, and dollar-sign, e.g., janes-mac:~ $. There’ll also be a cursor, which may or may not blink.

@karlstolley
karlstolley / chrome-binary-data.js
Created October 12, 2021 01:37
RTC 2021 Code Examples
// Create a data channel for exchanging
// feature-detection information. Here,
// just the default `binaryType` on the
// data channel itself:
function addFeaturesChannel(peer) {
peer.featuresChannel =
peer.connection.createDataChannel('features',
{ negotiated: true, id: 60 });
peer.featuresChannel.onopen = function(event) {
@karlstolley
karlstolley / commented.pre-commit
Last active April 20, 2021 19:55
Script for running tests before a Git Commit
#! /usr/bin/env sh
# This basic file was cribbed liberally from the post at
# https://codeinthehole.com/tips/tips-for-using-a-git-pre-commit-hook/
# but the Git commands have been updated for current best practices.
# Sanity checker. Alerts to STDOUT that the pre-commit hook is about to run.
# (uncomment to use)
# echo "Running the pre-commit hook..."
# Stash any unstaged changes so that they don't interefere with the test suite
@karlstolley
karlstolley / install.sh
Last active February 26, 2020 21:08
Basic unstaged-file friendly pre-commit script
ln -s ../../scripts/pre-commit.sh ../.git/hooks/pre-commit
[
{
"dateutc": 1580328600000,
"tempinf": 68,
"tempf": 33.3,
"humidityin": 35,
"humidity": 65,
"windspeedmph": 0,
"windgustmph": 0,
"maxdailygust": 34.9,
@karlstolley
karlstolley / setup.md
Created May 15, 2018 17:09
Summer API Technology Setup

If you run into any problems or have any questions about these instructions, ping Prof. Stolley on Basecamp or post to the chat room -- if you're getting error messages, take a screenshot or write down the exact wording of the error.

1. Browser: Firefox Developer Edition

Available for all platforms (Mac, Windows, Linux) at https://www.mozilla.org/en-US/firefox/developer/ Download & install like any other software.

2. Editor: Atom.io

If you don't yet have a favorite text editor that is highly capable of syntax highlighting HTML, CSS, and Javascript, give Atom a try. Available for all platforms at https://atom.io Download & install like any other software.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDw9k7eTc5mSEEc87KO7V8OMGNurkl8lcge78eglNcZUegUJ9u8wOIjxXvn8d8Wjg/uYsBnb+JWxlLQQE7jf2aPzkr8iwuMQrkjoaLm6S/7z/zLyYzlS0yv+Qom/9kHjtpMMk6RSCq8wbeJymx0FHxHk9/0FCuQgkN/8AJUmoc/gtWcHP3DRGBV4brDH3ghIfbiDJfIT/UfGiSE85XRt9rZZjzAlcLwWIELjZ3uxe/VuAAbfvxRQ9vApCKPgY2yKBL+Ki+gPHxwwgx4/8N+XYHiJ4DdDquGvQsuKSTwV4QzR0RuID7AQdfnaKS/kDvTTg8Mkby/egR7aVsf0aVscOtEEUR95Qkg9UxFFvNY/aR/RLwFb+fUFJr1nTdzkiZ9K8uyAVM58TktAbAaIO3tL58vvIB0oQUGbbutlTN9yiHUMSH9uxWORiOvoCUDmeDuScWtn8OfDtW08W0WZz/K1tUArxi0HWYSmZ5Y7qM5gPpsyFNPsWq3X78Axh3pdRE939Clevq+swnotdSkXmlfFSrC3Jz7Whk9dYDZxmuliFHnuRsLXhgOrI3D+S7LOJCffaxoWCCVhwfKeZFRlYEBL36+Dzw5BFRm7Poo/NUZtWdIddymU7nKWffEriIFNxPw01NgSQFBwL50+sd523oauMjcKzDMLolzISCxqZthX08mbw== karl.stolley+vico@gmail.com
@karlstolley
karlstolley / agenda.md
Last active March 14, 2017 15:40
Workshop MW.08: Foundations in Programming (CCCC 2017)

Agenda

9:00a-12:30p

This is the general order of business for the morning. We'll start with basic values in JavaScript, and how they are stored in variables. We'll also look at more complex ways of storing values before turning to basic operators. With that in hand, we'll be able to work our way up to statements and functions, which are the core building-blocks to programming. All of this is just a plan. We can move in different directions based on particpant interest.

We'll use the following technology:

Keybase proof

I hereby claim:

  • I am karlstolley on github.
  • I am karlstolley (https://keybase.io/karlstolley) on keybase.
  • I have a public key whose fingerprint is B2FA 005E 1159 DFC8 750B E005 A9BE DF11 854D 4903

To claim this, I am signing this object:

@karlstolley
karlstolley / software-list.md
Last active November 17, 2015 20:54
Temporary home for Gewgaws Lab/LLC Software List

All Platforms (Mac/Win/Linux)

  • Audacity
  • Gephi (currently will not run; JRE issue, need to talk to Libby H.)
  • Firefox
  • Chrome

Mac OS X

  • iLife (all)
  • iWork (all)
  • TextWrangler