Skip to content

Instantly share code, notes, and snippets.

View amihaiemil's full-sized avatar
☄️
Implementing objects.

Mihai A. 🇷🇴🇩🇪🇬🇧🇫🇷 amihaiemil

☄️
Implementing objects.
View GitHub Profile
/**
* Get how much time has passed since refdate to date.
* @param date
* @param refdate
* @returns Json representing the time passed in with years, months and days.
* E.g. From 15.03.1994 to 24.05.2016 the time passed is
* 22years, 2 months and 9 days.
*/
function timePassed(date, refdate) {
var year = date.getFullYear();

cd /tmp/0pdd/opencharles/charles-rest && pdd -q -f /tmp/pdd.xml20170119-1757-xqjon0: 256 (not zero):

/app/objects/exec.rb:38:in run' /app/objects/git_repo.rb:60:in xml' /app/objects/puzzles.rb:43:in deploy' /app/objects/job.rb:42:in proceed' /app/objects/job_emailed.rb:48:in proceed' /app/objects/job_detached.rb:51:in block in exclusive' /app/vendor/ruby-2.2.2/lib/ruby/2.2.0/timeout.rb:89:in `block in timeout'

@amihaiemil
amihaiemil / mgramin_sql-boot_review.md
Last active October 24, 2017 06:47
2017 Award Review for mgramin/sql-boot
@amihaiemil
amihaiemil / DrBookings_drbookings_review.md
Last active October 24, 2017 06:48
2017 Award review for project DrBookings/drbookings
@amihaiemil
amihaiemil / mafagafogigante_dungeon_review.md
Last active October 24, 2017 06:48
2017 Award review for Java project mafagafogigante/dungeon
@amihaiemil
amihaiemil / multiple_jdks_macos.md
Last active April 9, 2020 09:24
Handle Multiple JDKs MacOs
  1. Install the JDKs form Oracle's website (in this example we have JDK 8 and JDK 11).
  2. Open file ~/.bash_profile and write the following (this will make sure that the variables are persistent and not just available for the current Terminal session):
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_11_HOME=$(/usr/libexec/java_home -v11)

alias useJava8='export JAVA_HOME=$JAVA_8_HOME'
alias useJava11='export JAVA_HOME=$JAVA_11_HOME'