Mind expanding programming languages
- C
- Common Lisp (via LISP)
- Dedalus (via Datalog)
| import numpy as np | |
| import soundfile as sf | |
| from scipy.fftpack import fft, ifft | |
| def rotateSignal(signal,flip): | |
| if flip: | |
| signal = signal[::-1] | |
| x = np.concatenate((signal, signal[1:][::-1])) # concatenating the array with a reverse of itself makes it such that the fourier transform doesn't layer over a reversed version of itself in the inverse fft | |
| rotSig = ifft(x) |
Mind expanding programming languages
| (ns foami.core | |
| "FOreign Asynchronous Mechanism Interop" | |
| (:require [clojure.core.async :as async])) | |
| (defn put! | |
| "Takes a `ch`, a `msg`, a single arg function that when passed `true` enables backpressure | |
| and when passed `false` disables it, and a no-arg function which, when invoked, closes the | |
| upstream source." | |
| [ch msg backpressure! close!] | |
| (let [status (atom :sending] |
| (ns foami.core | |
| "FOreign Asynchronous Mechanism Interop" | |
| (:require [clojure.core.async :as async])) | |
| (def ^:private abandon (doto (async/chan) async/close!)) | |
| (def ^:private pending-writes (async/chan)) | |
| (defn put! | |
| "Tries to put a val into chan, returns either: true if put succeeded, false if chan is |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| /* | |
| * Copyright (c) 2013, Daniel Park | |
| * All rights reserved. | |
| * | |
| * Permission to modify and redistribute this software is granted to | |
| * anyone provided the above copyright notice, this condition and the | |
| * following disclaimer are retained. | |
| * | |
| * This software is provided "as is", without and express or implied | |
| * warranty. In no event shall the author be liable for damages arising |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| typedef unsigned int u32; | |
| typedef unsigned long long u64; | |
| //------------------------------------------------------------------------- | |
| // WorkArea | |
| //------------------------------------------------------------------------- |
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |