I hereby claim:
- I am schlameel on github.
- I am schlameel (https://keybase.io/schlameel) on keybase.
- I have a public key ASBGidbxwdQ8_gO930Inqc3ivv74si7ded6jfY2iGFWJ3Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import numpy as np | |
CHANNEL_COUNT = 2 | |
frames = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1]) | |
deinterleaved = [frames[idx::CHANNEL_COUNT] for idx in range(CHANNEL_COUNT)] | |
print(deinterleaved[0]) | |
# prints "[0 0 0 0 0 0 0 0 0 0]" | |
print(deinterleaved[1]) | |
# prints "[1 1 1 1 1 1 1 1 1 1]" |
import numpy as np | |
arr1 = np.zeros(100) | |
arr2 = np.ones(100) | |
arr_tuple = (arr1, arr2) | |
interleaved = np.vstack(arr_tuple).reshape((-1,), order='F') |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/linux-headers-4.9.0-040900_4.9.0-040900.201612111631_all.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/linux-headers-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/linux-image-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb | |
sudo dpkg -i *.deb |
echo "options cx23885 card=56" | sudo tee /etc/modprobe.d/cx23885.conf |
options cx23885 card=56 |
wget https://github.com/OpenELEC/dvb-firmware/raw/master/firmware/dvb-demod-si2168-b40-01.fw | |
sudo cp dvb-demod-si2168-b40-01.fw /lib/firmware |
class Character(JsonCls): | |
name = Member() | |
actor = Member() | |
film = Member() | |
json_str = "{ 'name' : 'Dead Collector', | |
'actor' : 'Eric Idle', | |
'film' : 'Monty Python and the Holy Grail' } | |
character = Character().json(json_str) |
tell application "Spotify" to playpause |
#!/usr/bin/osascript | |
-- SpotifyPlayPause | |
-- Copyright 2015 Schlameel | |
-- | |
-- This program is free software: you can redistribute it and/or modify | |
-- it under the terms of the GNU General Public License as published by | |
-- the Free Software Foundation, either version 3 of the License, or | |
-- (at your option) any later version. | |
-- | |
-- This program is distributed in the hope that it will be useful, |