Skip to content

Instantly share code, notes, and snippets.

View jastice's full-sized avatar
🤗

Justin Kaeser jastice

🤗
View GitHub Profile
@jastice
jastice / integrations-bsp-intellij-bloop.md
Last active June 28, 2019 11:48 — forked from jvican/integrations-bsp-intellij-bloop.md
Instructions to try the BSP IntelliJ-Bloop integration out.

Installation instructions

  1. Install bloop 1.0.0-M11 by following the Bloop installation instructions. Then, make sure you start up the bloop server on the background and to generate the configuration files by running bloopInstall in your build tool.
  2. Install IntelliJ 2018.2 EAP and then enable the nightly version of the Scala Plugin by opening Preferences | Languages & Frameworks | Scala | Updates tab and selecting the Nightly plugin update channel: intellij-eap
  3. check for updates and download the Scala plugin Nightly release.
  4. Reboot IntelliJ. The Scala plugin should now have version 2018.2.277 or higher (check in Preferences | Plugins)
  5. Open the "Find Action" search box (usual hotkey Shift+Ctrl+A or shift+cmd+A) and search for "bsp". The search box will show the full action name: "Enable experime
[warn] Run 'evicted' to see detailed eviction warnings
[info] Update report:
[info] Resolve time: 163 ms, Download time: 7 ms, Download size: 0 bytes
[info] compile:
[info] com.lihaoyi:scalarx_2.11
[info] - 0.3.0
[info] status: release
[info] publicationDate: Sat Jan 23 05:34:42 CET 2016
[info] resolver: sbt-chain
[info] artifactResolver: sbt-chain
@jastice
jastice / allaboutthatbayes.md
Last active September 20, 2021 20:59
All about that Bayes

Because you know I'm all about that Bayes,
'Bout that Bayes, low frequentist
I'm all 'bout that Bayes, 'bout that Bayes, low frequentist
I'm all 'bout that Bayes, 'bout that Bayes, low frequentist
I'm all 'bout that Bayes, 'bout that Bayes

Yeah it's pretty clear I can't count to two
But I can calculate odds like I'm supposed to do

Cause I got priors that beat your stats to the chase

@jastice
jastice / pizza-sauce.md
Created May 14, 2015 10:17
A Fine Pizza Sauce

Pizza Sauce

Ingredients

  • 500g tomato purée
  • 4 Tbsp concentrated tomato
  • 2 cloves garlic
  • 2 Tbsp olice oil
  • 2 tsp basil
  • 2 tsp oregano
@jastice
jastice / kaeserkuchen.md
Last active August 6, 2016 20:42
Käserkuchen

Käserkuchen

Zutaten

Hauptmasse

  • 4 Eier, Eigelb
  • 1 kg Quark
  • 60 g Stärke
  • 1 Limette
@jastice
jastice / Game.java
Created January 16, 2015 19:54
Bowling DDDified
package de.munich.softwerkskammer;
import java.util.ArrayList;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
public class Game {
private Deque<Frame> frames = new LinkedList<Frame>();
private List<Roll> rolls = new ArrayList<Roll>();
@jastice
jastice / lebkuchen.md
Last active August 29, 2015 14:10
Justin's Lebkuchen

Justin's Lebkuchen

A variation of Elisenlebkuchen, which contain no flour. Makes ca 45-60 Lebkuchen, 7cm.

Vegan, gluten-free (with the right kind of oblaten), certainly not low-fat or low-sugar.

Primary ingredients

  • 900g nuts or similar. Preferred mixture:
@jastice
jastice / gist:bfccf4b96b40be3eb432
Created August 17, 2014 15:47
Why does this compile?
type Thing t = { t | a:Int, b: String }
type Tag = { c: Int, d: String }
type Tagged = Thing Tag
thing = { a=3, b="foo" }
tagged = { thing | d = "derp" }
write: Tagged -> Element
write {a,b,c,d} = asText <| join " " [show c, d]
@jastice
jastice / bubblephysics.elm
Created August 5, 2014 15:34
Bubble Physics engine in Elm
-- based roughly on http://gamedevelopment.tutsplus.com/tutorials/gamedev-6331
module BubblePhysics where
-- plain old pair for coordinates, vectors
type Vec2 = (Float,Float)
type Body b = { b |
velocity: Vec2, -- direction and speed
inverseMass: Float, -- we usually use only inverse mass for calculations
restitution: Float -- bounciness factor
@jastice
jastice / nobetterway?.elm
Last active August 29, 2015 14:04
The missing subtype problem
type Body s = { pos:(Int,Int), shape : s }
data Shape = Box {w:Int, h:Int} | Bubble {radius:Int}
mv: (Int,Int) -> Body a -> Body a
mv (x,y) body =
let (x0,y0)= body.pos
in { body | pos <- (x0+x, y0+y)}
myBubble = Body (0,0) <| Bubble {radius=10}