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
#include <SM.h>
#include <SoftwareSerial.h>
// These are required by the shield in use.
#define BT_RX_PIN 2
#define BT_TX_PIN 3
// Aliases for the PINS that control power to each of the valves
#define CLEAN_WATER_VALVE 4
Firstly, imagine every time within a day that football is mentioned by someone else. Secondly, replace it with something that you don't want to hear about every day. Say... Archaeology. Then, think about how an average day would pan out.
So, you awaken to the clock radio. It's 7AM. Just as you awaken, it's time for the news and archaeology already. Not news and other historical investigations, like library restorations or museum openings (unless there's another event happening), but just the news and archaelogy. Malaysian plane is still missing. Pistorius is still on trial. New dig announced in Giza. Ancient Mayan temple discovered. Exciting stuff.
Time for a bite to eat over the morning TV. More news. More archaeology. Yes, you are aware of what is up with the missing plane. Fine. Now the archaeology in video format. Video of people dusting off some skulls and bits of pottery. All well and good, but archaeology isn't your thing. It would be nice to hear about something else. Even when it isn't archaeology
#include <linux/slab.h>
void *ptr1;
void *ptr2;
int init_module()
{
ptr1 = kmalloc( (size_t)255,GFP_KERNEL);
ptr2 = kmalloc( (size_t)255,GFP_KERNEL);
(ns world_builder.land
(:require [quil.core :as q :include-macros true]
[clojure.set :as set]
)
)
(defn unique-random-numbers [count n]
(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
@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:

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']
}]
(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'
@wmealing
wmealing / bad router.
Created February 9, 2013 13:11
Something i'm working on debugging, multiple handlers inside a cowboy route.
cowboy_router:compile([
{'_', [
{[<<"index">>], cowboy_http_static, [{file}, <<"index.html">>]},
{'_', another_handler, []}
]}
]).
dispatch_rules() ->
%% {Host, list({Path, Handler, Opts})}
{'_', [
{[], cowboy_static, [<<"index.html">>] }
]
}.