Skip to content

Instantly share code, notes, and snippets.

View ilyakh's full-sized avatar

Ilyá Kostolomov ilyakh

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
font-family: Arial, sans;
class State {
public:
int id;
String name;
} currentState, previousState;
void setup() {
// serial
@ilyakh
ilyakh / app.py
Created October 25, 2015 18:54 — forked from rduplain/app.py
Flask: Add a second static directory to Flask, in ../static/.
from flask import Flask, send_from_directory
app = Flask(__name__)
@app.route('/base/<path:filename>')
def base_static(filename):
return send_from_directory(app.root_path + '/../static/', filename)