- Just get things done!
- Create new file from a set of actions.
- Create new file from other files.
- Batch processing all files.
Save the following to a file named Makefile
.
main.go |
Save the following to a file named Makefile
.
meta: | |
url: | |
name: | |
author: | |
thumbnail: | |
description: | |
sns: | |
slide: | |
loop: false | |
sidebar: true |
hugo | |
cd public | |
git add . | |
git commit -m $1 | |
git push origin master | |
cd .. | |
echo "Please git add & git push your change to the content." |
.PHONY: init tokenize frequency word cluster wordvec spacy_init clean | |
init: | |
git clone https://github.com/howl-anderson/spacy-dev-resources | |
conda install SpaCy Gensim ftfy | |
git clone https://github.com/percyliang/brown-cluster | |
cd brown-cluster && make | |
SPACY := $(shell python -c "import spacy; print(spacy.__path__[0])") |
async def main(): | |
MAXRANK = # MAXRANK | |
XYZF = # XYZ FILE | |
with open(XYZF) as f: | |
# See `ratelimit_nursery.py` below | |
async with open_nursery_with_capacity(150) as _n: # <<< NOTE: adjust number of pending frame here. | |
# The number should be as low as possible while being | |
# high enough to saturate your workers' load. | |
frange = # THE SET OF FRAME NUMBER TO BE CALCULATED | |
for i in range(1, max(frange)+1): |
This is a recommended way to organize your code (e.g. if you have a module named my_mod
)
import trio | |
from pynng import Pair0 | |
import dill as pickle | |
from copy import deepcopy | |
from .util import timeblock | |
class GrainRemote(object): | |
def __init__(self, addr, res): |
from grain.delayed import delayed, each, run | |
from grain.util import QueueLimiter | |
from grain.resource import Node | |
import trio | |
from pathlib import Path | |
from functools import partial | |
@delayed | |
async def execjob(cmd): |
The project involved is under active development. Refer to their docs for any update.
Run VS Code on a supercomputer's node and access it locally in a browser, so that you (and your VS Code plugins) have universal access to files on the supercomputer and a uniform IDE experience.
On any supercomputer, run:
curl -fsSL https://code-server.dev/install.sh | sh -s -- --method standalone