Skip to content

Instantly share code, notes, and snippets.

@natbusa
natbusa / installation.md
Last active April 3, 2021 11:52
Dell XPS for Ubuntu 18.04

Dell XPS for Ubuntu 18.04

Bios:

press F12 on the Dell startup screen

  • disable safe boot
  • Change SATA Operation from "RAID On" to "AHCI"
  • Enable Legacy Boot as well as UEFI

Install Ubuntu from USB drive

Instructions are here: https://www.ubuntu.com/download/desktop

@cb372
cb372 / jargon.md
Last active May 8, 2024 09:21
Category theory jargon cheat sheet

Category theory jargon cheat sheet

A primer/refresher on the category theory concepts that most commonly crop up in conversations about Scala or FP. (Because it's embarassing when I forget this stuff!)

I'll be assuming Scalaz imports in code samples, and some of the code may be pseudo-Scala.

Functor

A functor is something that supports map.

@MishaelRosenthal
MishaelRosenthal / TraversableWithStatistics.scala
Created January 16, 2014 13:57
Adding mean and variance to Scala collections.
package com.liveperson.predictivedialer.common.utils
/**
* Created with IntelliJ IDEA.
* User: mishaelr
* Date: 1/16/14
* Time: 3:12 PM
*/
object TraversableWithStatistics {
implicit class RichTraversable[+A](collection: Traversable[A]){
@nicokruger
nicokruger / jvm-heap-usage.sh
Created August 21, 2012 14:22
Getting java heap usage using jstat
jdk1.7.0/bin/jstat -gccapacity 9043 | tail -n 1 | awk '{ print $4, $5, $6, $10 }' | python -c "import sys; nums = [x.split(' ') for x in sys.stdin.readlines()]; print(str(sum([float(x) for x in nums[0]]) / 1024.0) + ' mb');"