Install the required packages (Ubuntu 12.04):
apt-get install nfs-kernel-server portmapOpen the exports file:
vim /etc/exports| class Dynamic(dict): | |
| """Dynamic objects are just bags of properties, some of which may happen to be functions""" | |
| def __init__(self, **kwargs): | |
| self.__dict__ = self | |
| self.update(kwargs) | |
| def __setattr__(self, name, value): | |
| import types | |
| if isinstance(value, types.FunctionType): | |
| self[name] = types.MethodType(value, self) |
| """ | |
| This is a batched LSTM forward and backward pass | |
| """ | |
| import numpy as np | |
| import code | |
| class LSTM: | |
| @staticmethod | |
| def init(input_size, hidden_size, fancy_forget_bias_init = 3): |
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
Led by Allison Parrish
Practitioners in the field of procedural writing have been using rules, procedures and computer programs to create innovative literary work since the invention of the digital computer. Far from the bland imitation evoked by the phrase "computer-generated poetry," these techniques facilitate the creation of work with aesthetic and emotional affordances sometimes difficult to achieve through conventional compositional techniques: serendipitous beauty, precisely imitative satire, vertiginous wonder at the infinite. In this workshop, participants will learn about the history of computer-generated writing and sample a range of off-the-shelf, freely-available tools on the web to create their own—without writing any actual lines of code. No previous programming experience is required.
| from PyPDF2.generic import ( | |
| DictionaryObject, | |
| NumberObject, | |
| FloatObject, | |
| NameObject, | |
| TextStringObject, | |
| ArrayObject | |
| ) | |
| # x1, y1 starts in bottom left corner |
When I use docker to work with the shared workspace with host under Ubuntu, I find that files created by docker user is owned by root. This is not the same with macOS.
Maybe this is becuase docker is run by root user and the default user mapping mechanism is to map container-root to host-user or host-root. So can I map the container-root or container-any-user to host-current-user?
Fortunately the latest docker supports the re-map the container user to any host user via Linux namespace. Refer to this.
| using NBitcoin; | |
| using NBitcoin.RPC; | |
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| class OpReturnScan | |
| { |