Skip to content

Instantly share code, notes, and snippets.

View adamski's full-sized avatar

Adam Wilson adamski

  • CodeGarden / NodeAudio
  • Bristol UK
View GitHub Profile
@adamski
adamski / Output
Created February 21, 2017 21:26 — forked from admsyn/Output
Testing vDSP's FFT vs FFTW's
N = 1024 Accel: 0.05265 FFTW: 0.026213
N = 2048 Accel: 0.042565 FFTW: 0.049334
N = 4096 Accel: 0.049206 FFTW: 0.082782
N = 8192 Accel: 0.118918 FFTW: 0.173506
N = 16384 Accel: 0.200201 FFTW: 0.371488
N = 32768 Accel: 0.356826 FFTW: 1.01589
N = 65536 Accel: 0.844955 FFTW: 1.79316
N = 131072 Accel: 1.95759 FFTW: 3.99565
N = 262144 Accel: 4.34179 FFTW: 9.87287
N = 524288 Accel: 9.31858 FFTW: 19.6675
/*
==============================================================================
AudioBufferFIFO.h
Created: 29 Dec 2016 9:22:50am
Author: Adam Wilson
==============================================================================
*/
@adamski
adamski / SlideTextInput.js
Last active November 17, 2016 21:21 — forked from MikeShi42/SlideTextInput.js
Terrible TextInput extends that doesn't steal all touches.
import React, { Component } from 'react';
import {TextInput, TouchableWithoutFeedback, StyleSheet} from 'react-native';
const Platform = require('Platform');
const requireNativeComponent = require('requireNativeComponent');
const emptyFunction = require('fbjs/lib/emptyFunction');
if (Platform.OS === 'android') {
var AndroidTextInput = requireNativeComponent('AndroidTextInput', null);
} else if (Platform.OS === 'ios') {
var RCTTextView = requireNativeComponent('RCTTextView', null);
@adamski
adamski / build.gradle
Created October 21, 2016 22:07
react-native-navigation experimental format build.gradle
apply plugin: 'com.android.model.library'
model {
android {
compileSdkVersion = 23
buildToolsVersion = "23.0.1"
defaultConfig.with {
minSdkVersion.apiLevel = 16
targetSdkVersion.apiLevel = 22
/**
* Simple ring buffer which is always the same length
* for keeping a stream of float input values
* Designed to give a snapshot in time
*
* TODO: use vector queue to store values instead of array pointer
*/
class RingBuffer
{
@adamski
adamski / remoteDataTableView.swift
Created November 15, 2015 22:50 — forked from Starefossen/remoteDataTableView.swift
Remote JSON Data to tableView in iOS 8.0 (Swift)
import UIKit
import Foundation
import XCPlayground
XCPSetExecutionShouldContinueIndefinitely()
class RemoteAPI {
func getData(completionHandler: ((NSArray!, NSError!) -> Void)!) -> Void {
let url: NSURL = NSURL(string: "http://itunes.apple.com/search?term=Turistforeningen&media=software")
let ses = NSURLSession.sharedSession()
@adamski
adamski / CustomCallOutBox.cpp
Created January 22, 2015 07:21
Custom class derived from CallOutBox for removing arrow (JUCE)
#include "CustomCallOutBox.h"
CustomCallOutBox::CustomCallOutBox (Component &contentComponent,
const Rectangle< int > &areaToPointTo,
Component *parentComponent,
bool drawArrow)
: CallOutBox (contentComponent, areaToPointTo, parentComponent), drawArrow (drawArrow)
{
@adamski
adamski / YcmDebugInfo
Last active August 29, 2015 14:10
:YcmDebugInfo output
Printing YouCompleteMe debug information...
-- Server has Clang support compiled in: True
-- Clang version: clang version 3.5.0 (tags/RELEASE_350/final)
-- Flags for /Users/adamelemental/dev/juce_projects/Chapter02_07/Source/CustomComponent.cpp loaded from /Users/adamelemental/dev/juce_projects/Chapter02_07/.yc
m_extra_conf.py:
-- ['-Wall', '-Wextra', '-Werror', '-Wno-attributes', '-std=c++11', '-x', 'c++', '-isystem', '/Users/adamelemental/dev/juce_projects/Chapter02_07/../BoostParts
', '-isystem/Users/adamelemental/dev/juce/modules', '-I/Users/adamelemental/dev/juce_projects/Chapter02_07/./JuceLibraryCode', '-isystem', '/System/Library/Fra
meworks/Python.framework/Headers', '-isystem', '/Users/adamelemental/dev/juce_projects/Chapter02_07/../llvm/include', '-isystem', '/Users/adamelemental/dev/juc
e_projects/Chapter02_07/../llvm/tools/clang/include', '-I', '/Users/adamelemental/dev/juce_projects/Chapter02_07/.', '-I', '/Users/adamelemental/dev/juce_proje
cts/Chapter02_07/./ClangCompleter', '-isystem', '/User
@adamski
adamski / .ycm_extra_conf.py
Last active August 29, 2015 14:10
.ycm_extra_conf.py for JUCE project (not currently working)
import os
import ycm_core
libDir = "JuceLibraryCode"
flags = [
'-Wall',
'-Wextra',
'-Werror',
@adamski
adamski / BinarySearch.h
Last active November 5, 2019 14:36
Binary Search functions for JUCE ValueTree and Array types
/*
==============================================================================
BinarySearch.h
Created: 31 Jul 2014 9:57:04am
Author: Adam Wilson
==============================================================================
*/