Skip to content

Instantly share code, notes, and snippets.

@rikkus
rikkus / pinboard.css
Created July 14, 2020 13:52
CSS to make pinboard.in readable for me. Adapted from https://chrisburnell.com/article/theming-pinboard
/* Import Open Sans */
@import url("//fonts.googleapis.com/css?family=Open+Sans:400italic,400,600");
/* Import Normalize - from chrisburnell.com */
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */img,legend{border:0}legend,td,th{padding:0}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-b
@rikkus
rikkus / # kcalc - 2019-04-25_13-01-39.txt
Created April 25, 2019 12:18
kcalc (kde-mac/kde/kcalc) on macOS 10.14.4 - Homebrew build logs
Homebrew build logs for kde-mac/kde/kcalc on macOS 10.14.4
Build date: 2019-04-25 13:01:39
fun foo(input : Iterable<String>) : Int {
return input.fold (object { val a: Int = 0; val b: Int = 0 })
{
acc, item ->
object {
val a: Int = 1
val b: Int = 1
}
}.b
}
/*
* Your task is to implement the indexOfMax() function so that it returns
* the index of the largest element in the array, or null if the array is empty.
*/
package maxindex
fun indexOfMax(a: IntArray): Int? {
if (!a.any())
return null

Keybase proof

I hereby claim:

  • I am rikkus on github.
  • I am rikkus (https://keybase.io/rikkus) on keybase.
  • I have a public key whose fingerprint is 0F33 A702 7C3C 4279 8FB6 9154 6DC9 4BB2 2DFA 59CF

To claim this, I am signing this object: