This file contains 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
<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> |
This file contains 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
{ | |
"result":[ | |
{ | |
"id":"1", | |
"name":"belal", | |
"email":"[email protected]" | |
}, | |
{ | |
"id":"3", | |
"name":"sunny", |
This file contains 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/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], |
This file contains 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
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
from spell import * | |
updater = Updater(token="") | |
dispatcher = updater.dispatcher | |
import logging | |
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', | |
level=logging.INFO) |
This file contains 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
using UnityEngine; | |
using System.Collections; | |
public class GameManager : MonoBehaviour { | |
public static GameManager manager; //singleton | |
void Awake(){ | |
if(manager == null){ | |
DontDestroyOnLoad(gameObject); |
This file contains 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
# Add to nginx.conf http section | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} |
This file contains 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
sudo ntpdate -u stdtime.gov.hk |
This file contains 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
# =========================== | |
# Default Collab Ignore Rules | |
# =========================== | |
# OS Generated | |
# ============ | |
.DS_Store | |
._* | |
.Spotlight-V100 | |
.Trashes |
OlderNewer