Skip to content

Instantly share code, notes, and snippets.

View wmealing's full-sized avatar
💭
Take me home, country roads

Wade Mealing wmealing

💭
Take me home, country roads
  • Brisbane
View GitHub Profile
/* radius = 40;
height = 60;
offset = 33.282;
width = 3;
*/
/* so apparently we find the angle we need to rotate it by with inverse sign */
module draw_curve(height, radius, offset) {
; generated by Slic3r 1.2.9 on 2016-07-30 at 20:06:29
; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm
; top infill extrusion width = 0.40mm
M190 S60 ; set bed temperature
G28 ; home all axes
@wmealing
wmealing / couch-install-centos7.
Created May 3, 2016 14:13
centos7 / rhel7 install instructions for couchdb.
#!/bin/bash
# Move to a location where you don't mind storing the couchdb install files.
cd /tmp/
EPEL_FILE=epel-release-latest-7.noarch.rpm
COUCH=apache-couchdb-1.6.1.tar.gz
rm -rf epel-release-latest-7.noarch.rpm
Executing tasks: [:app:clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:assembleDebug]
Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:clean
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2330Library
* 'P' - Proprietary module has been loaded.
* 'F' - Module has been forcibly loaded.
* 'S' - SMP with CPUs not designed for SMP.
* 'R' - User forced a module unload.
* 'M' - System experienced a machine check exception.
* 'B' - System has hit bad_page.
* 'U' - Userspace-defined naughtiness.
* 'D' - Kernel has oopsed before
(ns testing.ns
(:require [reagent.core :as reagent :refer atom]
[cljsjs.chartist :as ch)
(def overview-yearly-data (clj->js
{:series [ [10 1 13 2 5 3 7 4 9 12 2 3]]
:labels ['Jan' 'Feb' 'Mar' 'Apr' 'May'
'Jun' 'Jul' 'Aug' 'Sep' 'Oct'
https://clojars.org/cljsjs/chartist
Library:
https://gionkunz.github.io/chartist-js/
Converting: "DISTRIBUTED SERIES example"
(def overview-monthly-data (clj->js [{:series [20 60 120 200 180 20 10]}
{:labels ['XS' 'S' 'M' 'L' 'XL' 'XXL' 'XXXL']
}]
@wmealing
wmealing / raspberry-pi-vpn-router.md
Created October 26, 2015 11:09 — forked from superjamie/raspberry-pi-vpn-router.md
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2015-09-24-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

(ns inky-brain.rest
(:require [liberator.core :refer [resource defresource]]
[ring.middleware.params :refer [wrap-params]]
[compojure.core :refer [defroutes ANY]]
[clojure.java.io :as io]
[clojure.data.json :as json]
[inky-dispatcher.plugins :as dispatch]
[com.keminglabs.zmq-async.core :refer [register-socket!]]
[clojure.core.async :refer [>! <! <!! >!! go
go-loop chan timeout
(ns world_builder.land
(:require [quil.core :as q :include-macros true]
[clojure.set :as set]
)
)
(defn unique-random-numbers [count n]