Skip to content

Instantly share code, notes, and snippets.

@allanbian1017
allanbian1017 / pep-0008.md
Created July 9, 2018 03:15 — forked from zxjsdp/pep-0008.md
PEP8 Markdown Version (2016-03-25)
PEP: 8
Title: Style Guide for Python Code
Version: $Revision$
Last-Modified: $Date$
Author: Guido van Rossum <guido@python.org>,
        Barry Warsaw <barry@python.org>,
        Nick Coghlan <ncoghlan@gmail.com>
Status: Active
Type: Process

Content-Type: text/x-rst

@allanbian1017
allanbian1017 / generate.py
Created July 3, 2017 07:16 — forked from Pretz/generate.py
CSV to WAV: Needed a way to convert a list of numbers in a CSV file to a wave audio file. Go python.
#!/usr/bin/python
import wave
import numpy
import struct
import sys
import csv
from scikits.samplerate import resample
def write_wav(data, filename, framerate, amplitude):
@allanbian1017
allanbian1017 / index.js
Created March 23, 2017 07:39 — forked from TakahikoKawasaki/index.js
An example of "Amazon API Gateway Custom Authorizer" (node.js).
// An example of "Amazon API Gateway Custom Authorizer" (node.js).
// Copyright (c) 2016 Authlete, Inc.
//
// The MIT License
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
@allanbian1017
allanbian1017 / introrx.md
Created March 20, 2017 15:21 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing