Skip to content

Instantly share code, notes, and snippets.

View lincerely's full-sized avatar
🕹️

Lincerely lincerely

🕹️
View GitHub Profile
@lincerely
lincerely / q-learning.py
Last active April 25, 2018 16:09
Implemented the example from A painless Q-Learning Tutorial http://mnemstudio.org/path-finding-q-learning-tutorial.htm and visualized
#!/usr/bin/env python
#http://mnemstudio.org/path-finding-q-learning-tutorial.htm
#tested on python and python3
import numpy as np
import os
R = np.array([[-1, -1, -1, -1, 0, -1],
[-1, -1, -1, 0, -1, 100],
[-1, -1, -1, 0, -1, -1],
@lincerely
lincerely / midterm_note.md
Last active October 14, 2016 05:28
CS4295 Mobile app midterm note
{
"result":[
{
"id":"1",
"name":"belal",
"email":"belal@mail.com"
},
{
"id":"3",
"name":"sunny",
@lincerely
lincerely / index.html
Last active September 1, 2016 10:07
download file from link with "a" 's download tag
<head>
<meta charset="UTF-8">
<title>Download from link</title>
</head>
<body>
<h1>Please use Chrome or Opera</h1>
<h2>cross origin download is not allow in Firefox,<br> so it will open the file in your broswer.</h2>
<input id="link" type="text" />
<a id="button" download>Download</a>