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
| FACTORIZATION TRICKS FOR LSTM NETWORKS | |
| https://arxiv.org/pdf/1703.10722.pdf |
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
| """ | |
| progress_bar.py | |
| Copyright (c) [2017] [ami_GS] | |
| This software is released under the MIT License. | |
| http://opensource.org/licenses/mit-license.php | |
| """ | |
| from subprocess import Popen, PIPE |
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
| struct huffman{ | |
| uint32_t code; | |
| uint32_t bitLen; | |
| }; | |
| const huffman huffman_table[] = { | |
| {0x1ff8, 13}, | |
| {0x7fffd8, 23}, | |
| {0xfffffe2, 28}, | |
| {0xfffffe3, 28}, |
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
| function printProperties(obj) { | |
| var properties = ''; | |
| for (var prop in obj){ | |
| properties += prop + "=" + obj[prop] + "\n"; | |
| } | |
| alert(properties); | |
| }; |
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
| var spawn = require('child_process').spawn; | |
| var grep = spawn('grep', ['ssh']); | |
| console.log(grep.pid); | |
| grep.stdin.end(); |
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
| git rm -r --cached . | |
| git add . | |
| git commit -m ".gitignore is now working" | |
| git push origin master |
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
| openssl genrsa 2048 > server.key | |
| openssl req -new -key server.key > server.csr | |
| openssl x509 -days 3650 -req -signkey server.key < server.csr > server.crt |
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
| import inspect | |
| print inspect.getargspec(function) | |
| print inspect.getargspec(Class.method) |
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
| class Var(): | |
| x = "x" | |
| _x = "_x" | |
| __x = "__x" | |
| def __init__(self): | |
| self.y = "y" | |
| self._y = "_y" | |
| self.__y = "__y" |
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
| import sys | |
| import time | |
| s = time.time() | |
| N = int(sys.argv[1]) | |
| prime = [1]*N | |
| prime[0] = 0 | |
| prime[1] = 0 |
NewerOlder