Skip to content

Instantly share code, notes, and snippets.

View scientist1642's full-sized avatar

Zura Isakadze scientist1642

  • Tbilisi, Georgia
View GitHub Profile
{
"trivia_categories": [
{
"id": 9,
"name": "გენერალური"
},
{
"id": 10,
"name": "Entertainment: Books"
},
@scientist1642
scientist1642 / tensorapi.rmd
Last active April 3, 2017 11:46
Numpy api analog in Pytorch tensor
numpy -> pytorch
___
* `t.shape | t.size()`
* `numpy.expand_dims(dim) | unsqueeze(dim)`
@scientist1642
scientist1642 / install_tmux.sh
Created March 5, 2017 18:54
Install tmux without root
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
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")
@scientist1642
scientist1642 / template.ipynb
Created November 28, 2016 18:10
Ipython template
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
initializer 'log_formatting.rb', <<-CODE
bar = 1
puts "#{bar}"
CODE
initializer 'log_formatting.rb', <<-CODE
puts "#{something}"
CODE
@scientist1642
scientist1642 / Procfile
Last active August 29, 2015 14:15 — forked from cdesch/Procfile
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
"\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
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <cstdio>
#include <cstdlib>