Skip to content

Instantly share code, notes, and snippets.

View lix90's full-sized avatar
🎯
Focusing

Li Xiang lix90

🎯
Focusing
View GitHub Profile
@lix90
lix90 / osx-setup.sh
Created April 28, 2017 11:07 — forked from somebox/osx-setup.sh
Set up an OSX machine from zero to awesome. Uses Homebrew (and cask, fonts, etc). Focused on Ruby/Rails development, includes rvm, xquartz, editor fonts, sublime text, and many tools.
#!/bin/bash
# A script to set up a new mac. Uses bash, homebrew, etc.
# Focused for ruby/rails development. Includes many utilities and apps:
# - homebrew, rvm, node
# - quicklook plugins, terminal fonts
# - browsers: chrome, firefox
# - dev: iterm2, sublime text, postgres, chrome devtools, etc.
# - team: slack, dropbox, google drive, skype, etc
@lix90
lix90 / spark_rscript_iris.r
Created August 18, 2017 08:58
Spark rscript demo
# setup environment
spark_home <- "/path/to/spark"
Sys.setenv(SPARK_HOME = spark_home)
# load SparkR library
library(SparkR, lib.loc = c(file.path(Sys.getenv("SPARK_HOME"), "R", "lib")))
---
title: "R Connect Database"
output:
html_notebook:
theme: cosmo
highlight: kate
---
# 连接Oracle数据库