Skip to content

Instantly share code, notes, and snippets.

View lmccart's full-sized avatar
🍊

Lauren Lee McCarthy lmccart

🍊
View GitHub Profile
@brysonian
brysonian / Mounting Raspberry Pi Drive via Vagrant.md
Created February 24, 2017 08:25
Mounting Raspberry Pi Drive via Vagrant

#Mounting Raspberry Pi Drive via Vagrant

Install Vagrant

Find instructions here Vagrant. Probably not a bad idea to run the getting started and make sure it works.

Identify your USB device

With your pi drive mounted (e.g. via a microsd reader) run VBoxManage list usbhost. This will print a list of UDB devices available to VirtualBox. Look for one that matches your device, this will probably have a manufacturer name of "Generic". Once you find it, note the VendorId and ProductId.

Configure Your Vagrant Project

Make a new directory and run vagrant init. This will create a Vagrantfile. Open this in a text editor and replace everything with this:

#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd1(12, 11, 16, 17, 18, 19);
LiquidCrystal lcd2(12, 5, 6, 7, 8, 9);
LiquidCrystal lcds[2] = { lcd1, lcd2 };
int leds[2] = { 2, 10 };
// wedding
@kylemcdonald
kylemcdonald / magnify-background.js
Created April 13, 2016 19:01
Full-page magnify sketch.
var speed = .0001;
var n = 30;
var grid = [];
function setup() {
createCanvas(windowWidth, windowHeight);
var spacing = min(width, height) / n;
for(var y = 0; y < height; y += spacing) {
for(var x = 0; x < width; x += spacing) {
grid.push(createVector(x, y));
@laziel
laziel / unlock.js
Created September 18, 2015 09:02
Unlock Web Audio in iOS 9 Safari
var ctx = null, usingWebAudio = true;
try {
if (typeof AudioContext !== 'undefined') {
ctx = new AudioContext();
} else if (typeof webkitAudioContext !== 'undefined') {
ctx = new webkitAudioContext();
} else {
usingWebAudio = false;
}
@shiffman
shiffman / recordinglist.md
Last active September 13, 2019 15:53
A list of ideas for #CodingRainbow Video topics: https://www.youtube.com/user/shiffman
@kylemcdonald
kylemcdonald / moods.md
Created March 4, 2015 22:16
List of moods sorted by a TSP using euclidean distance in word2vec space.

old rushed dashed squashed crushed smothered suffocated trapped rescued saved

@stefansundin
stefansundin / install-pre-push.sh
Last active June 9, 2024 13:02
Git pre-push hook to prevent force pushing the master/main branch.
#!/bin/bash
# This script will install a Git pre-push hook that prevents force pushing the master/main branch.
# There are three variants that I have built:
# - pre-push: prevents force-pushing to master/main.
# - pre-push-2: prevents force-pushing to master/main depending on the remote (you need to edit the file!).
# - pre-push-3: prevents any type of pushing to master/main.
# Set the desired version like this before proceeding:
# FILE=pre-push
# Single repo installation:
@kylemcdonald
kylemcdonald / BrowseCapture.scpt
Created June 25, 2014 23:40
Records video from your webcam whenever you are visiting a specific site.
global targetDomain
global folderName
-- options
set targetDomain to "dropcam.com"
set folderName to (path to desktop as text) & "Dropcam"
-- main code
global recordingFile
global newMovieRecording
@paulmillr
paulmillr / active.md
Last active November 8, 2024 13:04
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The list would not be updated for now. Don't write comments.

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:

githubUsers