One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
from __future__ import division | |
from numpy.fft import rfft | |
from numpy import argmax, mean, diff, log, nonzero | |
from scipy.signal import blackmanharris, correlate | |
from time import time | |
import sys | |
try: | |
import soundfile as sf | |
except ImportError: | |
from scikits.audiolab import flacread |
OSStatus s; | |
if (!self.aq) { | |
AudioStreamBasicDescription asbd; | |
asbd.mSampleRate = 8000; | |
asbd.mFormatID = kAudioFormatAppleIMA4; | |
asbd.mFormatFlags = 0; | |
asbd.mBytesPerPacket = 0; | |
asbd.mFramesPerPacket = 0; | |
asbd.mBytesPerFrame = 0; | |
asbd.mChannelsPerFrame = 1; |
// Copyright (c) Sergey Lyubka, 2013. | |
// All rights reserved. | |
// Released under the MIT license. | |
// This program is used to embed arbitrary data into a C binary. It takes | |
// a list of files as an input, and produces a .c data file that contains | |
// contents of all these files as collection of char arrays. | |
// Usage: | |
// 1. Compile this file: | |
// cc -o embed embed.c |
ACTION | |
AD_HOC_CODE_SIGNING_ALLOWED | |
ALTERNATE_GROUP | |
ALTERNATE_MODE | |
ALTERNATE_OWNER | |
ALWAYS_SEARCH_USER_PATHS | |
ALWAYS_USE_SEPARATE_HEADERMAPS | |
APPLE_INTERNAL_DEVELOPER_DIR | |
APPLE_INTERNAL_DIR | |
APPLE_INTERNAL_DOCUMENTATION_DIR |
sudo dscl localhost -create /Local/Default/Users/git | |
#This won't actually check if the Unique ID is actually unique | |
sudo dscl localhost -create /Local/Default/Users/git UniqueID 90 | |
sudo dscl localhost -create /Local/Default/Users/git UserShell /usr/bin/git-shell | |
sudo dscl localhost -create /Local/Default/Users/git RealName git | |
sudo dscl localhost -create /Local/Default/Users/git NFSHomeDirectory /Users/git | |
sudo dscl localhost -create /Local/Default/Users/git PrimaryGroupID 90 | |
sudo dscl localhost -create /Local/Default/Users/git Password '*' | |
#give the user remote ssh access | |
sudo dscl localhost -append /Local/Default/Groups/com.apple.access_ssh GroupMembership git |
<a href="https://drive.google.com/uc?export=view&id=XXX"><img src="https://drive.google.com/uc?export=view&id=XXX" style="width: 500px; max-width: 100%; height: auto" title="Click for the larger version." /></a> |
/// This is free and unencumbered software released into the public domain. | |
/// | |
/// Anyone is free to copy, modify, publish, use, compile, sell, or | |
/// distribute this software, either in source code form or as a compiled | |
/// binary, for any purpose, commercial or non-commercial, and by any | |
/// means. | |
/// | |
/// In jurisdictions that recognize copyright laws, the author or authors | |
/// of this software dedicate any and all copyright interest in the | |
/// software to the public domain. We make this dedication for the benefit |
import CoreData | |
import Foundation | |
/// Safely copies the specified `NSPersistentStore` to a temporary file. | |
/// Useful for backups. | |
/// | |
/// - Parameter index: The index of the persistent store in the coordinator's | |
/// `persistentStores` array. Passing an index that doesn't exist will trap. | |
/// | |
/// - Returns: The URL of the backup file, wrapped in a TemporaryFile instance |