Skip to content

Instantly share code, notes, and snippets.

View amacneil's full-sized avatar
💜
Foxglove Studio

Adrian Macneil amacneil

💜
Foxglove Studio
View GitHub Profile
@amacneil
amacneil / mod.ee_addon.php
Created March 22, 2012 01:02
Supporting URL_THIRD_THEMES in ExpressionEngine < 2.4 add-ons
<?php
// backwards compabitility for EE < 2.4
defined('URL_THIRD_THEMES') OR define('URL_THIRD_THEMES', $this->EE->config->item('theme_folder_url').'third_party/');
@amacneil
amacneil / store_shipping_example.php
Created March 23, 2012 23:48
An example custom shipping plugin for Expresso Store
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Store Shipping Example
*
* An example custom shipping plugin for Expresso Store
*/
class Store_shipping_example extends Store_shipping_driver
{
/**
@amacneil
amacneil / checkout.html
Created March 29, 2012 04:12
How to update Store order totals via AJAX
{exp:store:checkout form_id="checkout_main" next="checkout/confirm"}
<table class="table">
<thead>
<tr>
<th style="width:60%">Product</th>
<th>Price</th>
<th>Qty</th>
<th style="text-align:right">Total</th>
</tr>
@amacneil
amacneil / no_more_msm.php
Created April 5, 2012 03:36
Extract a single ExpressionEngine site from a MSM install
<?php
/*
* Instructions:
* First add your database connection details below.
* Then either upload this script to your server and visit the page,
* or run it using the command line: php no_more_msm.php
*/
// database connection details
@amacneil
amacneil / bootstrap.php
Created October 10, 2012 00:00
Simple ExpressionEngine bootstrap (config) file
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/*
* Put this file in your ExpressionEngine root folder (next to index.php)
*/
/*
* OPTIONS (ALL PATHS ARE RELATIVE TO THE CURRENT DIRECTORY)
*/
@amacneil
amacneil / .php_cs
Created November 15, 2012 01:32
Configure php-cs-fixer to run all fixers except PSR0
<?php
/*
* Place this file in the root directory of your project
* It configures php-cs-fixer to run all style fixers, except the PSR0 file naming fixer
* (which in my case isn't possible to follow due to package requirements)
* For more info see: http://cs.sensiolabs.org/
*/
$fix = new Symfony\CS\Fixer();

Roomz.com is looking for talented engineers to join one of Sydney's best startup teams. You’ll co-design new ideas, prototype new features and deliver production code. You'll instrument for analytics and architect for scale. You’ll get directly involved in user testing, figure out exactly what really matters, and delight them with things that they could never imagine.

Who are we?

  • We're a well-funded startup looking to disrupt the long term shared living space. We're about to launch our payments platform which will enable fully automated rent collection and dispersement, and improve the safety and efficiency of private room rentals.
  • We're already in Australia and NZ, and will be launching in the US in the coming months
  • Currently a team of 7 (4 devs), and growing quickly
  • Rails, Postgres, Redis, Heroku, RubyMotion, with a healthy dose of Javascript on the front end
  • We deploy multiple times per day
  • We enjoy regular games of ping pong

Keybase proof

I hereby claim:

  • I am adrianmacneil on github.
  • I am am (https://keybase.io/am) on keybase.
  • I have a public key whose fingerprint is 8C52 62E8 B92D 03D1 F28A 97B4 AD57 1531 1C30 014C

To claim this, I am signing this object:

package main
import "fmt"
func main() {
asks := [][]float64{{232.53, 0.75, 1}, {232.54, 20.84412913, 3}, {232.55, 29.8021907, 2}, {232.58, 0.535, 1}, {232.61, 0.535, 1}, {232.62, 1.035, 2}, {232.64, 0.535, 1}, {232.67, 0.10600116, 3}, {232.69, 0.03225113, 1}, {232.72, 0.04299781, 1}, {232.74, 2.06315, 2}, {232.75, 0.01, 1}, {232.77, 0.01, 1}, {232.78, 0.01, 1}, {232.79, 0.01, 1}, {232.8, 0.01, 1}, {232.86, 4.73026248, 1}, {232.87, 5.938, 2}, {232.89, 16.53959803, 1}, {232.9, 16.40959803, 3}, {232.91, 0.13, 1}, {232.93, 20.65452999, 1}, {232.94, 2, 1}, {232.95, 0.01, 1}, {232.96, 6.273, 2}, {232.97, 0.52, 1}, {232.99, 100, 1}, {233.04, 0.1, 1}, {233.05, 6.607, 1}, {233.13, 10.70353, 3}, {233.14, 5.136, 1}, {233.17, 32.16787225, 2}, {233.18, 12.717, 4}, {233.19, 25.49467, 2}, {233.2, 12.657, 2}, {233.21, 21.21708, 3}, {233.22, 16.95464, 3}, {233.23, 16.91272, 5}, {233.24, 19.57915, 2}, {233.25, 2.01, 2}, {233.26, 20.40719792, 2}, {233.27, 0.01, 1}, {233.28, 0.02, 2}, {233.29, 0.01, 1}, {233.3, 0.01, 1}, {233
Verifying that +am is my blockchain ID. https://onename.com/am