Skip to content

Instantly share code, notes, and snippets.

@markknol
markknol / index.html
Last active February 28, 2024 21:23
fxhash previewer - save as html in your project, tweak the values
<nav><button onclick="reloadFrames()">GENERATE()</button></nav>
<main></main>
<script>
const urlParams = new URLSearchParams(window.location.search);
const total = 15+5; // total frames
const interval = urlParams.get("fast") == "true" ? 60 : 200; // ms
const src = "./index.html";
let alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
function getHash() {
@Philmod
Philmod / cloudbuild.yaml
Last active October 10, 2017 21:10
Parallel push to the 3 GCR registries
steps:
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'us.gcr.io/$PROJECT_ID/test'
- '-t'
- 'asia.gcr.io/$PROJECT_ID/test'
- '-t'
- 'eu.gcr.io/$PROJECT_ID/test'