Skip to content

Instantly share code, notes, and snippets.

View linmx0130's full-sized avatar
🐶
wow

Mengxiao Lin linmx0130

🐶
wow
View GitHub Profile
@linmx0130
linmx0130 / lop.py
Last active January 5, 2017 08:01
import theano
import theano.tensor as T
def sigmoid(x):
return 1.0/(1+T.exp(-x))
x = T.vector('x')
W = T.matrix('W')
#y = T.dot(x,W)
y = T.dot(x,W)
sf = T.nnet.softmax(y)
true_dist = T.ivector('true_dist')
@linmx0130
linmx0130 / perceptron1.cpp
Last active August 29, 2015 14:22
Simple Perceptron Demo
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <ctime>
#define MAXN 20
#define ETA 0.1
struct Graph{
int tot,Head[MAXN],Pre[MAXN*MAXN],U[MAXN*MAXN],V[MAXN*MAXN];
double W[MAXN*MAXN];
<html>
<head>
<script>
fReader=new FileReader();
fReader.onload=function(evt){
document.getElementById("viewer").innerHTML=evt.target.result;
};
function loadFile(){
var oFile = document.getElementById("loader").files[0];
fReader.readAsText(oFile,"utf-8");
<script src="http://bartaz.github.io/impress.js/js/impress.js"></script>
<script>impress().init();</script>
<div class="hint">
<p>请用方向键控制</p>
</div>
<div id="its" class="step" data-x="850" data-y="3000" data-rotate="90" data-scale="5">
<p>这是一个 <strong>presentation tool</strong> <br/>
作者从 <a href="http://prezi.com">prezi.com</a> 得到灵感<br/>
利用现代浏览器<strong>CSS3 transforms and transitions</strong>的力量</p>
</div>
<div id="title" class="step" data-x="0" data-y="0" data-scale="4">
<span>你看到的幻灯片由</span>
<h1>impress.js</h1>
<span>给你呈现</span>
</div>
<div id="page1" class="step slide" data-x="-1000" data-y="-1500">
<q>第一页的幻灯片</q>
</div>
@linmx0130
linmx0130 / 201401261.html
Created January 26, 2014 05:07
20140126 blog code1
<body class="impress-not-supported">
<div class="fallback-message">
<p>Your browser <b>doesn't support the features required</b> by impress.js, so you are presented with a simplified version of this presentation.</p>
<p>For the best experience please use the latest <b>Chrome</b>, <b>Safari</b> or <b>Firefox</b> browser.</p>
</div>
@linmx0130
linmx0130 / impressjs_test.html
Created January 26, 2014 04:10
a test page of impress.js
<!doctype html>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>impress.js 尝试</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" />
<link href="http://bartaz.github.io/impress.js/css/impress-demo.css" rel="stylesheet" />