Skip to content

Instantly share code, notes, and snippets.

View jeremejazz's full-sized avatar
🏠

Jereme Causing jeremejazz

🏠
View GitHub Profile
@jeremejazz
jeremejazz / gdal2tiles.py
Created May 2, 2019 11:48
Gdal2tiles-leaflet converted to Python3
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# ******************************************************************************
# $Id: gdal2tiles.py 27349 2014-05-16 18:58:51Z rouault $
#
# Project: Google Summer of Code 2007, 2008 (http://code.google.com/soc/)
# Support: BRGM (http://www.brgm.fr)
# Purpose: Convert a raster into TMS (Tile Map Service) tiles in a directory.
# - generate Google Earth metadata (KML SuperOverlay)
@jeremejazz
jeremejazz / gdal2tiles.py
Created May 2, 2019 11:48
Gdal2tiles-leaflet converted to Python3
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# ******************************************************************************
# $Id: gdal2tiles.py 27349 2014-05-16 18:58:51Z rouault $
#
# Project: Google Summer of Code 2007, 2008 (http://code.google.com/soc/)
# Support: BRGM (http://www.brgm.fr)
# Purpose: Convert a raster into TMS (Tile Map Service) tiles in a directory.
# - generate Google Earth metadata (KML SuperOverlay)
@jeremejazz
jeremejazz / tsconfig.json
Created March 28, 2019 10:31
Typescript and Webpack configuration for multi-page site
{
"compilerOptions": {
"outDir": "./public/js/dist",
"allowJs": true,
"target": "es5",
"module": "es6"
},
"include": [
"./public/js/src/**/*"
]
$.each($("#orders_modal input, #orders_modal textarea, #orders_modal select"), function (index, value) {
if($(value).attr("required") === undefined){
return;
}else{
if(!$(value).val()){
$(value).addClass("is-invalid")
}else{
$(value).removeClass("is-invalid")
}
}
@jeremejazz
jeremejazz / Go Arsenal.md
Last active March 5, 2019 02:39
A collection of useful tools in Go

This is a shorter version of awesome go. Just tools I personally use.

Database

Utilities

  • go-funk Modern Go utility library which provides helpers (map, find, contains, filter, chunk, reverse, ...).
@jeremejazz
jeremejazz / map.js
Last active July 16, 2020 20:16
Leaflet Webpack Sample
import L from 'leaflet';
import 'leaflet/dist/leaflet.css';
import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.webpack.css'; // Re-uses images from ~leaflet package
@jeremejazz
jeremejazz / packt-free-books.md
Last active January 22, 2018 02:52
Free Packt Books
  • [Free Big Data & Management eBooks][]

Free Big Data & Data Management eBooks

Free PDF eBook: Hadoop Explained
@jeremejazz
jeremejazz / .vimrc
Last active December 29, 2017 07:11
My Personal Vim Configuration file
" Jereme's Vim configuration
" Install vim-plug
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" then run :PlugInstall
set nocompatible " required
set splitbelow
set splitright
set foldmethod=indent
set foldlevel=99
@jeremejazz
jeremejazz / init.vim
Last active February 21, 2018 03:16
Neovim Configuration
" NeoVim Configuration
" ~/.config/nvim/init.vim
" Check if Plug is already installed. make sure curl is installed first
" run PlugInstall afterwards
if empty(glob("~/.local/share/nvim/site/autoload/plug.vim"))
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
auto VimEnter * PlugInstall
endif
@jeremejazz
jeremejazz / blockchain-tutorial-links.md
Last active August 27, 2022 08:21
Free Blockchain tutorials