A little utility for testing if 2 json strings are equal, for use in tests.
go run main.go '{"dog": 5, "cat": 3}' '{"cat":3, "dog": 5}'
| @charset "UTF-8"; | |
| /* Inspired by Robert McNees’ original tweet, https://twitter.com/mcnees/status/661579110926282752 */ | |
| /* Works with the Stylish add-on, https://userstyles.org/help/stylish */ | |
| @-moz-document domain(twitter.com) { | |
| .HeartAnimationContainer { | |
| visibility: hidden | |
| } | |
| .HeartAnimationContainer:after, .Icon--heartBadge:before { | |
| content:'★'; | |
| font-size: 140%; |
| height: 1000 | |
| license: mit |
| Agnes en_US # Isn't it nice to have a computer that will talk to you? | |
| Albert en_US # I have a frog in my throat. No, I mean a real frog! | |
| Alex en_US # Most people recognize me by my voice. | |
| Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana. | |
| Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst. | |
| Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne. | |
| Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme. | |
| Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train. | |
| Bahh en_US # Do not pull the wool over my eyes. | |
| Bells en_US # Time flies when you are having fun. |
| require "erb" | |
| require "pathname" | |
| DOT_TEMPLATE=<<-END | |
| digraph { | |
| size="20,20"; | |
| overlap=false; | |
| sep=0.4; | |
| graph [fontname=Helvetica,fontsize=10]; | |
| node [fontname=Helvetica,fontsize=10]; |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "os" | |
| ) | |
| func init() { |
| (:~ | |
| : Neat examples of zero-padding a one digit month, for later | |
| : construction of xs:date etc. | |
| :) | |
| (: Example 1: When given a single digit month :) | |
| let $month := '4' | |
| return | |
| substring(concat('0', $month), string-length($month)) |
| ;; This is at: https://gist.github.com/8655399 | |
| ;; So we want a rhyming dictionary in Clojure. Jack Rusher put up | |
| ;; this code here: | |
| ;; | |
| ;; https://gist.github.com/jackrusher/8640437 | |
| ;; | |
| ;; I'm going to study this code and learn as I go. | |
| ;; | |
| ;; First I put it in a namespace. |
| package main | |
| import( | |
| "log" | |
| "net/url" | |
| "net/http" | |
| "net/http/httputil" | |
| ) | |
| func main() { |