Skip to content

Instantly share code, notes, and snippets.

@quamen
quamen / front-end-software-engineer-at-clover.md
Last active February 1, 2016 04:25
We're hiring a front end software engineer at clover.com.au

Front End Software Engineer at Clover.com.au

Clover is the simplest and smartest set-and-forget way for everyday Australians to invest.

We build, manage and advise on your investment portfolio so you can get ahead of the pack and live the life you want.

Previously 80% of Australians were unable to access smart financial advice due to high account minimums set by financial advisors. Clover has put together a world-class team of investment experts to build an automated solution, opening up the market for everyday Australians to reach their goals, once reserved for the ultra wealthy.

Now we’re looking to build out a world class team of developers to ensure our customers have a delightful experience. We’ve started building our front end in React, using CSS Modules and Redux, backing onto a RESTful API written in Ruby.

Keybase proof

I hereby claim:

  • I am quamen on github.
  • I am quamen (https://keybase.io/quamen) on keybase.
  • I have a public key whose fingerprint is 93A9 DCAA 7957 A418 BECC 4C56 8F5C B939 6EF4 E154

To claim this, I am signing this object:

@quamen
quamen / movies.js
Created October 14, 2015 03:01
Writing javascript like it's lisp
function() {
var movieLists = [
{
name: "Instant Queue",
videos : [
{
"id": 70111470,
"title": "Die Hard",
"boxarts": [
{ width: 150, height:200, url:"http://cdn-0.nflximg.com/images/2891/DieHard150.jpg" },
@quamen
quamen / translation.rake
Last active August 29, 2015 14:28
Dump out a list of unique vs non-unique translations
# We have a custom cane extention that we use to ensure the numbers don't change without us knowing that runs as part of CI.
namespace :translation do
class Hash
# like invert but not lossy
# {"one"=>1,"two"=>2, "1"=>1, "2"=>2}.inverse => {1=>["one", "1"], 2=>["two", "2"]}
def safe_invert
each_with_object({}) do |(key,value),out|
out[value] ||= []
@quamen
quamen / gist:a5a442545f4eac65311b
Created October 22, 2014 08:16
I think this is clojures way of telling me to pour one out
☁ picture-gallery lein ring server
(Retrieving commons-io/commons-io/2.1/commons-io-2.1.jar from central)
(Retrieving commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar from central)
(Retrieving org/clojure/tools.reader/0.7.10/tools.reader-0.7.10.jar from central)
(Retrieving clout/clout/1.0.1/clout-1.0.1.jar from clojars)
(Retrieving ring/ring-devel/1.2.0/ring-devel-1.2.0.jar from clojars)
(Retrieving compojure/compojure/1.1.5/compojure-1.1.5.jar from clojars)
(Retrieving hiccup/hiccup/1.0.4/hiccup-1.0.4.jar from clojars)
(Retrieving ring/ring-core/1.1.7/ring-core-1.1.7.jar from clojars)
Exception in thread "main" java.lang.ExceptionInInitializerError, compiling:(picture_gallery/handler.clj:1:1)
"errors": [
{
"error": "no implicit conversion of Symbol into Integer",
"location": "/opt/boxen/rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/brakeman-2.5.0/lib/brakeman/checks/check_render.rb:16:in `[]'"
}
]
@quamen
quamen / active_record_helper.rb
Created October 1, 2013 00:36
Replaces spec_helper.rb when testing ActiveRecord objects.
unless defined?(ActiveRecord)
require "active_record"
require "shoulda-matchers"
dbconfig = YAML::load(File.open("config/database.yml"))
ActiveRecord::Base.establish_connection( dbconfig["test"] )
RSpec.configure do |config|
config.around do |example|
ActiveRecord::Base.transaction do
@quamen
quamen / gist:6275089
Created August 19, 2013 22:43
API for feature flipping
I've been working on a feature flipping class, and I'm after some opinions on naming for the method that checks if the flip is active or not:
The example is for flipping the sign up feature of the application:
Which do you prefer and why?
do something if sign_up_is_active?
or
@quamen
quamen / valid.rb
Created October 11, 2012 03:40 — forked from notahat/valid.rb
Testing fail?
# ve a class that delegates functionality to a couple of objects that it
# constructs. I want to test this in isolation. I want to make sure that the
# objects are constructed with the right arguments. I also want to make sure
# that the results from the objects are handled correctly.
#
# I'm finding it hard to structure the code and test in a way that isn't
# cumbersome. What's below works, but it feels like a lot of stubbing and setup
# for something the should be simpler.
#
# Anyone got a better approach for this?
@quamen
quamen / conditionally_define.rb
Created May 9, 2012 12:00
A module that allows you to conditionally define a module. Useful for isolated testing, when you just need something to stub without requiring the actual class or module in the test.
class ConditionallyDefine
def self.stub_module(full_name)
full_name.to_s.split(/::/).inject(Object) do |context, name|
begin
context.const_get(name)
rescue NameError
context.const_set(name, Module.new)
end
end
end