For the AUNZ-Elixir Slack based community we're using the official Elixir Lang Code of Conduct found here:
https://github.com/elixir-lang/elixir/blob/master/CODE_OF_CONDUCT.md
Contact details to be used are messaging @terrcin in the slack:
# Add after ExampleWeb.Telemetry to the list of children to be supervised in Application.start | |
defmodule ExampleWeb.AppsignalTelemetry do | |
use GenServer | |
require Appsignal.Utils | |
import Appsignal.Utils, only: [module_name: 1] | |
@tracer Appsignal.Utils.compile_env(:appsignal, :appsignal_tracer, Appsignal.Tracer) | |
@span Appsignal.Utils.compile_env(:appsignal, :appsignal_span, Appsignal.Span) | |
@appsignal_namespace "live_view" |
> gem list | |
*** LOCAL GEMS *** | |
bigdecimal (1.2.8) | |
bundler (1.13.6) | |
bundler-unload (1.0.2) | |
did_you_mean (1.0.0) | |
executable-hooks (1.3.2) | |
gem-wrappers (1.2.7) |
For the AUNZ-Elixir Slack based community we're using the official Elixir Lang Code of Conduct found here:
https://github.com/elixir-lang/elixir/blob/master/CODE_OF_CONDUCT.md
Contact details to be used are messaging @terrcin in the slack:
** Friday Bus Pickup ** | |
All buses will be leaving at their scheduled time fromPlatform 9 at the Wellington train station (http://goo.gl/maps/MKjjW) note that’s not the Bus Terminal but the Train Station. Please don’t be late, and please don’t turn up to a different time than what you selected as space is limited and it always causes us organisers headaches waiting for people who are already at camp. If for what ever reason you decide to not take the bus you have booked you need to let us know. | |
If you’re arriving from out of town there is a service from the airport called the Airport Flier, it will take you straight to the train station: https://www.wellingtonairport.co.nz/parking-and-transport/airport-flyer-bus/ | |
** Driving there yourself ** | |
You’re more than welcome to drive yourself there, please don’t turn up before 3:30pm. http://camp.ruby.nz has a link to where the camp is. Please make sure you tell us that you don’t need a seat on a bus. |
# In our config/deploy.rb we have the below for an easy prod console. | |
# There are various ways of doing it. | |
desc "Remote console" | |
task :console, roles: :app do | |
server = find_servers(roles: [:app]).first | |
run_with_tty server, %W( ./script/rails console #{rails_env} ) | |
end | |
# Turns out there is a '--sandbox' option for the console that will roll back any changes on exit |
I hereby claim:
To claim this, I am signing this object:
finish = Time.new 2013, 8, 22, 7 # UTC | |
goal = 32000000 | |
current = 3762188 # <= update this manually | |
remaining = goal - current | |
cost = 830 | |
puts "Seconds per handset sale: #{((finish - Time.now.utc) / (remaining / cost)).round(2)}" |
{ | |
"auto_complete": false, | |
"color_scheme": "Packages/Color Scheme - Default/Slush & Poppies.tmTheme", | |
"folder_exclude_patterns": | |
[ | |
".git", | |
"tmp", | |
"log" | |
], | |
"font_face": "DroidSansMono", |
# using the VCR gem: | |
# https://github.com/myronmarston/vcr/ | |
# | |
# this wraps each test in a unique VCR cassette and separately the setup method. | |
# | |
# require 'vcr_tests' in test_helper.rb | |
# then in a test file include the VcrTests module after the setup method | |
module VcrTests |
require 'tempfile' | |
class Tempfile | |
# overriding so that the Time component of the tmpname including hours, seconds and usecs, was previously just year + month + day | |
def make_tmpname(basename, n) | |
case basename | |
when Array | |
prefix, suffix = *basename | |
else |