Skip to content

Instantly share code, notes, and snippets.

View angusturner's full-sized avatar

Angus Turner angusturner

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DavidHooper
DavidHooper / hello.js
Created November 17, 2016 07:48
JS Hello World
function sayHello(word, callback) {
callback(word);
}
sayHello('Hello', function(word) {
sayHello(word + ' World', function(word){
sayHello(word + '!', function(word) {
console.write(word);
});
});
@carlthome
carlthome / Signal reconstruction from spectrograms.ipynb
Created May 31, 2018 13:53
Try to recover audio from filtered magnitudes when phase information has been lost.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#![warn(rust_2018_idioms)]
#[derive(Debug)]
pub struct StrSplit<'haystack, D> {
remainder: Option<&'haystack str>,
delimiter: D,
}
impl<'haystack, D> StrSplit<'haystack, D> {
pub fn new(haystack: &'haystack str, delimiter: D) -> Self {