pip install 'apache-airflow[celery]'
sudo apt update
#include <stdio.h> | |
void function(int param) { | |
printf("I've received value %d\n", param); | |
param++; | |
} | |
int main(void) { | |
int variable = 111; |
### Create User | |
Create user brewai | |
```bash | |
adduser brewai | |
``` | |
Password: | |
Grant root access | |
```bash | |
usermod -aG sudo brewai |
""" | |
Fabric configuration for a Python 3.3 environment using Anaconda. | |
""" | |
from fabric.api import run, cd | |
from fabric.context_managers import prefix | |
CONDA_REPO = 'http://repo.continuum.io/miniconda/' | |
CONDA_VERS = 'Miniconda3-3.0.0-Linux-x86_64.sh' |
file:///Users/gwhytempro/Library/Mobile%20Documents/comappleCloudDocs/templates/sandbox-html/sandbox/assets/dev/animations.html
data() {
return { status: null, pollInterval: null }
},
...
methods() { fetchData() {
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \ | |
'postgres://username:password@localhost:5432/databasename' | |
SQLALCHEMY_TRACK_MODIFICATIONS = False |
// Create an apache arrow environment in conda | |
// Note files will be stores in parquet format and read into a Pandas data frame, for manipulation. | |
conda create --name arrow pandas | |
conda install --name arrow pyarrow=0.8.* -c conda-forge |
import csv | |
import numpy as np | |
import nltk | |
from nltk.stem.porter import * | |
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer | |
from sklearn.feature_extraction import DictVectorizer | |
from sklearn.ensemble import RandomForestClassifier | |
from sklearn.metrics import accuracy_score, confusion_matrix | |
from sklearn import cross_validation | |
from SMOTE import * |
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
Database files have to be updated before starting the server, here are the steps that had to be followed: | |
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
brew unlink postgresql | |
brew install [email protected] | |
brew unlink [email protected] | |
brew link postgresql |