This file contains 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
""" | |
following is requirements.txt | |
============ | |
starlette | |
sqlalchemy | |
databases[sqlite] | |
uvicorn | |
imia | |
passlib | |
sqlalchemy_utils |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<!-- | |
generated by Pygments <https://pygments.org/> | |
Copyright 2006-2019 by the Pygments team. | |
Licensed under the BSD license, see LICENSE for details. | |
--> | |
<html> | |
<head> | |
<title></title> |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<!-- | |
generated by Pygments <https://pygments.org/> | |
Copyright 2006-2019 by the Pygments team. | |
Licensed under the BSD license, see LICENSE for details. | |
--> | |
<html> | |
<head> | |
<title></title> |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<!-- | |
generated by Pygments <https://pygments.org/> | |
Copyright 2006-2019 by the Pygments team. | |
Licensed under the BSD license, see LICENSE for details. | |
--> | |
<html> | |
<head> | |
<title></title> |
This file contains 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
module Main | |
import Data.List | |
mySum : List Double -> Double | |
mySum [] = 0 | |
mySum (x :: xs) = x + mySum xs | |
ms : List Double | |
ms = [1.0, 2.0, 3.0] |
This file contains 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
module Main | |
x1 : Int | |
x1 = 2 | |
doubleToInt : Double -> Int | |
doubleToInt y = cast y | |
x2 : Double |
This file contains 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
module Main | |
import System.File | |
main : IO () | |
main = do myFile <- openFile "out_string.txt" WriteTruncate | |
case myFile of | |
Right c => fPutStr myFile "Alpha Beta" | |
Left err => printLn err | |
closeFile myFile | |
This file contains 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
// This function creates the Chart widget. If updating the Chart.js library | |
// shipped with mesa, check the compatibility and modify the function as | |
// required. | |
// | |
// Chart.js version: 2.1.6 | |
// input arguments: | |
// series: Data to be plotted | |
// canvas_width: the width of the html5 canvas | |
// canvas_height: the height of the html5 canvas | |
var ChartModule = function(series, canvas_width, canvas_height) { |
This file contains 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
class Material(DeclarativeBase): | |
__tablename__ = 'materials' | |
id = Column(Integer, primary_key=True) | |
Name = Column(Unicode(50), nullable=False) | |
voltage = Column(Float(10), nullable=True) | |
vol_1 = Column(Float(10), nullable=True) | |
vol_1_ref = Column(Unicode(10), nullable=True) |