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
| find . -type f -print0 | xargs -0 nkf --overwrite -w -Lu |
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
| ああああああああああああああああ | |
| ああああああああああああああああ | |
| ああああああああああああああああ | |
| ああああああああああああああああ | |
| ああああああああああああああああ | |
| ああああああああああああああああ | |
| ああああああああああああああああ | |
| ああああああああああああああああ | |
| ああああああああああああああああ | |
| ああああああああああああああああ |
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
| refs = [] | |
| while True: | |
| try: | |
| ref = input() | |
| refs.append(ref) | |
| except EOFError: | |
| break |
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
| import numpy as np | |
| data = np.array([[40, 35, 80], | |
| [80, 50, 90], | |
| [20, 55, 40], | |
| [94, 80, 88], | |
| [90, 30, 100]]) | |
| print('Input data (N, featuers):', data, data.shape) | |
| N = data.shape[0] | |
| n_dim = data.shape[1] |
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
| liens = [line.rstrip('\n') for line in open('file')] |
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 subprocess | |
| rev = subprocess.check_output(['git', 'describe', '--always']).strip().decode('utf-8') |
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 numpy as np | |
| import torch | |
| from torch import nn | |
| class Model(nn.Module): | |
| def __init__(self, vocab_size, embd_size, pre_embd_w=None): | |
| super(Model, self).__init__() | |
| self.embd = nn.Embedding(vocab_size, embd_size, padding_idx=0) |
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
| defaults write com.adobe.illustrator AppleLanguages '("ja")' |