Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ikavalio on github.
  • I am ikavalio (https://keybase.io/ikavalio) on keybase.
  • I have a public key ASB2TOSiHtyI3LEN7eo7EhHqMhQR7YnPdUL7tkXryR9ogAo

To claim this, I am signing this object:

@ikavalio
ikavalio / config
Created October 18, 2017 21:44
i3wm status configuration
# ~/.config/i3status/config
general {
colors = true
interval = 5
}
# order += "ipv6"
order += "disk /"
order += "wireless _first_"
@ikavalio
ikavalio / config
Created October 18, 2017 21:42
i3wm configuration for laptop
# ~/.i3/config
# Keyboard layout can be configured in ~/.config/omf/init.fish by adding
#
# setxkbmap -model pc104 -layout us,ru -option grp:alt_space_toggle
bar {
status_command i3status
position top
}
@ikavalio
ikavalio / cstdatomic_hack.cpp
Created October 10, 2017 21:51
Cstdatomic copy constructor hack
#if __GNUC__ == 4 && __GNUC_MINOR__ < 6
#include <cstdatomic>
#else
#include <atomic>
#endif
#include <vector>
struct S {
std::atomic_int a;
object Solution {
def main(args: Array[String]) {
println(
draw(0, 100 / 2, 100, 16, 0, 63, scala.io.StdIn.readInt(), 1, 5).reverseMap(_.mkString).mkString("\n")
)
}
def mergeResult(l1: List[List[Char]], l2: List[List[Char]]): List[List[Char]] =
l1 zip l2 map { p: (List[Char], List[Char]) => p._1 ::: p._2 }