Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
# Requirements | |
#sudo apt-get install libcurl4-gnutls-dev # for RCurl on linux | |
#install.packages('RCurl') | |
#install.packages('RJSONIO') | |
library('RCurl') | |
library('RJSONIO') | |
query <- function(querystring) { | |
h = basicTextGatherer() |
{ | |
"metadata": { | |
"language": "Julia", | |
"name": "IJulia" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
library(Rfacebook) | |
library(httpuv) | |
library(RColorBrewer) | |
s | |
load("fb_oauth") | |
me <- getUsers("me", token=fb_oauth) | |
#getFQL(query, token) | |
my_friends <- getFriends(token=fb_oauth, simplify=F) | |
str(my_friends) |
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:1fbc7d13b08868781650d566f6ad0c1b1f1d475a8a58c561db89ddf159f3fda7" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ |
{"nbformat_minor": 0, "cells": [{"execution_count": 2, "cell_type": "code", "source": "import pandas as pd", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 3, "cell_type": "code", "source": "import os as os", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 7, "cell_type": "code", "source": "a=os.getcwd()", "outputs": [], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 8, "cell_type": "code", "source": "os.listdir(a)", "outputs": [{"execution_count": 8, "output_type": "execute_result", "data": {"text/plain": "['.continuum',\n '.enstaller4rc',\n '.idlerc',\n '.ipynb_checkpoints',\n '.ipython',\n '.matplotlib',\n '.RData',\n '.spyder2',\n 'AppData',\n 'Application Data',\n 'Canopy',\n 'Contacts',\n 'Cookies',\n 'Desktop',\n 'Documents',\n 'Downloads',\n 'Favorites',\n 'intermediate python notebook.ipynb',\n 'Links',\n 'Local Settings',\n 'Music',\n 'My Documents',\n 'my first R script file.R',\n 'My_First_Python_ |
{"nbformat_minor": 0, "cells": [{"execution_count": 77, "cell_type": "code", "source": "height = 150\n", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 78, "cell_type": "code", "source": "height", "outputs": [{"execution_count": 78, "output_type": "execute_result", "data": {"text/plain": "150"}, "metadata": {}}], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 79, "cell_type": "code", "source": "print(height)", "outputs": [{"output_type": "stream", "name": "stdout", "text": "150\n"}], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 80, "cell_type": "code", "source": "height%3\n", "outputs": [{"execution_count": 80, "output_type": "execute_result", "data": {"text/plain": "0"}, "metadata": {}}], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 81, "cell_type": "code", "source": "test=56\ntest%4", "outputs": [{"execution_count": 81, "output_type": "execute_result", "data": {"text/plain": "0"}, "metadata" |
{"nbformat_minor": 0, "cells": [{"execution_count": 1, "cell_type": "code", "source": "import pandas as pd", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 2, "cell_type": "code", "source": "import os as os", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 3, "cell_type": "code", "source": "a=os.getcwd()", "outputs": [], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 4, "cell_type": "code", "source": "os.listdir(a)", "outputs": [{"execution_count": 4, "output_type": "execute_result", "data": {"text/plain": "['.continuum',\n '.enstaller4rc',\n '.idlerc',\n '.ipynb_checkpoints',\n '.ipython',\n '.matplotlib',\n '.RData',\n '.spyder2',\n 'AppData',\n 'Application Data',\n 'Canopy',\n 'Contacts',\n 'Cookies',\n 'Desktop',\n 'Documents',\n 'Downloads',\n 'Favorites',\n 'intermediate python notebook.ipynb',\n 'Links',\n 'Local Settings',\n 'Music',\n 'My Documents',\n 'my first R script file.R',\n 'My_First_Python_ |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ |