This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query foo($l: String!) { | |
user(login: $l) { | |
login | |
name | |
location | |
websiteUrl | |
avatarUrl | |
bio | |
bioHTML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PROJECT_ROOT := $(shell pwd) | |
VERSION := $(shell "${PROJECT_ROOT}/docker/src/git-version.sh") | |
DEV_COMPOSE:="${PROJECT_ROOT}/docker/dev.compose.yml" | |
SHFMT=shfmt -i 2 -ci | |
RUN_IN_CONTAINER="${PROJECT_ROOT}/bin/run-in-container.sh" "${DEV_COMPOSE}" | |
export PROJECT_ROOT := $(shell pwd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveGeneric, OverloadedStrings, DeriveAnyClass #-} | |
{-# LANGUAGE TemplateHaskell, NamedFieldPuns, LambdaCase #-} | |
{-# LANGUAGE RankNTypes, TypeOperators, Strict #-} | |
{-# LANGUAGE DuplicateRecordFields #-} | |
{-| For each simulation, every person is randomly assigned a task, and | |
normally randomly decides how long each task ends up taking for this | |
particular simulation; it then walks forward in time until the first | |
person (or people) complete their task, at which point it randomly | |
assigns new tasks from the remaining, chooses normal random numbers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import loglevel from 'loglevel'; | |
import { gaussian, randomBetweenMinAndMax } from './random-utils'; | |
interface IPeriodEntry { | |
calories: number; | |
workout: boolean; | |
} | |
interface ISimEntry { | |
correctnessFactor: number; | |
period: IPeriodEntry[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://git.gnu.io/chreekat/yesod/commit/41faf62094ad7077573de797599c742ff9401c4e | |
> mkYesod "HW" [$parseRoutes| | |
> / RootR GET | |
> /form FormR | |
> /static StaticR Static hwStatic | |
> /autocomplete AutoCompleteR GET | |
---- | |
handleFormR = do | |
> (res, form, enctype, nonce) <- runFormPost $ fieldsToTable $ (,,,,,,,,) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
with import <nixhome> { inherit stdenv; inherit pkgs; }; | |
let | |
toBin = pkg: "${pkg}/bin"; | |
localPkgs = [ tmux | |
awscli | |
sbt | |
jq | |
moreutils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ericbmerritt on github. | |
* I am ericbmerritt (https://keybase.io/ericbmerritt) on keybase. | |
* I have a public key ASBQF5mlsvQX8wYFIFRkTtwfeVqAkABdOzw4Rp6dzFGtlgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable XMonad Desktop Environment. | |
windowManager = { | |
xmonad.enable = true; | |
xmonad.enableContribAndExtras = true; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, symlinkJoin, dockerTools, coreutils, writeScript, glibcLocales, | |
metadrift }: | |
let | |
metadriftConfig = { | |
environment.systemPackages = [ metadrift ]; | |
}; | |
minimalDocker = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remote: -----> Fetching .debs for liblapack-dev | |
remote: Reading package lists... | |
remote: Building dependency tree... | |
remote: The following extra packages will be installed: | |
remote: libblas-dev libblas3 libgfortran3 liblapack3 | |
remote: The following NEW packages will be installed: | |
remote: libblas-dev libblas3 libgfortran3 liblapack-dev liblapack3 | |
remote: 0 upgraded, 5 newly installed, 0 to remove and 50 not upgraded. | |
remote: Need to get 4,173 kB of archives. | |
remote: After this operation, 19.5 MB of additional disk space will be used. |
NewerOlder