Skip to content

Instantly share code, notes, and snippets.

:octocat:
Learning as much

Jereme Causing jeremejazz

:octocat:
Learning as much
Block or report user

Report or block jeremejazz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jeremejazz
jeremejazz / update_theme.sh
Created May 26, 2019
Hugo Theme Update Script. Uses git subtree
View update_theme.sh
#!/usr/bin/env bash
# This script will download the latest theme release from the Github repository.
# requires jq
REPO="" # github "user/repo"
GITHUB_USERNAME=""
metas=$(echo $REPO | tr "/" "\n")
THEME_NAME=$(echo $metas | awk '{print $2}')
@jeremejazz
jeremejazz / gdal2tiles.py
Created May 2, 2019
Gdal2tiles-leaflet converted to Python3
View gdal2tiles.py
#!/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
Gdal2tiles-leaflet converted to Python3
View gdal2tiles.py
#!/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 Mar 28, 2019
Typescript and Webpack configuration for multi-page site
View tsconfig.json
{
"compilerOptions": {
"outDir": "./public/js/dist",
"allowJs": true,
"target": "es5",
"module": "es6"
},
"include": [
"./public/js/src/**/*"
]
View simple-jquery-bootstrap-validation.js
$.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 Mar 5, 2019
A collection of useful tools in Go
View Go Arsenal.md

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 Aug 20, 2018
Leaflet Webpack Sample
View map.js
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
View packt-free-books.md
  • [Free Big Data & Management eBooks][]

Free Big Data & Data Management eBooks

Free PDF eBook: Hadoop Explained
@jeremejazz
jeremejazz / .vimrc
Last active Dec 29, 2017
My Personal Vim Configuration file
View .vimrc
" 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 Feb 21, 2018
Neovim Configuration
View init.vim
" 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
You can’t perform that action at this time.