Check Julia Unicode Input for complete reference.
Code point(s) | Character(s) | Tab completion sequence(s) | macOS keyboard |
---|---|---|---|
U+2211 | ∑ | \sum | Opt-w |
U+00F8 | ø | \o | Opt-o |
U+03C0 | π | \pi | Opt-p |
U+00E5 | å | \aa (a\ocirc) | Opt-a |
#! /usr/bin/env python | |
import os | |
import requests | |
import toml | |
from tqdm import tqdm | |
# BinaryBuilderBase: | |
# UUID: 7f725544-6523-48cd-82d1-3fa08ff4056e |
println("hello world") | |
x = parse(Float64, ARGS[1]) | |
y = parse(Float64, ARGS[2]) | |
println("x+y = $(x+y)") |
# setup: | |
# - install git-filter-repo: https://github.com/newren/git-filter-repo/ | |
repos = readlines("repos") | |
exclude_files = abspath("path_excludes") | |
# clone all repositories into a cache folder so that we don't need to re-clone it again | |
mkpath("workdir") | |
mkpath("cache") | |
for repo in repos |
Check Julia Unicode Input for complete reference.
Code point(s) | Character(s) | Tab completion sequence(s) | macOS keyboard |
---|---|---|---|
U+2211 | ∑ | \sum | Opt-w |
U+00F8 | ø | \o | Opt-o |
U+03C0 | π | \pi | Opt-p |
U+00E5 | å | \aa (a\ocirc) | Opt-a |
using ImageTransformations | |
using StaticArrays | |
using Interpolations | |
using ImageCore | |
using ImageShow | |
using TestImages | |
using ChainRules | |
using ChainRules: NoTangent, ZeroTangent, @not_implemented | |
using ChainRulesTestUtils | |
using Zygote |
using Pkg | |
using Dates | |
### BEGIN Setup ### | |
const pkg_servers = [ | |
"https://cn-east.pkg.julialang.org", | |
"https://kr.pkg.julialang.org", | |
"https://us-east.pkg.julialang.org", | |
"https://kr.storage.julialang.org", | |
"https://us-east.storage.julialang.org", |
#! /bin/bash | |
# 设置版本及下载源 | |
CONDA_VERSION=2019.10 | |
CONDA_NAME=Anaconda3-${CONDA_VERSION}-Linux-x86_64.sh | |
CONDA_URL=https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/$CONDA_NAME | |
# 下载并安装anaconda | |
echo "Download anaconda from ${CONDA_URL}" | |
curl -O $CONDA_URL |
[Unit] | |
Description=Brook service | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/bin/brook client -l 127.0.0.1:8080 -i 127.0.0.1 -s vpn.lflab.cn:8989 -p ecnumath --http >> /dev/null 2>&1 | |
Restart=on-failure | |
[Install] |
using Pkg.TOML: parsefile | |
using Pkg | |
STDLIBS = Set([ | |
"Base64", | |
"CRC32c", | |
"Dates", | |
"DelimitedFiles", | |
"Distributed", | |
"FileWatching", | |
"Future", |
{ | |
"explorer.confirmDelete": false, | |
"explorer.confirmDragAndDrop": false, | |
"editor.cursorStyle": "block", | |
"editor.detectIndentation": false, | |
"editor.formatOnPaste": true, | |
"editor.formatOnType": true, | |
"editor.fontSize": 13, | |
"editor.wordWrap": "wordWrapColumn", | |
"editor.wordWrapColumn": 90, |