sudo apt install build-essential zlib1g-dev libssl-dev openssl sqlite libsqlite3-dev libbz2-dev tk-dev libffi-dev
mkdir $HOME/local
cd $HOME/local
mkdir bin
mkdir lib
mkdir include
This file contains hidden or 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
# By CWhy | |
# [email protected] | |
import numpy as np | |
import tensorflow as tf | |
# Generate equation for mixed moments | |
def moments_eqn(_l, order): | |
if order == 1: | |
return _l | |
r = [] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
letsencrypt certonly --manual | |
# And follow the instructions |
This file contains hidden or 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
(defn argmax [l] (key (apply max-key val (into {} (map-indexed vector l))))) |
This file contains hidden or 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
# It is not very pythonic but I don't like a lot of [[[['''']]]]'''' symbols | |
class Fake_dict: | |
def __iter__(self): | |
for attr in dir(Fake_dict): | |
if not attr.startswith("__"): | |
yield attr |
This file contains hidden or 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
<a href="javascript:{_l=window.location;window.location='http://'+_l.hostname+'.ezlibproxy1.ntu.edu.sg/'+_l.pathname;};">NTU Libraries Proxy Bookmarklet</a> |