Skip to content

Instantly share code, notes, and snippets.

View TranNgocMinh's full-sized avatar

Ngoc Minh TranNgocMinh

View GitHub Profile
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
learning_rate = 0.01
training_epochs = 40
trX = np.linspace(-1, 1, 101)
num_coeffs = 6
trY_coeffs = [1, 2, 3, 4, 5, 6]
trY = 0
for i in range(num_coeffs):
<html>
<head>
<title>Contact</title>
<meta name="viewport" content="width=device-width, initialscale=1">
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page" id="contactPage">
<html>
<head>
<title>About</title>
<meta name="viewport" content="width=device-width, initialscale=1">
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page" id="aboutPage">
<html>
<head>
<title>Home</title>
<meta name="viewport" content="width=device-width, initialscale=1">
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page" id="homePage">
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
x_train = np.linspace(0, 10, 100)
y_train = x_train + np.random.normal(0,1,100)
learning_rate = 0.01
training_epoches = 100
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
sess = tf.Session()
# the training set
x_train = np.linspace(0, 10, 100)
y_train = x_train + np.random.normal(0,1,100)
# Creating X
<html>
<head>
<title>Header and Footer Demo</title>
<meta name="viewport" content="width=device-width, initialscale=1">
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script>
<script>
$(document).bind("pageinit", function(){
// Patch to prevent overwriting <title></title>
<html>
<head>
<title>First Mobile Example</title>
<meta name="viewport" content="width=device-width, initialscale=1">
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page" id="homePage">
def binary(number):
base = 1
binary_val = 0
while(number > 0):
rem = number%2
binary_val = binary_val + rem*base
number = number/2
base = base*10
return binary_val
number = long(raw_input("Nhap so he thap phan:"))
fun main(args: Array<String>) {
var OK = 'Y'
do {
print("Nhap a = ")
var a = readLine()!!.toInt()
print("Nhap b = ")
var b = readLine()!!.toInt()
if(a==0)
print("Phuong trinh ${a}x + $b = 0 vo nghiem")
else {