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
{ | |
"trivia_categories": [ | |
{ | |
"id": 9, | |
"name": "გენერალური" | |
}, | |
{ | |
"id": 10, | |
"name": "Entertainment: Books" | |
}, |
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
numpy -> pytorch | |
___ | |
* `t.shape | t.size()` | |
* `numpy.expand_dims(dim) | unsqueeze(dim)` |
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
Exit on error # | |
set -e | |
# Clean up # | |
rm -rf ~/tools/programs/libevent | |
rm -rf ~/tools/programs/ncurses | |
rm -rf ~/tools/programs/tmux | |
# Variable version # | |
TMUX_VERSION=2.2 |
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
x_train = np.reshape(x_train,(x_train.shape[0],x_train.shape[1], 1)) | |
x_test = np.reshape(x_test,(x_test.shape[0],x_test.shape[1], 1)) | |
model = Sequential() | |
model.add(LSTM(100,input_dim=1,return_sequences=False)) | |
#model.add(Dense(100,init='normal')) | |
model.add(Dense(8,init='normal')) | |
model.add(Activation("linear")) | |
model.compile(loss="mean_squared_error", optimizer="adam") |
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 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
initializer 'log_formatting.rb', <<-CODE | |
bar = 1 | |
puts "#{bar}" | |
CODE |
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
initializer 'log_formatting.rb', <<-CODE | |
puts "#{something}" | |
CODE |
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
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb |
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
"\e[1~": beginning-of-line | |
"\e[4~": end-of-line | |
“\e[5~”: history-search-backward | |
“\e[6~”: history-search-forward | |
"\e[3~": delete-char | |
"\e[2~": quoted-insert | |
"\e[5C": forward-word | |
"\e[5D": backward-word | |
"\e\e[C": forward-word | |
"\e\e[D": backward-word |
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
#include <algorithm> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <vector> | |
#include <queue> | |
#include <set> | |
#include <map> | |
#include <cstdio> | |
#include <cstdlib> |
NewerOlder