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
model = app.model('Prediction params', | |
{ | |
'sepalLength': fields.Integer(required = True, | |
description="Select 1", | |
help="Select 1 cannot be blank"), | |
'sepalWidth': fields.Integer(required = True, | |
description="Select 2", | |
help="Select 2 cannot be blank"), | |
'petalLength': fields.Integer(required = True, | |
description="Select 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
import React from 'react'; | |
import React3 from 'react-three-renderer'; | |
import THREE from 'three'; | |
var OrbitControls = require('three-orbit-controls')(THREE) | |
class GreenCube extends React.Component { | |
render() { | |
return <mesh> | |
<boxGeometry width={200} height={200} depth={200} /> |
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
/*make the left panel conversation lists more compact*/ | |
.open_conversation_row { | |
line-height: 20px; | |
height: 22px; | |
font-size: 15px; | |
padding-bottom: 0px; | |
padding-top: 0px; | |
} | |
.open_conversation_row .right { | |
margin-top: 0px; |
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
#!/usr/bin/ruby | |
# | |
# Moved to: https://github.com/uriel1998/volumerb | |
# | |
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 | |
# Unported License. To view a copy of this license, visit | |
# http://creativecommons.org/licenses/by-sa/3.0/. | |
# | |
# Forked/derived from original by Jasper Van der Jeugt (jaspervdj); |
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
#pārbaudāmās funkcijas definīcija | |
def f(x) | |
#x**2-612 #atkomentē lai izmēģinātu šo piemēru | |
Math.cos(x)-x**3 #aizkomentē, lai izmēģinātu pirmo piemēru | |
end | |
#ar roku izrēķinam atvasinājumu no f(x) | |
def df(x) | |
#2*x #atkomentē lai izmēģinātu šo piemēru | |
-Math.sin(x) - 3*(x**2) |
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
#pārbaudāmās funkcijas definīcija | |
def f (x) | |
x**3-x-2 | |
end | |
#metodes definīcija | |
def bisect (a,b) | |
(a+b)/2 | |
end |