- Open msys2 shell
- Get pdf-tools
git clone https://github.com/politza/pdf-tools cd pdf-tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from IPython.core.interactiveshell import InteractiveShell | |
| InteractiveShell.ast_node_interactivity = "all" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://henrik.nyh.se/2008/12/git-dirty-prompt | |
| # http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
| # username@Machine ~/dev/dir[master]$ # clean working directory | |
| # username@Machine ~/dev/dir[master*]$ # dirty working directory | |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
| } | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" |
(let* ((query "test")
(url-request-method "GET")
(random-id (format "%016x" (random (expt 16 16))))
(expiration (format-time-string "%a, %d %b %Y %H:%M:%S.00 %Z"
(time-add (current-time)
(seconds-to-time 3600)) t))
(my-cookie (mapconcat #'identity
(list (format "GSP=ID=%s:CF=4; " random-id)
(format "expires=%s" expiration)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Package list | |
| create.package.list <- function(){ | |
| make.packages.html(temp = TRUE) | |
| file.copy(from = file.path(tempdir(), ".R/doc/html/packages.html"), to = file.path("doc", "html"), overwrite = TRUE, copy.date = TRUE) | |
| doc <- htmlTreeParse(file.path("doc", "html", "packages.html"), useInternal = TRUE) | |
| oldNode <- newNode <- querySelector(doc, ".toplogo") | |
| xmlAttrs(newNode)["src"] <- "logo.png" | |
| addAttributes(newNode, width = "100", height = "78") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/r | |
| library(inline) | |
| library(rbenchmark) | |
| ## openMPCode example from Rcpp/examples/OpenMP/ by Dirk E. | |
| openMPCode <- ' | |
| // assign to C++ vector | |
| std::vector<double> x = Rcpp::as<std::vector< double > >(xs); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lsm = function() { | |
| modes = c("numeric", "character", "list", "function") | |
| for (mode in modes) { | |
| cat(sprintf("mode: %s", mode), "\n") | |
| print(ls.str(mode=mode, envir=globalenv()), max.level=0) | |
| cat("\n") | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Example of how to parse short/long options with 'getopt' | |
| # | |
| OPTS=`getopt -o vhns: --long verbose,dry-run,help,stack-size: -n 'parse-options' -- "$@"` | |
| if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi | |
| echo "$OPTS" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun dotspacemacs/user-init () | |
| (custom-set-variables '(spacemacs-theme-custom-colors | |
| '( | |
| ;; (base . "#b0c2c2") | |
| (base . "#839496") | |
| (act2 . "#132126") | |
| (border . "#b58900") | |
| (bg1 . "#132126") | |
| ;; (bg2 . "#002b36") | |
| (bg2 . "#132b34") |
NewerOlder