Based on a dribbble by Giovanni XU
A Pen by Kelvin Morrison on CodePen.
| <?php | |
| class DB { | |
| private $pdo; | |
| public function __construct($host, $dbname, $username, $password) { | |
| $pdo = new PDO('mysql:host='.$host.';dbname='.$dbname.';charset=utf8', $username, $password); | |
| $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
| $this->pdo = $pdo; | |
| } |
| <link href="https://fonts.googleapis.com/css?family=Exo" rel="stylesheet"> | |
| <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet"> | |
| <div class="container"> | |
| <div id="output"></div> | |
| <div class="row"> | |
| <div class="digit" id="one">1</div> | |
| <div class="digit" id="two">2 | |
| <div class="sub">ABC</div> | |
| </div> | |
| <div class="digit" id="three">3 |
Based on a dribbble by Giovanni XU
A Pen by Kelvin Morrison on CodePen.
| ### | |
| # Unity folders and files | |
| ### | |
| [Aa]ssets/AssetStoreTools* | |
| [Bb]uild/ | |
| [Ll]ibrary/ | |
| [Ll]ocal[Cc]ache/ | |
| [Oo]bj/ | |
| [Tt]emp/ | |
| [Uu]nityGenerated/ |
A Pen by Kelvin Morrison on CodePen.
| import flask | |
| import serial | |
| app = flask.Flask(__name__) | |
| arduino_serial = serial.Serial('/dev/ttyACM0', 9600) | |
| def event_stream(): | |
| while True: | |
| yield "data: " + arduino_serial.readline() + "\n\n" | |
| #enrixpad is free software: you can redistribute it and/or modify | |
| #it under the terms of the GNU General Public License as published by | |
| #the Free Software Foundation, either version 3 of the License, or | |
| #(at your option) any later version. | |