You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| "+.bentime"<-function(e1,e2){ | |
| e<-list(hour=e1$hour+e2$hour,min=e1$min+e2$min,sec=e1$sec+e2$sec) | |
| sec_overflow<-e$sec>60L | |
| e$sec<-e$sec %% 60L | |
| e$min<-e$min+sec_overflow | |
| min_overflow<-e$min>60L | |
| e$hour<-e$hour+min_overflow | |
| e$min<-e$min %% 60L | |
| class(e)<-"bentime" |
| start on filesystem or runlevel [2345] | |
| stop on shutdown | |
| description "Jupyter / IPython Notebook Upstart script" | |
| script | |
| export HOME="/home/phil/Notebooks"; cd $HOME | |
| echo $$ > /var/run/ipython_start.pid | |
| exec su -s /bin/sh -c 'exec "$0" "$@"' phil -- /home/phil/Enthought/Canopy_64bit/User/bin/jupyter-notebook --config='/home/phil/.jupyter/jupyter_notebook_config.py' | |
| end script |
| library(RSQLite) | |
| filename <- "your_db_file.db" | |
| sqlite.driver <- dbDriver("SQLite") | |
| db <- dbConnect(sqlite.driver, | |
| dbname = filename) | |
| ## Some operations | |
| dbListTables(db) | |
| mytable <- dbReadTable(db,"your_table_name") |
2017-08-03: Since I wrote this in 2014, the universe, specifically Kirill Müller (https://github.com/krlmlr), has provided better solutions to this problem. I now recommend that you use one of these two packages:
I love these packages so much I wrote an ode to here.
I use these packages now instead of what I describe below. I'll leave this gist up for historical interest. 😆
| #' --- | |
| #' title: "Something fascinating" | |
| #' author: "Jenny Bryan" | |
| #' date: "`r format(Sys.Date())`" | |
| #' output: github_document | |
| #' --- |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://trifacta.github.io/vega/lib/d3.v3.min.js"></script> | |
| <script src="http://trifacta.github.io/vega/vega.js"></script> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| var iris_spec = { |
Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.
| # vi: ft=dosini | |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = pavan.sss1991@gmail.com | |
| username = pksunkara | |
| [core] | |
| editor = nvim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| pager = delta | |
| [column] |