Skip to content

Instantly share code, notes, and snippets.

query foo($l: String!) {
user(login: $l) {
login
name
email
location
websiteUrl
avatarUrl
bio
bioHTML
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)
{-# 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
import loglevel from 'loglevel';
import { gaussian, randomBetweenMinAndMax } from './random-utils';
interface IPeriodEntry {
calories: number;
workout: boolean;
}
interface ISimEntry {
correctnessFactor: number;
period: IPeriodEntry[];
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 $ (,,,,,,,,)
with import <nixpkgs> {};
with import <nixhome> { inherit stdenv; inherit pkgs; };
let
toBin = pkg: "${pkg}/bin";
localPkgs = [ tmux
awscli
sbt
jq
moreutils
### 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:
# Enable XMonad Desktop Environment.
windowManager = {
xmonad.enable = true;
xmonad.enableContribAndExtras = true;
};
{ stdenv, symlinkJoin, dockerTools, coreutils, writeScript, glibcLocales,
metadrift }:
let
metadriftConfig = {
environment.systemPackages = [ metadrift ];
};
minimalDocker =
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.