This file contains hidden or 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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtY6Y9TryqipXOWAMAeezaQFlUxGzznw5P3neLbftiWNOOul3/Obiwq6pfHrQvsbLR/6swzfrqgo1pxgi4r4oNn3WU3H5lEsI2/uaGg61tm9So8M4QAxxppBC7PSMh0Kg2CTZ36kpT8Ee4Ho4lP/7bS2GBoYUxnH8sRFlZM9Fqnnf2wivDW2m1Y/0sIAnn5d+4QL7PcPiHsZGx8fGKxyI5AOS2PGZP4KpKMd3owFEaAuXcWg5tl7wD24ZLFUnz/M+7n3QvD6LE+DxyqqjKR28hQI4W2ExcB8KsHYqIw13PMXkVPd698JwMA66UbFEoCyUqsANN2qclK4y5N3T5utaT [email protected] |
This file contains hidden or 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
| #!/bin/sh | |
| set -e | |
| if [ "$#" -ne 4 ]; then | |
| echo Usage: | |
| echo "\textract-snippet INPUT_FILE OUTPUT_FILE START_TIME DURATION_SECONDS" | |
| echo "\te.g. extract-snippet full-video.mkv snippet.mkv 00:24:17 5" | |
| exit 1 | |
| fi |
This file contains hidden or 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
| (ns synth-frontend-om.core | |
| (:require [om.core :as om :include-macros true] | |
| [om.dom :as dom :include-macros true] | |
| [clojure.string :as string])) | |
| (enable-console-print!) | |
| (defonce app-state | |
| (atom | |
| {:osc {:osc1 {:lfo 0 |
This file contains hidden or 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
| (read-score | |
| label :beginning | |
| set-beats-per-bar 4 | |
| set-beats-per-minute 108 | |
| 1 [(begin :my-gesture-name (ssg {:freq 200})) | |
| ((begin :other-gesture-name (ssg {:freq 400})))] | |
| ;; specify envelope nodes |
This file contains hidden or 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
| (ns ko.score-test | |
| (:use midje.sweet) | |
| (:require [ko.score :refer :all])) | |
| (facts "about `score`" | |
| (fact | |
| (read-score) => []) | |
| (fact | |
| (read-score |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| ZIP,LAT,LNG | |
| 00601,18.180555, -66.749961 | |
| 00602,18.361945, -67.175597 | |
| 00603,18.455183, -67.119887 | |
| 00606,18.158345, -66.932911 | |
| 00610,18.295366, -67.125135 | |
| 00612,18.402253, -66.711397 | |
| 00616,18.420412, -66.671979 | |
| 00617,18.445147, -66.559696 |
This file contains hidden or 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
| #include <iostream> | |
| #include <vector> | |
| template<typename T> | |
| T my_func(typename std::vector<T>::iterator begin) { | |
| return *begin; | |
| } | |
| int main() { | |
| std::vector<int> v{1, 2}; |
This file contains hidden or 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
| #include <iostream> | |
| #include <deque> | |
| template<typename T> | |
| std::deque< std::deque<T> >&& | |
| cartesian_product(std::deque< std::deque<T> > &bags) { | |
| std::deque< std::deque<T> > output{std::deque<T>{}}; | |
| if (!bags.size()) | |
| return std::move(output); |
This file contains hidden or 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
| var fs = require('fs'); | |
| var files = fs.readdirSync("./test"); | |
| var everybody = ""; | |
| var doneCount = files.length; | |
| var i; | |
| for (i = 0; i < files.length; ++i) { | |
| fs.readFile("./test/" + files[i], function(err, data) { | |
| if (err != null) throw new Error(err); |
This file contains hidden or 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
| #include <math.h> | |
| #define PI 3.14159265358979323846 | |
| int sinetable(double **table, double frequency, int sample_rate) { | |
| int i = 0; | |
| double phase = 0; | |
| double cycles_per_frame = frequency / sample_rate; | |
| int frames_per_cycle = (int) (1 / cycles_per_frame); | |
| double phase_increment = cycles_per_frame * 2 * PI; |