Skip to content

Instantly share code, notes, and snippets.

View tmclane's full-sized avatar
🏠
Working from home

Travis McLane tmclane

🏠
Working from home
  • Radius Method
  • Houston, TX
View GitHub Profile
@alexedwards
alexedwards / main.go
Last active May 31, 2024 02:15
Password hashing and verification with Argon2id
package main
import (
"crypto/rand"
"crypto/subtle"
"encoding/base64"
"errors"
"fmt"
"log"
"strings"
@edwthomas
edwthomas / charts-reframe.cljs
Created June 8, 2016 00:13
Example of using Chart.js with Clojurescript
(:require [re-frame.core :as re-frame]
[reagent.core :as reagent]
[cljsjs.chartjs])
(defn show-revenue-chart
[]
(let [context (.getContext (.getElementById js/document "rev-chartjs") "2d")
chart-data {:type "bar"
:data {:labels ["2012" "2013" "2014" "2015" "2016"]
:datasets [{:data [5 10 15 20 25]