Skip to content

Instantly share code, notes, and snippets.

Tim Lopez brool

Block or report user

Report or block brool

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
brool / index.html
Last active Aug 29, 2018
Example of custom map with marker data read from Google spreadsheets
View index.html
<!-- see for explanation -->
<link rel="stylesheet" href=""
<script src=""
View $__config_tiddlyweb_host.tid
title: $:/config/tiddlyweb/host
brool /
Created Dec 7, 2016 — forked from julianxhokaxhiu/
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
# Credits to fuckbecauseican5 from
# Adapted to work with the official image available into Mac App Store
# Enjoy!
hdiutil attach /Applications/Install\ macOS\ -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
brool /
Created Nov 15, 2016
Stupid little command line utility to give the ETA to work/home for various times in the future.
import requests
import datetime
import time
import urllib
import sys
origin = "1234 Main Street, Anywhere CA 12345"
dest = "4567 Corporation Way, Anywhere CA 12345"
key = "your-api-key-for-distance-matrix"
time_spans = range(0, 61, 15)
brool / submit-word-count.elisp
Created Oct 22, 2016
Submit Nanowrimo wordcount from Emacs
View submit-word-count.elisp
(defun count-and-submit ()
(let* ((user-name "username")
(secret-key "secret-key")
(word-count (number-to-string (count-words (point-min) (point-max))))
(hash (secure-hash 'sha1 (concat secret-key user-name word-count)))
(url-request-method "PUT")
(url-request-extra-headers `(("Content-Type" . "application/x-www-form-urlencoded")))
(url-request-data (concat "hash=" hash "&name=" user-name "&wordcount=" word-count)))
(url-retrieve-synchronously "")
View logic-puzzle-demo.clj
(ns logic-puzzle-demo.core
(:require [clojure.math.combinatorics :as combo]))
;; Playing around with some stuff to make logic puzzles easier
;; Inspired by
;; but then really
;; Also see
View gist:cd9d40975ceef36cdf8e
### Keybase proof
I hereby claim:
* I am brool on github.
* I am brool ( on keybase.
* I have a public key whose fingerprint is 8ECC A073 45FF 36F2 DAD2 DD7E B8E7 2F6A C8D7 DE49
To claim this, I am signing this object:
brool /
Created Jan 26, 2012
Statementless Python -- originally at
#!/usr/bin/env python
# Look! It's Statementless Python
# Copyright Peter Corbett 2005
# NO WARRANTY: If you use this for anything important, you're mad!
# Credits to: Ian Jackson for having the idea, Ken Slonneger for
# "Syntax and Semantics of Programming Languages" (large parts this program
# were hand-translated from one of the examples), and fanf, with whom I
# cannot hope to compete.
# Unlike most Python programs, whitespace matters little here. It could
# be a one-liner if you had a monitor long enough.
View state.hs
import Control.Monad.State
import System.Random
first lst = first' lst [] []
first' [] _ result = reverse result
first' (h:t) found result =
if any (== h) found then first' t found (False:result)
else first' t (h:found) (True:result)
You can’t perform that action at this time.