Skip to content

Instantly share code, notes, and snippets.

View sin-tanaka's full-sized avatar

tanasinn sin-tanaka

View GitHub Profile
@sin-tanaka
sin-tanaka / server.py
Created December 11, 2019 09:02 — forked from martijnvermaat/server.py
SimpleHTTPServer with history API fallback
#!/usr/bin/env python
"""
Modification of `python -m SimpleHTTPServer` with a fallback to /index.html
on requests for non-existing files.
This is useful when serving a static single page application using the HTML5
history API.
"""
@sin-tanaka
sin-tanaka / tslint.json
Created October 19, 2018 01:34
TSLint v5.7.0 時点で指定できる全 rules を網羅した。
// tslint.json : https://palantir.github.io/tslint/
{
// Type Checking を有効にする (true)
"lintOptions": {
"typeCheck": true
},
// カスタムルールの参照先
"rulesDirectory": [
"node_modules/codelyzer"
],