-
Installation notes for Ubuntu Desktop LTS 12.04 Precise.
-
NOTE: All code is installed to ~/Developer/Work
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
void testApp::setSequences(){ | |
int pixelThreshold = 20; //percent similarity each individual pixel needs to pass | |
int imgPercentNeededToPass = 80; //percent of pixels that must pass threshold test | |
int checkEveryIncrement = 10; //number of pixels before next pixel comparison | |
int maxPixDiffToPass = (pixelThreshold*255)/100; //converts percent to a max pixel change value | |
vector<long> cutFrames; | |
myVideo.setFrame(1); | |
ofPixelsRef prevPixelsRef = myVideo.getPixelsRef(); | |
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 genId(len) { | |
var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ23456789'.split(''); | |
var id = ''; | |
for (var i = 0; i < len; i++) { | |
var index = Math.floor(Math.random() * chars.length); | |
id += chars[index]; | |
} |
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
float width = ofGetWidth(); | |
float height = ofGetHeight(); | |
float aspect = width / height; | |
// horizontal black bars | |
if (aspect <= player.getWidth()/player.getHeight()) { | |
float vHeight = (player.getHeight() * width) / player.getWidth(); | |
player.draw(0, | |
(height - vHeight) * 0.5, | |
width, |
#Making Persistent Live USBs is Harder Than it Should Be 9/14/2016
What used to be easy with Ubuntu's Starup Disk Creator (usb-creator-common
+ usb-creator-gtk
)
is now a lot harder than it should be on UEFI systems. Some version before v0.2.66 have a bug that allows you to specify
live usb persistence, however it doesn't actually work. Versions > 0.3 have removed this functionality completely (wtf!).
An alternative that worked for me was using mkusb
from an installed Ubuntu distro (I could not get this to work creating live USBs from live USBs).
Steps on Ubuntu 16.06 include:
Use GitHub API to batch download .sch
files.
- GitHub API requires you to limit searches to users, orgs, or repos. So we first have to get a list of repos that use the KiCad or EAGLE "languages".
https://api.github.com/search/repositories?q=language:kicad&per_page=100&page=1
https://api.github.com/search/repositories?q=language:eagle&per_page=100&page=1
I hereby claim:
- I am brannondorsey on github.
- I am brannondorsey (https://keybase.io/brannondorsey) on keybase.
- I have a public key whose fingerprint is 1A0F 6E80 D1CC 2F45 6EB9 1FD7 8E0D 2D73 A603 FE9A
To claim this, I am signing this object:
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
// copy and paste the following snippet into the developer's console | |
function getSelected() { | |
query_selector = '.label.style-scope.vz-projector-inspector-panel.style' | |
+ '-scope.vz-projector-inspector-panel.style-scope.vz-projector' | |
+ '-inspector-panel.style-scope.vz-projector-inspector-panel' | |
items = document.querySelectorAll(query_selector) | |
names = [] | |
items.forEach(item => { | |
if (item.childNodes[0].textContent) { |
- Download and install Docker: MacOS | Windows | Linux
- Clone the ml4music-workshop repo
git clone https://github.com/brannondorsey/ml4music-workshop
- Attach to the workshop docker container
cd ml4music-workshop
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
# Copyright (c) 2017 Brannon Dorsey | |
# 2017 Branger Briz, Inc | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |