Skip to content

Instantly share code, notes, and snippets.

Ngoc Minh TranNgocMinh

Block or report user

Report or block TranNgocMinh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PolynomialModel.py
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):
View Contact.html
<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">
View About.html
<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">
View Home.html
<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">
View lossFunction.py
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
View cholesky.py
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
View HeaderandFooterDemo.html
<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>
View jQueryMobileDemo.html
<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">
View CodeList_7_Kotlin.kt
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 {
View CodeList_7_Python.py
while True:
a = int(raw_input("Nhap a="))
b = int(raw_input("Nhap b="))
if(a is 0):
print "Phuong trinh %dx + %d = 0 vo nghiem."%(a,b)
else:
x = -b/(a*1.0)
print "Phuong trinh %dx + %d = 0 co nghiem x = %.2f"%(a,b,x)
OK = raw_input("Ban co muon tiep tuc?(Y/N)")
if (OK is 'N'):
You can’t perform that action at this time.