Skip to content

Instantly share code, notes, and snippets.

@mileszs
mileszs / authenticate_job_poster.ex
Created October 4, 2016 16:50
Plug for authenticating via session or token
defmodule ElixirJobBoard.Plugs.AuthenticateJobPoster do
import Plug.Conn
import Phoenix.Controller, only: [put_flash: 3, redirect: 2]
alias ElixirJobBoard.Repo
alias ElixirJobBoard.User
def init(opts), do: opts
def call(conn, _opts) do
require 'csv'
require 'pry'
result = CSV.table('tab-delimited.txt', col_sep: "\t")
binding.pry
puts result

Today, healthcare providers struggle to provide high-quality, coordinated care through transitions, such as from a hospital to a skilled nursing facility. Strategies for care are not standard across facilities, and important information can slip through the cracks. Olio’s software helps coordinate care and engage providers, keeping them informed and active. Think PivotalTracker for coordinating care.

Olio is a post-MVP startup with funding and customers. We’re looking for a software engineer to join our team to work on our web and mobile products and their related services.

More About Us and What We Believe

Olio is on the forefront of creating better healthcare experiences and outcomes for real people in real time. We're bringing the powers of modern web and mobile applications to bear on the common engagement problems that occur every day in the healthcare industry between acute and post-acute organizations. Despite less than three years as a company, we are operating in major Indiana hospitals that g

Indy.rb March 2020: CANCELED!

After chatting with Dave Jones about tonight's meeting and the Covid-19 pandemic, we've decided to cancel/postpone tonight's meeting. While those who would choose to attend might be youthful and hale, many of us likely have contact with folks who are neither of those things. Best to take action early to lessen the spread than wait until later.

I will contact our sponsors and our speaker to coordinate for April (or possibly May, depending on how the spread continues). Thank you so much to Lessonly, Springbuk, Expected Behavior, and Olio for their continued support and willingness to help.

If you know someone who was planning to come to night, please tell them to stay home!

Thank you, Indy.rbers. Stay healthy.

# stage 1
FROM madnight/docker-alpine-wkhtmltopdf:alpine-3.8 as base
# stage 2
FROM ruby:2.6.1-alpine3.8
# copy over wkhtmltopdf apline binary
COPY --from=base /bin/wkhtmltopdf /usr/bin/wkhtmltopdf
COPY .aptible.yml Procfile /.aptible/
live_loop :drums do
sample :drum_heavy_kick
sleep 0.25
sample :bass_hit_c
sleep 0.25
end
live_loop :snare do
sync :drums
sleep 0.5
@mileszs
mileszs / hiring.mkd
Last active October 14, 2018 20:22

How to Hire Developers

  1. Go to the events the type of developers you want to hire go to. Do this even when you aren't actively hiring.
  2. Try to sponsor or otherwise support the events/groups/newsletters/things the type of developers you want to hire like. Do this even when you aren't actually hiring.
  3. Favor smart people who fit your culture over resumés that check your requirements boxes.
  4. If you can't find enough examples of work to suffice, and must do a technical assessment, try to fashion a low-pressure one. Example: Make an empty private GitHub repo. Give them a task / thing to build and have them make it a pull request to that repo. If you aren't going to bring them in for an actual interview after they submit their homework, at least provide feedback on the pull request. If you are going to bring them in, chat with them about their homework, including talking casually about things they might do differently, or things they might add.

Why should you do 1 and 2 when you aren't hiring? You might

var strToCheck = "here's some stuff and also squirrels 23 and other things";
var strToMatch = "squirrels";
// the double backslash prevents the backslash from being escaped by the RegExp constructor
// ... whee!
var regex = new RegExp(strToMatch + "\\s[0-9]{1,2}", "g");
var match = regex.exec(strToCheck);
// the result is that match now contains
// ["squirrels 23", index: 11, input: "some stuff squirrels 23 and things", groups: undefined]