Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Yuzwa erikyuzwa

View GitHub Profile
@erikyuzwa
erikyuzwa / spring-boot-one-liner.md
Last active Dec 8, 2019
java spring project one liner from curl
View spring-boot-one-liner.md

setup

one liner for generating a new spring-boot project in the CURRENT folder

  • dependencies: devtools,web,data-jpa,security,session,h2,thymeleaf
  • project type: maven
  • packaging : war
curl https://start.spring.io/starter.zip -d packaging=war -d dependencies=devtools,web,data-jpa,security,session,h2,thymeleaf -d type=maven-project -d baseDir=. | tar -xzvf -
View eventBus.js
/**
* subscriptions data format:
* { eventType: { id: callback } }
*/
const subscriptions = { };
const getNextUniqueId = getIdGenerator();
function subscribe(eventType, callback) {
const id = getNextUniqueId();
View he_had_a_year_to_do_it_in.txt
He had a year to do it in
So brushed the thought away,
A chap with half his energy
Might do it in a day.
A year! ‘Twas too ridiculous,
As everyone should find;
However, he would get it done
And have it off his mind.
But not today. A few months hence would suit him better still;
@erikyuzwa
erikyuzwa / .bash_profile
Created Mar 19, 2017 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
View .bash_profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
You can’t perform that action at this time.