A Pen by Kelvin Morrison on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### | |
| # Unity folders and files | |
| ### | |
| [Aa]ssets/AssetStoreTools* | |
| [Bb]uild/ | |
| [Ll]ibrary/ | |
| [Ll]ocal[Cc]ache/ | |
| [Oo]bj/ | |
| [Tt]emp/ | |
| [Uu]nityGenerated/ |
Based on a dribbble by Giovanni XU
A Pen by Kelvin Morrison on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="root"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: AGPL-3.0-or-later | |
| // The ABI encoder is necessary, but older Solidity versions should work | |
| pragma solidity ^0.7.0; | |
| pragma experimental ABIEncoderV2; | |
| // These definitions are taken from across multiple dydx contracts, and are | |
| // limited to just the bare minimum necessary to make flash loans work. | |
| library Types { | |
| enum AssetDenomination { Wei, Par } |
OlderNewer