Skip to content

Instantly share code, notes, and snippets.

View evenh's full-sized avatar

Even Holthe evenh

View GitHub Profile
package net.evenh.reproduction.issue1191;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@evenh
evenh / idea64.exe.vmoptions
Created March 22, 2017 12:46
My IntelliJ VM options (2016.3.5, 64-bit)
-Xms2560m
-server
-ea
-XX:+UseG1GC
-XX:-UseParNewGC
-XX:-UseConcMarkSweepGC
-XX:CompileThreshold=4250
-XX:ReservedCodeCacheSize=256m
-XX:-OmitStackTraceInFastThrow
-XX:+HeapDumpOnOutOfMemoryError
@evenh
evenh / keybase.md
Created December 5, 2014 14:03
keybase.md

Keybase proof

I hereby claim:

  • I am evenh on github.
  • I am evenh (https://keybase.io/evenh) on keybase.
  • I have a public key whose fingerprint is C9A8 D396 43BF 5297 11F0 BCEB 8009 6C5F 284E C5F8

To claim this, I am signing this object:

@evenh
evenh / print_stars.rb
Created July 3, 2014 15:30
Font awesome stars method
def print_stars(stars, total)
# Define return
html = "<div class='stars' data-rating='#{stars}' data-total='#{total}'>"
# Split floating point
parts = stars.to_s.split(".")
# Number of stars
$num = total.to_s.to_i
$i = 0;
@evenh
evenh / excuse.py
Last active August 29, 2015 13:56
A small Python script to fetch a random programming excuse
#!/usr/bin/env python
import urllib2
from HTMLParser import HTMLParser
# A simple script to get a quote from programmingexcuses.com
# by Even Holthe
#
# Can be invoked like this: curl -L -s http://tinyurl.com/programmingexcuses | python
class PEParser(HTMLParser):