Skip to content

Instantly share code, notes, and snippets.

View clayton-perszyk's full-sized avatar

clayton perszyk clayton-perszyk

View GitHub Profile

Summary

Self-motivated individual who loves building software and learning new technologies for both fun and practical purposes. Desire to build products that people not only use, but enjoy using.

Projects

Midi-Synth

A browser-based MIDI synthesizer. The synthesizer leverages the Web Midi API to allow users to plug in a 37 key USB MIDI keyboard; However, if the user does not have access to a MIDI piano, they may also use their mouse via the virtual piano keyboard. HTML5 Canvas was used to create two visualizations, CSS3 for styling and Flexbox for layout. The Web Audio API provides the mechanisms for sound creation and manipulation/synthesis , including an envelope generator and filter controls. React.js was used to organize the code into maintainable and extensible components. Deployed to Surge.

Summary

Self-motivated individual who loves building software and learning new technologies for both fun and practical purposes. Desire to build products that people not only use, but enjoy using.

Projects

Midi-Synth

A browser-based MIDI synthesizer. The synthesizer leverages the Web Midi API to allow users to plug in a 37 key USB MIDI keyboard; However, if the user does not have access to a MIDI piano, they may also use their mouse via the virtual piano keyboard. HTML5 Canvas was used to create two visualizations, CSS3 for styling and Flexbox for layout. The Web Audio API provides the mechanisms for sound creation and manipulation/synthesis , including an envelope generator and filter controls. React.js was used to organize the code into maintainable and extensible components. Deployed to Surge.

@clayton-perszyk
clayton-perszyk / gist:090dcebe0764bee2889b
Created September 29, 2015 20:28
ruby bouncer exercise
puts "How old are you?"
age = gets.to_i
if age >= 21
puts "You can drink"
elsif age >= 18 && age < 21
puts "You can watch the show, but no drinking!"
else
puts "Go home, kiddo"
end
Terms:
Database - A DB is a place to store persistent data.
Collection - A collection is a group of similar things, e.g. a colletion of users.
Document - Documents are objects that map closely to programming language data types.
Cursor - A pointer to the result set of a query.
Field - A name-value pair in a document.
CRUD - Create, Read, Update, Delete.
Relational Database - a database structured to recognize relations among stored items of information.
Non-Relational Database - a database structure that provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases.
CAP Theorem - States that it is impossible for a distributed computer system to simultaneously provide consistency, availabilty, an partition tolerance.
// PUT YOUR CODE HERE!!!
var _ = {
average: function(array) {
if (!Array.isArray(array)){ return "can only find average of numbers." }
var length = array.length;
var sum = 0;
for (var i = 0; i < length; i += 1) {
sum += array[i];
// PUT YOUR CODE HERE!!!
var _ = {
average: function(array) {
if (!Array.isArray(array)){ return "can only find average of numbers." }
var length = array.length;
var sum = 0;
for (var i = 0; i < length; i += 1) {
sum += array[i];