Note that the ansi sql standard defines "timestamp" as equivalent to "timestamp without time zone". However Spark's behavior depends on both the version of spark and the file format
format \ spark version | <= 2.0.0 | >= 2.0.1 |
---|
#!/bin/sh | |
## | |
# Xvfb headless startup | |
# | |
# #see: https://www.nomachine.com/AR10K00710 | |
## |
slightly-less-insecure-docker | |
wrapper around docker that perhaps makes it slightly less insecure | |
example usage: | |
DOCKER=/path/to/docker-wrapper | |
sudo $DOCKER run -it -v /etc/passwd:/etc/passwd -v /tmp:/tmp ubuntu | |
NOTE: |
[alias] | |
# Basically `log --oneline --decorate --graph` with different colors and some additional info (author and date) | |
lg = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset) %C(normal)%s%C(reset) %C(dim white)%an%C(reset) %C(dim blue)(%ar)%C(reset) %C(dim black)%d%C(reset)' | |
# lg (see above) with --first-parent | |
lgp = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset) %C(normal)%s%C(reset) %C(dim white)%an%C(reset) %C(dim blue)(%ar)%C(reset) %C(dim black)%d%C(reset)' --first-parent | |
# https://stackoverflow.com/questions/61510067/show-specific-commits-in-git-log-in-context-of-other-commits | |
hl = "!f() { cd -- ${GIT_PREFIX:-.}; grep --color -E \"$(git log --pretty=%h \"$@\" | tr '\n' '|')\" || true; }; f" | |
hlp = "!f() { cd -- ${GIT_PREFIX:-.}; less -R -p $(git log --pretty=%h \"$@\" | tr '\n' '|'); }; f" |
// source: http://unix.stackexchange.com/a/163115/1131 | |
// GS, 2016-01-27, simplify the code a little bit | |
#include <QApplication> | |
#include <QTimer> | |
#include <QClipboard> | |
#include <QMimeData> | |
#include <QDebug> | |
#include <string> | |
#include <iostream> |
/** | |
* Pretty prints a Scala value similar to its source represention. | |
* Particularly useful for case classes. | |
* @param a - The value to pretty print. | |
* @param indentSize - Number of spaces for each indent. | |
* @param maxElementWidth - Largest element size before wrapping. | |
* @param depth - Initial depth to pretty print indents. | |
* @return | |
*/ | |
private def prettyPrint(a: Any, indentSize: Int = 2, maxElementWidth: Int = 30, depth: Int = 0): String = { |
# PostgreSQL can be on a remote server but you'll need root privileges in Linux and superuser in PostgreSQL. | |
# First install build tools | |
sudo su | |
aptitude install build-essential | |
aptitude install postgresql-server-dev-9.4 | |
# Clone and build the PL/pgSQL server-side debugger |
;;;; hw7.lisp | |
;;; USAGE: | |
;;; | |
;;; Use the functions listed under the heading CONSTRUCTORS to create | |
;;; expressions. The CONSTRUCTORS, EVAL-PROG and PREPROCESS-PROG are | |
;;; the public interface. All other functions should be considered | |
;;; private. Symbols (not strings) are used to represent variables. | |
;;; | |
;;; CL-USER> (load "hw7.lisp") |
Here is a list of package vignettes _possibly_ built with **knitr** on CRAN. | |
```{r fetch-pkgs, include=FALSE} | |
pkgs = available.packages(contrib.url('https://cran.r-project.org', 'source')) | |
deps = tools::package_dependencies('knitr', pkgs, which = 'all', reverse = TRUE)[['knitr']] | |
deps = setdiff(deps, 'R.rsp') # packages that do not use knitr | |
deps = sort(c(deps, 'knitr')) | |
``` | |
```{r vig-list, include=FALSE, echo=FALSE, cache=TRUE, cache.extra=deps, message=FALSE, error=FALSE} | |
vigs = lapply(deps, function(pkg) { |
(setq enh-ruby-program "/home/gnufied/.rbenv/versions/1.9.3-p448/bin/ruby") | |
(autoload 'enh-ruby-mode "enh-ruby-mode" "Major mode for ruby files" t) | |
(add-to-list 'auto-mode-alist '("\\.rb$" . enh-ruby-mode)) | |
(add-to-list 'auto-mode-alist '("\\.rake$" . enh-ruby-mode)) | |
(add-to-list 'auto-mode-alist '("Rakefile$" . enh-ruby-mode)) | |
(add-to-list 'auto-mode-alist '("\\.gemspec$" . enh-ruby-mode)) | |
(add-to-list 'auto-mode-alist '("\\.ru$" . enh-ruby-mode)) | |
(add-to-list 'auto-mode-alist '("Gemfile$" . enh-ruby-mode)) | |
(add-to-list 'interpreter-mode-alist '("ruby" . enh-ruby-mode)) |