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
| -- based on http://www.microshell.com/database/mysql/emulating-nextval-function-to-get-sequence-in-mysql/ | |
| -- might be needed | |
| -- SET GLOBAL log_bin_trust_function_creators = 1; | |
| CREATE TABLE `sequence_data` ( | |
| `sequence_name` varchar(100) NOT NULL, | |
| `sequence_increment` int(11) unsigned NOT NULL DEFAULT 1, | |
| `sequence_min_value` int(11) unsigned NOT NULL DEFAULT 1, | |
| `sequence_max_value` bigint(20) unsigned NOT NULL DEFAULT 18446744073709551615, |
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
| #!/bin/bash | |
| # | |
| # Use agvtool to set Xcode project build number and create git tag | |
| # Note: requires Xcode project configured to use Apple Generic Versioning and git | |
| # | |
| # Usage: set_agv_ver.sh 123 | |
| # | |
| # src: https://gist.github.com/rob-murray/8644974 | |
| # |
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 torch | |
| from torch import nn | |
| from torch.autograd import Variable | |
| import torch.nn.functional as F | |
| class RNN(nn.Module): | |
| def __init__(self, input_size, hidden_size, output_size, n_layers=1): | |
| super(RNN, self).__init__() | |
| self.input_size = input_size | |
| self.hidden_size = hidden_size |