Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
| [language.rust] | |
| command = "rls" | |
| install = [ | |
| ["rustup", "update"], | |
| ["rustup", "component", "add", "rls", "rust-analysis", "rust-src"], | |
| ] | |
| [language.javascript] | |
| command = "flow" | |
| args = ["lsp"] |
| cd | |
| mkdir Github && cd Github | |
| git clone https://github.com/Emrys-Hong/dotfiles .dotfiles | |
| cd .dotfiles && bash setup.sh |
| echo "Installing code-server" | |
| cd | |
| mkdir code-server | |
| release=(copy paste the lastest release here) | |
| wget -qO- $release | tar xvz --strip-components=1 -C ~/code-server | |
| echo "alias 'code'='~/code-server/code-server'" >> .bashrc | |
| echo "You need to 'source ~/.bashrc' now!" | |
| echo "Successful installed code server" |
| """Peform hyperparemeters search""" | |
| import argparse | |
| import os | |
| from subprocess import check_call | |
| import sys | |
| from multiprocessing import Process | |
| import utils | |
| import torch |
| import argparse | |
| import json | |
| import os | |
| from pathlib import Path | |
| import torch | |
| class NetworkConfig: | |
| def __init__(self, experiment_id, mainfolder): | |
| ## Checkpoint | |
| self.id = experiment_id |
| def run_train(args): | |
| # do something with args | |
| return 0 | |
| def main(): | |
| dynet_args = [ | |
| "--dynet-mem", | |
| "--dynet-weight-decay", | |
| "--dynet-autobatch", |
| import nltk | |
| nltk.download('punkt') | |
| import benepar | |
| benepar.download('benepar_en2') | |
| import benepar | |
| parser = benepar.Parser("benepar_en2") | |
| tree = parser.parse("Short cuts make long delays.") | |
| print(tree) |
| from allennlp.modules.elmo import Elmo, batch_to_ids | |
| options_file = "https://allennlp.s3.amazonaws.com/models/elmo/2x4096_512_2048cnn_2xhighway/elmo_2x4096_512_2048cnn_2xhighway_options.json" | |
| weight_file = "https://allennlp.s3.amazonaws.com/models/elmo/2x4096_512_2048cnn_2xhighway/elmo_2x4096_512_2048cnn_2xhighway_weights.hdf5" | |
| # Compute two different representation for each token. | |
| # Each representation is a linear weighted combination for the | |
| # 3 layers in ELMo (i.e., charcnn, the outputs of the two BiLSTM)) | |
| elmo = Elmo(options_file, weight_file, 2, dropout=0) |
| import torch | |
| import torchvision.utils as vutils | |
| import numpy as np | |
| import torchvision.models as models | |
| from torchvision import datasets | |
| from tensorboardX import SummaryWriter | |
| resnet18 = models.resnet18(False) | |
| writer = SummaryWriter() | |
| sample_rate = 44100 |