Skip to content

Instantly share code, notes, and snippets.

View uribo's full-sized avatar
🍉
fine

Shinya Uryu uribo

🍉
fine
View GitHub Profile
@julionc
julionc / 00.howto_install_phantomjs.md
Last active March 24, 2025 17:27
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@soh-i
soh-i / gg.r
Last active December 29, 2015 07:39
ggplot2 (0.9.3.1) 透明の背景にするやつ
g <- ...
ほげら
...
theme(axis.line.x=element_line(size=1),
axis.line.y=element_line(size=1),
axis.ticks.x=element_line(size=1),
axis.ticks.y=element_line(size=1),
axis.text.y=element_text(size=18),
axis.text.x=element_text(size=18),
@minorua
minorua / GSIMaps.tsv
Last active December 5, 2020 12:57
[QGIS][TileLayerPlugin] 地理院地図(GSI Maps: http://maps.gsi.go.jp/ )のタイルをタイルレイヤプラグインで利用するためのレイヤ情報データです。タイル・ズームレベルによっては追加の出所明示が必要な場合があります。利用にあたっては国土地理院コンテンツ利用規約(http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html )および地理院タイル一覧(http://maps.gsi.go.jp/development/ichiran.html )の該当箇所をよくお読み下さい。
#GSIMaps.tsv
#Last update: 2017-02-02
#title credit serviceUrl yOriginTop zmin zmax xmin ymin xmax ymax
標準地図 地理院タイル http://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png 1 2 18
淡色地図 地理院タイル http://cyberjapandata.gsi.go.jp/xyz/pale/{z}/{x}/{y}.png 1 2 18
白地図 地理院タイル http://cyberjapandata.gsi.go.jp/xyz/blank/{z}/{x}/{y}.png 1 5 14 122.78 20.4 154.78 45.58
English 地理院タイル http://cyberjapandata.gsi.go.jp/xyz/english/{z}/{x}/{y}.png 1 5 11 122.78 20.4 154.78 45.58
色別標高図 地理院タイル http://cyberjapandata.gsi.go.jp/xyz/relief/{z}/{x}/{y}.png 1 5 15 122.78 20.4 154.78 45.58
写真 地理院タイル http://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg 1 2 18
国土画像情報(第一期:1974~1978年撮影) 地理院タイル http://cyberjapandata.gsi.go.jp/xyz/gazo1/{z}/{x}/{y}.jpg 1 10 17 122.78 20.4 154.78 45.58
@bryanmayer
bryanmayer / xtableCommand.R
Last active January 1, 2016 21:09
Automatic italics into latex tables using xtable in R
library(xtable)
library(plyr)
fakedata = data.frame(
Bacteria = c("G. vaginalis", "L. crispatus"),
Count = log10(rlnorm(2*100, 13.5))
)
table1 = ddply(fakedata, .(Bacteria), summarize,
Bacteria = paste("\\textit{",unique(Bacteria),"}", sep=""),
@casallas
casallas / rjags_mac.md
Last active January 31, 2024 23:16
Installing rjags on a Mac

To install

  1. Install jags: in the terminal using homebrew brew install jags
  2. Install rjags: in R
install.packages("rjags")
library(rjags)

Potential issues

@tuki0918
tuki0918 / howto.md
Last active July 30, 2018 12:23
git hook 引用多めのため非公開

明日からはじめる Git フック


フックスクリプトの種類とサンプル

 

logo

@rmflight
rmflight / post-commit
Last active March 29, 2024 19:43
useful commit hooks for R package dev
#!/path/2/Rscript
# License: CC0 (just be nice and point others to where you got this)
# Author: Robert M Flight <[email protected]>, github.com/rmflight
#
# This is a post-commit hook that after a successful commit subsequently increments the package version in DESCRIPTION
# and commits that. Analogous to the pre-commit at https://gist.github.com/rmflight/8863882, but useful if you only have
# good reasons for not doing it on the pre-commit.
#
# To install it, simply copy this into the ".git/hooks/post-commit" file of your git repo, change /path/2/Rscript, and make
@ramnathv
ramnathv / README.md
Last active November 6, 2022 21:58
Leaflet Routing Machine with rCharts

Leaflet Routing Machine Plugin

I saw the following issue posted to the rMaps github repo today.

I am new to using rMaps and leaflet. I would like to plot the route between two locations. The leaflet routing machine plugin allows us to do this (https://github.com/perliedman/leaflet-routing-machine). I am not quite sure how to use the functions addAssets() and setTemplate() to be able to use this plugin.

This was a good exercise for me to test whether these newly introduced mechanisms addAssets and setTemplate would allow one to easily extend the base leaflet binding in rMaps.

Let us start by creating the base map.

Install package
```{r eval=FALSE}
install_github("ropensci/git2r")
```
Load libary
```{r}
library("git2r")
@jbryer
jbryer / gitbook.R
Last active February 1, 2023 09:07
Functions to work with Gitbook.io and R Markdown
require(knitr)
#' Initializes a new Gitbook.
#'
#' This will initalize a new Gitbook in the given directory. When done, it will
#' also change the working directory.
#'
#' @author Jason Bryer <[email protected]>
newGitbook <- function(dir) {
.Deprecated('This function has been moved to the gitbook R package. See http://jason.bryer.org/Rgitbook for more information')