Skip to content

Instantly share code, notes, and snippets.

Toshihiko Arai araemon

Block or report user

Report or block araemon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
eerwitt /
Last active Dec 13, 2019
Parsing a WAV file using basic Python
import struct
def parse_wave_raw(filename):
# Open the example wave file stored in the current directory.
with open(filename, 'rb') as wav_file:
# Main Header
chunk_id =
assert chunk_id == b'RIFF', 'RIFF little endian, RIFX big endian: assume RIFF'
connorjan /
Last active Sep 23, 2019
shairport-sync installation for a Raspberry Pi
petitviolet /
Last active Oct 30, 2019
OkHttp Callback on Main Thread.
public abstract class MainThreadCallback implements Callback {
private static final String TAG = MainThreadCallback.class.getSimpleName();
abstract public void onFail(final Exception error);
abstract public void onSuccess(final String responseBody);
public void onFailure(final Request request, final IOException e) {
rxaviers / gist:7360908
Last active Feb 16, 2020
Complete list of github markdown emoji markup
View gist:7360908


:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
laiso /
Last active May 16, 2019
Pythonではてなの OAuth 対応 API を利用する
#!/usr/bin/env python
# -*- coding: utf-8 -*-
フレームワークとして Flask( を、OAuth ライブラリとして oauth2( を利用したサンプルプログラムです。
下のコードを保存して ( とします)、YOUR_CONSUMER_KEY, YOUR_CONSUMER_SECRET となっている部分を自分の consumer_key, consumer_secret で置き換えます。
$ python
... で起動してから http://localhost:5000 に Web ブラウザでアクセスして下さい。
You can’t perform that action at this time.