Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am countingtoten on github.
  • I am countingtoten (https://keybase.io/countingtoten) on keybase.
  • I have a public key whose fingerprint is B9E8 2A68 DC51 59C2 9E55 679D 4788 757F 15B3 847A

To claim this, I am signing this object:

class Player()
case class X() extends Player {
override def toString(): String = {
"X"
}
}
case class O() extends Player {
override def toString(): String = {
"O"
}
module Main exposing (..)
import Html exposing (..)
import Html.Events exposing(onClick)
type alias Model = { incr: Int, decr: Int, value: Int }
type Msg = Increment | Decrement
update : Msg -> Model -> Model
/** Reads queue of new users to index */
class NewUserQueue extends Actor with ActorLogging { ... }
// Define our messages for the NewUserQueue
object NewUserQueue {
case class Listen(ref: ActorRef)
case class StopListen(ref: ActorRef)
case class NewUsers(users: Seq[User])
}
&sync.Pool{
New: func() interface{} {
buf := bytes.NewBuffer(nil)
buf.Grow(2048)
return buf
},
}
}
buf := BufferPool.Get().(*bytes.Buffer)
import scala.annotation.tailrec
import scala.util.{Try, Success, Failure}
sealed trait Player
case object X extends Player {
override def toString: String = {
"X"
}
}
case object O extends Player {
@countingtoten
countingtoten / .bashrc
Created August 21, 2018 20:14
My bash config before I switched to zsh
#!/bin/bash
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export HOMEBREW_GITHUB_API_TOKEN=""
export GITLAB_PRIVATE_TOKEN=""
# Ruby (fixes Homebrew using system Ruby)
export GEM_HOME=$HOME/.gems
package main
import (
"fmt"
)
func main() {
const MaxUint = ^uint(0)
const MinUint = 0
const MaxInt = int(^uint(0) >> 1)
@countingtoten
countingtoten / How I saved a year of our family pictures from a dead hard drive.
Created September 18, 2019 18:22 — forked from chitchcock/How I saved a year of our family pictures from a dead hard drive.
"How I saved a year of our family pictures from a dead hard drive." saved ars forum
Copied from http://arstechnica.com/civis/viewtopic.php?f=19&t=1197911 (via http://www.libertypages.com/clarktech/?p=349)
-----------------------------------------------
MarkLT1
Ars Scholae Palatinae
et Subscriptor
Tribus: Where the women are strong, the men are good looking, and all the children are above average.
Registered: Nov 11, 2002
Posts: 924
-----------------------------------------------
@countingtoten
countingtoten / Brewfile
Created October 20, 2019 04:36 — forked from cliss/Brewfile
Casey Liss's Brewfile, as of 8 October 2019
cask_args appdir: "/Applications"
tap "homebrew/cask-fonts"
brew "mas"
mas "1Blocker", id: 1107421413
mas "Day One", id: 1055511498
mas "Deliveries", id: 924726344
mas "Due", id: 524373870
mas "Fantastical", id: 435003921