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 / .clang-format
Last active May 19, 2018 08:20
clang format template
---
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AlwaysBreakBeforeMultilineStrings: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
@allanbian1017
allanbian1017 / .prettierrc.json
Last active January 12, 2018 03:31
Prettier config template
{
"singleQuote": true,
"bracketSpacing": false,
"arrowParens": "always",
"trailingComma": "es5"
}
@allanbian1017
allanbian1017 / .eslintrc.json
Last active January 12, 2018 03:54
ESLint config template
{
"extends": "google",
"rules": {
"semi": "error",
"linebreak-style": "off",
"no-unused-vars": ["error", {"varsIgnorePattern": "should"}],
"no-undef": "error",
"no-var": "error",
"prefer-arrow-callback": "error"
},
@allanbian1017
allanbian1017 / mime
Created January 8, 2018 06:17
MIME Types
mime {
.atom application/atom+xml
.json application/json
.map application/json
.topojson application/json
.jsonld application/ld+json
.rss application/rss+xml
.geojson application/vnd.geo+json
.rdf application/xml
.xml application/xml
@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 / DeepLearningReadingRoadmap.md
Created March 29, 2017 05:59
Deep Learning Reading Roadmap

Deep Learning Papers Reading Roadmap

If you are a newcomer to the Deep Learning area, the first question you may have is "Which paper should I start reading from?"

Here is a reading roadmap of Deep Learning papers!

The roadmap is constructed in accordance with the following four guidelines:

  • From outline to detail
  • From old to state-of-the-art
@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