- download model
if [[ ! -e 'numberbatch-17.06.txt' ]]; then
wget https://conceptnet.s3.amazonaws.com/downloads/2017/numberbatch/numberbatch-17.06.txt.gz
gunzip numberbatch-17.06.txt.gz
fi
sudo pip install wordfreq
sudo pip install gensim
if [[ ! -e 'numberbatch-17.06.txt' ]]; then
wget https://conceptnet.s3.amazonaws.com/downloads/2017/numberbatch/numberbatch-17.06.txt.gz
gunzip numberbatch-17.06.txt.gz
fi
sudo pip install wordfreq
sudo pip install gensim
I hereby claim:
To claim this, I am signing this object:
module AgdaBasics where | |
apply : (A : Set)(B : A → Set) → ((x : A) → B x) → (a : A) → B a | |
apply A B f a = f a | |
_∘_ : {A : Set}{B : A → Set}{C : (x : A) → B x → Set} | |
(f : {x : A}(y : B x) → C x y)(g : (x : A) → B x) | |
(x : A) → C x (g x) | |
(f ∘ g) x = f (g x) |
#!/bin/sh | |
############################################################################################### | |
# Run as ./run_on_save.sh ./file/to/watch ./script/to/run.sh --args --to --give --to --script | |
############################################################################################### | |
# get the current path | |
CURPATH=`pwd` | |
TO_WATCH=$1 |
#!/bin/bash | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
sudo apt-get update | |
sudo apt-get install -y google-chrome-stable |
from collections import Iterable | |
def flatten(l): | |
if not isinstance(l, Iterable): | |
yield l | |
else: | |
for el in l: | |
if isinstance(el, Iterable) and not isinstance(el, (str, bytes)): | |
yield from flatten(el) |
#!/usr/bin/env bash | |
HH=`awk '/fs\.defaultFS/{getline; print}' /etc/hadoop/conf/core-site.xml ` | |
HH1=`echo "${HH/<value>/}"` | |
HADOOP_ROOT=`echo "${HH1/<\/value>/}"` | |
echo $HADOOP_ROOT |
sudo pip uninstall -y azure | |
sudo pip uninstall -y azure-batch | |
sudo pip uninstall -y azure-common | |
sudo pip uninstall -y azure-cosmosdb-nspkg | |
sudo pip uninstall -y azure-cosmosdb-table | |
sudo pip uninstall -y azure-datalake-store | |
sudo pip uninstall -y azure-eventgrid | |
sudo pip uninstall -y azure-graphrbac | |
sudo pip uninstall -y azure-keyvault | |
sudo pip uninstall -y azure-mgmt |