Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
)
func main() {
const MaxUint = ^uint(0)
const MinUint = 0
const MaxInt = int(^uint(0) >> 1)
@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
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 {
&sync.Pool{
New: func() interface{} {
buf := bytes.NewBuffer(nil)
buf.Grow(2048)
return buf
},
}
}
buf := BufferPool.Get().(*bytes.Buffer)
/** 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])
}
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
class Player()
case class X() extends Player {
override def toString(): String = {
"X"
}
}
case class O() extends Player {
override def toString(): String = {
"O"
}

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: