Skip to content

Instantly share code, notes, and snippets.

/* required styles */
.book .book-body .page-wrapper .page-inner section.normal .leaflet-map-pane,
.book .book-body .page-wrapper .page-inner section.normal .leaflet-tile,
.book .book-body .page-wrapper .page-inner section.normal .leaflet-marker-icon,
.book .book-body .page-wrapper .page-inner section.normal .leaflet-marker-shadow,
.book .book-body .page-wrapper .page-inner section.normal .leaflet-tile-pane,
.book .book-body .page-wrapper .page-inner section.normal .leaflet-tile-container,
.book .book-body .page-wrapper .page-inner section.normal .leaflet-overlay-pane,
.book .book-body .page-wrapper .page-inner section.normal .leaflet-shadow-pane,
@bhaskarvk
bhaskarvk / CRAN-Readability.md
Last active April 12, 2017 17:05
Readability improvements for 'r-project.org' sites.

Readability Improvements for 'r-project.org' sites.

A custom CSS for '*.r-project.org' websites, because the default styling or rather the lack of it makes my eyes bleed!

It is based on the skeleton-framework, a minimalist CSS f/w with some of my added customizations. Tested on Firefox, Chrome, Safari. (IE/Edge folks Switch to Firefox/Chrome/Safari ¯_(ツ)_/¯ )

Here are before and after comparison screenshots.

Before Styling

@bhaskarvk
bhaskarvk / openblas-enable-clang.diff
Last active April 28, 2017 22:32
Diff files to make openblas compile on osx with clang-4.0 and openmp
diff --git a/Makefile.system b/Makefile.system
index b05177b..4b65edf 100644
--- a/Makefile.system
+++ b/Makefile.system
@@ -406,7 +406,7 @@ CCOMMON_OPT += -fopenmp
endif
ifeq ($(C_COMPILER), CLANG)
-$(error OpenBLAS: Clang didn't support OpenMP yet.)
+# $(error OpenBLAS: Clang didn't support OpenMP yet.)
@bhaskarvk
bhaskarvk / User2017-GeoDataViz-Tutorial-Setup.md
Last active July 5, 2017 04:33
Geospatial Data Visualization in R, A UseR! 2017 tutorial.

Geospatial Data Visualization using R

The goal of user2017.geodataviz is to privide a comprehensive overview of the options available in the R language for Geospatial data visualization. This tutorial covers ...

  • R Packages

  • R Data Structures for Spatial Data

  • Operations Supported on Spatial Data

@bhaskarvk
bhaskarvk / Setup GCC and CLANG Toolchains.md
Last active July 4, 2024 09:47
Proper GCC (vers. 5/6/7) & LLVM/CLANG (vers. 4/5) Toolchain Setup on Ubuntu/Linux Mint

This approach uses update-alternatives to manage GCC and LLVM/CLANG C/C++ compiler toolchains. Although tested on Linux Mint 18.3, this approach should work on any Debian based distro or for that matter any Linux distro with update-alternatives support, provided the packages are installed correctly.

There are 3 files

  • gcc-alternatives.sh installs GCC versions 5/6/7 and sets up alternatives for gcc/g++/cpp/gfortran.
  • llvm-clang-alternatives.sh installs LLVM and CLANG versions 4/5 and sets up alternatives for various LLVM and CLANG programs including clang and clang++.
  • cc-alternatives.sh sets up alternatives for the cc, cxx, and the ld commands. This script can be used to change systemwide default compiler/linker combination to either GCC or CLANG.

Once these scripts are run you can change the system GCC/CLANG versions by running sudo update-alternatives --config gcc|clang. To change the default compiler/linker combo used by t