Skip to content

Instantly share code, notes, and snippets.

View niklasberglund's full-sized avatar

Niklas Berglund niklasberglund

  • Klurig
  • Gothenburg, Sweden
View GitHub Profile

This fork makes the code run on Mac OS X.

This Gist is about how I use PyAudio, NumPy, and Matplotlib to plot freqency spectrum of system sound or microphone.

You can read this blog post for more detail.

@niklasberglund
niklasberglund / add_lib_with_xcodeproj.rb
Created September 13, 2014 08:17 — forked from onevcat/add_lib_with_xcodeproj.rb
Example of how to use the ruby gem xcodeproj to add a library to the Frameworks group of a project. Forked and updated to work with updated version of xcodeproj.
require 'xcodeproj'
project_path = "your_project_path";
# Create project object
project = Xcodeproj::Project.new(project_path);
lib_path = "your_lib_path";
# Add the lib file as a reference
libRef = project['Frameworks'].new_file(lib_path);