Skip to content

Instantly share code, notes, and snippets.

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@trevorriles
trevorriles / SqlExpr.hs
Last active April 18, 2018 20:33
SqlExpr
{-# LANGUAGE GADTs #-}
module SqlExpr where
import Data.Monoid ((<>))
import Data.Char (toLower)
data Comparator = EQ' | GT' | LT' | GTE' | LTE'
instance Show Comparator where
@trevorriles
trevorriles / keybase.md
Created September 20, 2017 12:39
keybase.md

Keybase proof

I hereby claim:

  • I am trevorriles on github.
  • I am trevorriles (https://keybase.io/trevorriles) on keybase.
  • I have a public key whose fingerprint is E20C 76E8 EE00 9E62 96F8 E098 1944 4327 7B6A B04C

To claim this, I am signing this object:

import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
main =
div []
[ input [ list "data" ] []
, datalist [id "data"]
[ option [] [text "one"]
, option [] [text "two"]
java_test(
name = "unit",
srcs = glob(["test/unit/**/*.java"]),
args = ["com.org.test.class"],
deps = [
":test-framework",
":shared-utils",
"//:junit",
"//:hamcrest",
"//shared/lib_logging:logging",
build --javacopts="-extra_checks:off"
build --javacopts="-source 8"
build --javacopts="-target 8"
trevor.riles@cake:~/code/crash_bot/ > mix deps.compile
==> gpb (compile)
Compiled src/gpb.erl
==> exprotobuf
Compiled lib/exprotobuf/define_enum.ex
== Compilation error on file lib/exprotobuf/field.ex ==
** (ArgumentError) no record field found at /Users/trevor.riles/code/crash_bot/deps/gpb/include/gpb.hrl
(elixir) lib/record/extractor.ex:38: Record.Extractor.extract_record/2
lib/exprotobuf/field.ex:2: (module)
defmodule CrashBot.Mixfile do
use Mix.Project
def project do
[app: :crash_bot,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps]
end
### Keybase proof
I hereby claim:
* I am trevorriles on github.
* I am trevorriles (https://keybase.io/trevorriles) on keybase.
* I have a public key whose fingerprint is 8305 F5ED 1F2A ABBA 38F7 FDEC 5D6B 1EE1 3AB8 7309
To claim this, I am signing this object:
{- First Version -}
module Bob(responseFor) where
import Data.Char
responseFor :: [Char] -> [Char]
responseFor [] = "Fine. Be that way."
responseFor string
| 0 == length (dropWhile (==' ') string) = "Fine. Be that way."
| string == map toUpper string = "Woah, chill out!"