Skip to content

Instantly share code, notes, and snippets.

View apfritts's full-sized avatar

AP Fritts apfritts

View GitHub Profile
Join class here: http://repl.it/classroom/invite/KkpQYep
Section 1 - Numpy
Numpy is a python library for storing list-like data structures, called numpy arrays. Numpy allows us to perform very fast operations on arrays. For numpy documentation and more info, see https://docs.scipy.org/doc/numpy/user/index.html.
1.1 - Creating Numpy Arrays
Use the method np.array to create numpy arrays. Following the example provided, create the variables:
input_signal_01

Keybase proof

I hereby claim:

  • I am apfritts on github.
  • I am apfritts (https://keybase.io/apfritts) on keybase.
  • I have a public key whose fingerprint is 7D27 A09E E21F C475 FE5E DEB4 51FE EC88 1D0B E961

To claim this, I am signing this object:

@apfritts
apfritts / # hhvm312 - 2016-09-01_12-00-51.txt
Created September 1, 2016 19:11
hhvm312 (box/box/hhvm312) on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for box/box/hhvm312 on Mac OS X 10.11.6
Build date: 2016-09-01 12:00:51
@apfritts
apfritts / test output.log
Created July 25, 2016 15:03
python setup.py test
0 at 11:01:52 aplocal ~/Software/pp/talkey master source virtualenv/bin/activate
(virtualenv) 0 at 11:01:57 aplocal ~/Software/pp/talkey master which python
/Users/afritts/Software/pp/talkey/virtualenv/bin/python
(virtualenv) 0 at 11:02:05 aplocal ~/Software/pp/talkey master python setup.py test
running test
Searching for gtts
Best match: gTTS 1.1.6
Processing gTTS-1.1.6-py3.5.egg
Using /Users/afritts/Software/pp/talkey/.eggs/gTTS-1.1.6-py3.5.egg
@apfritts
apfritts / gist:98d333ffad45930848c1
Created March 25, 2015 05:35
Custom back button
UIButton *btnBack = [UIButton buttonWithType:UIButtonTypeCustom];
[btnBack setImage:[UIImage imageWithIcon:@"icon-chevron-left" backgroundColor:[UIColor clearColor] iconColor:[ColorUtility tintColor] iconScale:1.0 andSize:CGSizeMake(15.0, 24.0)] forState:UIControlStateNormal];
[btnBack setTitleColor:[ColorUtility tintColor] forState:UIControlStateNormal];
[btnBack setTitle:@" Back" forState:UIControlStateNormal];
btnBack.imageEdgeInsets = UIEdgeInsetsZero;
btnBack.titleEdgeInsets = UIEdgeInsetsZero;
[btnBack sizeToFit];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:btnBack];