Skip to content

Instantly share code, notes, and snippets.

@nboisteault
nboisteault / Test_LWC_with_docker.md
Last active September 5, 2022 14:08
Test Lizmap Web Client with Docker
@Pakillo
Pakillo / relief_maps_rspatial.R
Last active July 22, 2022 15:59
Quick elevation maps with R
library(sf)
library(terra)
## Define area
coords <- data.frame(x = c(-5.5, -5.5, -5.3, -5.3),
y = c(36.7, 36.8, 36.7, 36.8))
coords.sf <- st_as_sf(coords, coords = c("x", "y"), crs = 4326)
## Download elevation data
@elemoine
elemoine / apache.conf
Created August 30, 2019 06:04
Apache mod_fcgid configuration for QGIS Server
<VirtualHost *:80>
DocumentRoot /home/www/qgis-server
ServerName 172.16.0.162
ErrorLog ${APACHE_LOG_DIR}/qgis-server-error.log
LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" custom
CustomLog ${APACHE_LOG_DIR}/qgis-server-access.log custom
FcgidMaxRequestsPerProcess 1000
FcgidInitialEnv QGIS_SERVER_LOG_FILE /tmp/qgis-000.log
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 2
@oganm
oganm / punchcard.R
Last active October 2, 2021 13:29
a punchcard of git commits for a given repo
# this is to get data from a single git repository
library(dplyr)
library(anytime)
library(patchwork)
library(ggplot2)
commits = git2r::commits()
commitTime= commits %>% sapply(function(x){x$author$when$time}) %>% anytime
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="design.css" />
<script src="script.js"></script>
</head>
@cvitolo
cvitolo / trmm.R
Last active July 17, 2022 12:01
Download and convert TRMM data
#' Download and convert TRMM data
#'
#' @author Claudia Vitolo
#'
#' @description The TRMM dataset provide global historical rainfall estimation in a gridded format.
#'
#' @param fileLocation file path where to save the GeoTiff
#' @param url url where data is stored (e.g. "ftp://disc2.nascom.nasa.gov/data/TRMM/Gridded/3B43_V7/2012/")
#' @param product this is the code that identifies a product, default is "3B43"
#' @param version this is the version number, default is 7
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #