Skip to content

Instantly share code, notes, and snippets.

View carvil's full-sized avatar
💻
Hiring Engineers

Carlos Vilhena carvil

💻
Hiring Engineers
View GitHub Profile
@carvil
carvil / software-developer.md
Last active August 29, 2015 14:23
Software Developer at ParcelBright

Software Developer at ParcelBright

We're looking for experienced, collaborative, and creative software engineers to join our growing team and help us improve and release features that matter to our customers. We are on a mission to fix shipping for SMEs and we need help to grow our product even further.

Our team is partly remote and partly colocated in TechHub (Shoreditch, near Old Spitalfields Market). Currently, all (two) developers work remotely most of the time and the rest of the team works in the office. You are welcome to work where you are most comfortable. We encourage new employees to spend some time in the office initially to get to know the rest of the team and experience the day-to-day operations of the company.

In order to give you an idea of the work you would be doing, here are some of the challenges we want to tackle next:

  • Scaling and expanding our API so we can onboard more and more customers;
  • Integrations with 3rd party systems in order to provide more service offerings;
@carvil
carvil / gist:2000742
Created March 8, 2012 12:13
Ransack 0.6.0
/Users/carvil/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/arel-b757de114cf7/lib/arel/visitors/to_sql.rb:270:in `visit_Arel_Nodes_NamedFunction'
/Users/carvil/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/arel-b757de114cf7/lib/arel/visitors/visitor.rb:19:in `visit'
/Users/carvil/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/arel-b757de114cf7/lib/arel/visitors/to_sql.rb:399:in `visit_Arel_Nodes_Equality'
/Users/carvil/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/arel-b757de114cf7/lib/arel/visitors/visitor.rb:19:in `visit'
/Users/carvil/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/arel-b757de114cf7/lib/arel/visitors/to_sql.rb:381:in `block in visit_Arel_Nodes_And'
/Users/carvil/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/arel-b757de114cf7/lib/arel/visitors/to_sql.rb:381:in `map'
/Users/carvil/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/arel-b757de114cf7/lib/arel/visitors/to_sql.rb:381:in `visit_Arel_Nodes_An
@carvil
carvil / bla.rb
Created August 2, 2012 14:23
Initialise only once
class Bla
attr_accessor :my_time
def my_time
@my_time ||= Time.now.to_i + 100
end
end
@carvil
carvil / risk-chef-cookbook-error.txt
Created October 6, 2012 15:31
chef-client output with unchanged recipe
[2012-10-06T16:22:22+01:00] DEBUG: Streaming download from http://s3.amazonaws.com/downloads.basho.com/riak/1.2/1.2.0/riak_1.2.0.tar.gz to tempfile /tmp/chef-rest20121006-12984-1x0mmzj
================================================================================
Error executing action `create` on resource 'remote_file[/var/chef/cache/riak_1.2.0.tar.gz]'
================================================================================
Net::HTTPServerException
------------------------
403 "Forbidden"
@carvil
carvil / Gemfile
Created October 14, 2012 20:42
Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.8'
gem 'sqlite3'
gem 'ember-rails', git: 'git://github.com/emberjs/ember-rails.git'
gem 'turbo-sprockets-rails3'
gem 'ripple', git: "git://github.com/basho/ripple.git"
gem "riak-client", "~> 1.0.5"
gem "jquery-rails", "1.0.19"
gem 'omniauth-twitter'
@carvil
carvil / messages.txt
Created December 9, 2012 21:19
Retrieving messages from coke
~/sandbox/coke(branch:master*) » http http://localhost:3000/tweets.json carvil@macbookair - 1.9.3-p327
HTTP/1.1 200 OK
Cache-Control: max-age=0, private, must-revalidate
Connection: Keep-Alive
Content-Length: 2702
Content-Type: application/json; charset=utf-8
Date: Sun, 09 Dec 2012 21:18:17 GMT
Etag: "783430049a812f2c9f0462688051be0b"
Server: WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
X-Request-Id: 0bea7890818d6352ef5cd26c08e8a48a
#logos.tab-pane
%h2 Logos
.row-fluid.logos-pane
.span4
%img{:alt => "", :src => "https://s3-eu-west-1.amazonaws.com/appearhere/assets/about/logo-dark.png"}
.span4
%ul
%li
= link_to 'Download .JPG', "https://s3-eu-west-1.amazonaws.com/appearhere/assets/about/logo-dark.jpg"
%li

Keybase proof

I hereby claim:

  • I am carvil on github.
  • I am carvil (https://keybase.io/carvil) on keybase.
  • I have a public key ASCtkVPaHq5MgBOCwZJh5JyUZP4e1fpPp8xfh54_Pwj80wo

To claim this, I am signing this object:

@carvil
carvil / script.rb
Last active December 19, 2016 12:21
hierarchy = {}
content_id = 'c58fdadd-7743-46d6-9629-90bb3ccc4ef0'
def guidance_document_types
[
'statutory_guidance',
'answer',
'guidance',
'detailed_guidance',
'detailed_guide',
@carvil
carvil / index.html
Last active December 20, 2016 16:49
Visualise the taxonomy using D3.js (tree view)
<!DOCTYPE html>
<meta charset="utf-8">
<style type="text/css">
.node {
cursor: pointer;
}
.overlay{
background-color:#EEE;