Tested with Apache Spark 1.3.1, Python 2.7.9 and Java 1.8.0_45 + workaround for Spark 1.4.x from @enahwe.
Download and install it from oracle.com
#! /bin/sh | |
# | |
# sparknb.sh | |
# Copyright (C) 2016 giulio <giulioungaretti@me.com> | |
# | |
# Distributed under terms of the MIT license. | |
# | |
VIRTUAL_ENV_DIR="/Users/giulio/Hack/python/Envs/spark3" | |
if [ -d $VIRTUAL_ENV_DIR ] | |
then |
const tileUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpandmbXliNDBjZWd2M2x6bDk3c2ZtOTkifQ._QA7i5Mpkd_m30IGElHziw' | |
const baseStyle = { | |
"color": "#ffffff", | |
"weight": 1, | |
fillOpacity: 0, | |
"opacity": 1 | |
}; | |
const data = { | |
"type": "MultiPolygon", |
" {{{ | |
set nocompatible " be iMproved, required | |
" grab os name | |
let s:uname = system("uname -s") | |
call plug#begin('~/.vim/plugged') | |
"}}} | |
" --------------------------------------------------------------------- Plugs | |
" {{{ | |
if s:uname == "Darwin\n" | |
"Mac specific plug ins |
com! -nargs=* SR call SearchReplaceBuffers(<f-args>) | |
:function! SearchReplaceBuffers(search, replace) | |
:bufdo! %s/a:search/a:replace/ge | |
:endfunction |
Tested with Apache Spark 1.3.1, Python 2.7.9 and Java 1.8.0_45 + workaround for Spark 1.4.x from @enahwe.
Download and install it from oracle.com
" Use Vim settings, rather than Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" Make backspace behave in a sane manner. | |
set backspace=indent,eol,start | |
" Switch syntax highlighting on | |
syntax on |
all: | |
gcc light.m -std=c99 -framework Foundation -framework IOKit -o light | |
clean: | |
rm -f light |
" IPython3 tmux integration | |
let g:ScreenImpl = "Tmux" | |
" Open an IPython3 shell. | |
autocmd FileType python map <LocalLeader>p :ScreenShell! ipython<CR> | |
" Close whichever shell is running. | |
autocmd FileType python map <LocalLeader>q :ScreenQuit<CR> | |
" Send current line to python and move to next line. | |
autocmd FileType python map <LocalLeader>rp V:ScreenSend<CR>j | |
" Send visual selection to python and move to next line. | |
autocmd FileType python map <LocalLeader>v :ScreenSend<CR>`>0j |
https://htmlpreview.github.io/?https://raw.githubusercontent.com/giulioungaretti/cv/feature/shiny/index.html |