Skip to content

Instantly share code, notes, and snippets.

View orb's full-sized avatar

Norman Richards orb

View GitHub Profile
@orb
orb / deps.edn
Created January 10, 2022 03:15
nrepl deps
{:deps
{nrepl/nrepl {:mvn/version "0.9.0"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.1.0"}
cider/cider-nrepl {:mvn/version "0.27.4"}}
:aliases
{:cider/nrepl
{:main-opts ["-m" "nrepl.cmdline" "-s" "nrepl-test.sock" "--middleware"
"[refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}}}
@orb
orb / idm.js
Created March 9, 2020 21:01
idm test
import React, {useState} from "react";
import {Context, CurrentUserDetails} from "@cisco-sbgidm/ui-components";
// https://security-ci.myverysecuresignon.name/.well-known/openid-configuration
/*
@orb
orb / .block
Last active January 29, 2020 20:18
d3 temperatures lines
license: gpl-2.0
border: yes
scrolling: no
@orb
orb / .block
Last active January 29, 2020 17:46
deleteme
license: mit
@orb
orb / .block
Last active January 29, 2020 17:48
d3 temperatures
license: gpl-2.0
border: yes
scrolling: no
@orb
orb / .block
Last active January 29, 2020 17:46
chart
license: mit
@orb
orb / images.json
Created December 17, 2019 17:50
some images
[
"http://cdn0.vox-cdn.com/uploads/chorus_asset/file/2363952/win10filexplorer.0.png",
"https://images.techhive.com/images/article/2015/07/windows-10-hidden-narwhal-100598366-orig.jpg",
"https://cdn.windowsreport.com/wp-content/uploads/2015/12/best-windows-10-themes-10.png",
"https://upload.wikimedia.org/wikipedia/commons/c/cb/Fedora-Core-6-AIGLX.png",
"https://upload.wikimedia.org/wikipedia/commons/f/fd/Compiz-fusion.png",
"https://upload.wikimedia.org/wikipedia/commons/2/2a/Stumpwm.png",
"https://camo.githubusercontent.com/a0f864729cb308e8546bde467445dafbd71ce7ed/687474703a2f2f6c676172632e6e61726f642e72752f706963732f7877656d2f7877656d2d322e312e706e67",
"https://i.warosu.org/data/g/img/0636/55/1512238669552.png",
"http://i.imgur.com/Q6yFbn0.png",
@orb
orb / gist:be1aaec26083ea83a8efd101cc1bfbe9
Created July 12, 2019 18:10
rmtilde - clean up dangling editor tmp files
#!/bin/sh
find . -type f \( -name "#*" -or -name ".#*" -or -name "*~" \) -print -delete
@orb
orb / paths.org
Created March 6, 2019 22:45
path finding

pathfinding in Clojure

Help, I’m stuck in a maze

Motivation

Many AoC problems required some sort of path finding - shortest path, cheapest path according to the rules of the world.

@orb
orb / sort_compare.clj
Created January 19, 2019 17:03
compare team data
(ns sort-compare.core)
(def team-data
[{:team-id 1
:total-pts 7
:matches [{:schedule-id 1 :opp-team-id 2 :opp-team-pts 6 :team-points 3}
{:schedule-id 2 :opp-team-id 3 :opp-team-pts 6 :team-points 4}]}
{:team-id 2
:total-pts 7
:matches [{:schedule-id 1 :opp-team-id 1 :opp-team-pts 3 :team-points 6}