- Install ponysay: (You may have to
sudo apt install software-properties-common
first)sudo add-apt-repository ppa:vincent-c/ponysay
sudo apt-get update
sudo apt-get install ponysay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## create an ubuntu 14.04 hvm instance, then from your home directory: | |
# 1. download this script | |
# wget https://gist.githubusercontent.com/waylonflinn/506f563573600d944923/raw/install-python-data-science.sh | |
# 2. make it executable | |
# chmod a+x install-python-data-science.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pycurl | |
from tqdm import tqdm | |
downloader = pycurl.Curl() | |
def sanitize(c): | |
c.setopt(pycurl.UNRESTRICTED_AUTH, False) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rpy2.robjects.packages import importr | |
import rpy2.robjects.lib.ggplot2 as ggplot2 # don't use importr cause the ggplot2 here has the .plot() function | |
grdevices = importr('grDevices') | |
cowplot = importr('cowplot') #cause i love cowplot | |
rfeather = importr("feather", on_conflict="warn") | |
# Out[57]: | |
# country variable value | |
# 0 H random 15.872105 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# API KEY for accessing it's service | |
QUBOLE_API="MY_QUBOLE_API_ID" | |
# This is the ID which is set by Qubole | |
CLUSTER_ID=12830 | |
conf <- livy_config("custom_headers" = list(`X-AUTH-TOKEN`=QUBOLE_API)) | |
sc <- spark_connect( | |
master = sprintf("https://us.qubole.com/livy-spark-%s", CLUSTER_ID), | |
method = "livy", | |
config = conf |
OlderNewer