Skip to content

Instantly share code, notes, and snippets.

View jeremejazz's full-sized avatar

Jereme Causing jeremejazz

View GitHub Profile
@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
@jeremejazz
jeremejazz / qt-creator-configure-python.txt
Created May 12, 2017 01:20
Configure Qt Creator to Run Python / Convert UI files
Currently, Qt Creator allows you to create Python files (not projects) and run them. It also has syntax highlighting, but it lacks more complex features such as autocomplete.
Running scripts requires some configuration (I used this tutorial). Open Qt Creator and go to Tools->Options->Environment->External Tools. Click Add->Add category and create a new category (for example, Python). Then, select the created category and click Add->Add Tool to create a new tool - RunPy for example. Select the created tool and fill the fields on the right:
Description - any value
Executable - path to python.exe
Arguments - %{CurrentDocument:FilePath}
Working directory - %{CurrentDocument:Path}
Environment - QT_LOGGING_TO_CONSOLE=1
You get something like this:
@jeremejazz
jeremejazz / installKivySrc.sh
Created May 10, 2017 10:20 — forked from sixman9/installKivySrc.sh
Installs the latest Kivy source distribution from Github for Debian/Ubuntu
#!/bin/bash
kivyBaseBuildDir=/tmp
myKivyInstallAlias="kivyDev"
#Build and install Kivy on Ubuntu - http://kivy.org/docs/installation/installation.html#development-version
#Modify the PYTHONPATH to point at our Kivy install - see http://docs.python.org/2/tutorial/modules.html#the-module-search-path AND http://docs.python.org/2/tutorial/modules.html#standard-modules
sudo apt-get install python-setuptools python-pygame python-opengl python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev build-essential libgl1-mesa-dev libgles2-mesa-dev python-pip
if [ ! `pip freeze | grep -i cython` ]; then