Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

0.0 TEL | Telepresence 0.101 launched at Wed Jul 31 20:22:41 2019
0.0 TEL | /usr/local/bin/telepresence --run curl http://mazes-mazes:8080/
0.0 TEL | Platform: darwin
0.0 TEL | Python 3.7.4 (default, Jul 9 2019, 18:13:23)
0.0 TEL | [Clang 10.0.1 (clang-1001.0.46.4)]
0.0 TEL | [1] Running: uname -a
0.0 1 | Darwin elliots-mbp.lan 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64
0.0 TEL | [1] ran in 0.01 secs.
0.0 TEL | BEGIN SPAN main.py:40(main)
0.0 TEL | BEGIN SPAN startup.py:74(__init__)
@ElliotJH
ElliotJH / dice.elm
Created June 4, 2016 16:15
A dice app while I learn elm
import Html exposing (..)
import Html.App as Html
import Html.Events exposing (..)
import Svg exposing (svg, Svg, rect, circle)
import Svg.Attributes exposing (..)
import Random
main =

Keybase proof

I hereby claim:

  • I am elliotjh on github.
  • I am elliotjh (https://keybase.io/elliotjh) on keybase.
  • I have a public key whose fingerprint is 4894 6E14 2C01 A0B0 AEDA C4A5 F4D0 69F0 F20F 1821

To claim this, I am signing this object:

#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <sys/time.h>
#include <stdlib.h>
#include <openssl/sha.h>
#include <string.h>
#include <stdbool.h>
int main(int argc, const char * argv[])
@ElliotJH
ElliotJH / gist:7195207
Created October 28, 2013 11:23
Not that anyone should run this and pull the contents out...
#!/bin/zsh -f
integer i=0
while (( ( i += 1 ) <= 13910 )); do
wget "http://www.buywithconfidence.gov.uk/Search/BWCPages/ViewBusiness.aspx?TraderId="$i
done
@ElliotJH
ElliotJH / gist:6811007
Created October 3, 2013 14:43
Genetic Algorithm Output
5
ml sc eqiigxysuaiykxkqw qbfj
7
xedszhodyignieaovctqynuessel
8
pejruwazyitgewabcctudnweusel
10
pedmiiasaitninacvbeto wdik l
11
msxtizkduovnidcoitegaxwfabel
{-# LANGUAGE OverloadedStrings #-}
import Data.Aeson
import Data.Maybe
import Data.ByteString.Lazy
import Control.Applicative
import Debug.Trace
import Control.Monad
import qualified Data.Aeson.Types as T
import Data.Time
{-# LANGUAGE OverloadedStrings #-}
import Data.Aeson
import Data.Maybe
import Data.ByteString.Lazy
import Control.Applicative
main = do
res <- liftA show (liftA decodeOriginal (Data.ByteString.Lazy.readFile "./a.json"))
Prelude.putStrLn res