I hereby claim:
- I am bkono on github.
- I am bkono (https://keybase.io/bkono) on keybase.
- I have a public key ASASckZ-1gUvHCVp-CBHrt-Ze8KDRkVgGp2wQmrYPF4Zlwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
client | |
dev tun | |
comp-lzo | |
auth-user-pass | |
# remote-cert-tls server | |
server-poll-timeout 10 | |
auth-nocache | |
auth-retry interact | |
verb 1 | |
remote openvpn.getcloakvpn.com 443 udp |
FROM bitwalker/alpine-erlang:latest | |
MAINTAINER Paul Schoenfelder <[email protected]> | |
ENV REFRESHED_AT=2016-06-21 \ | |
HOME=/opt/app/ \ | |
MIX_ENV=prod \ | |
TERM=xterm \ | |
APP=myapp \ | |
APPVER=0.1.0 |
defmodule Config do | |
@moduledoc """ | |
This module handles fetching values from the config with some additional niceties | |
""" | |
@doc """ | |
Fetches a value from the config, or from the environment if {:system, "VAR"} | |
is provided. | |
An optional default value can be provided if desired. |
defmodule ROP do | |
defmacro try_catch(args, func) do | |
quote do | |
(fn -> | |
try do | |
unquote(args) |> unquote(func) | |
rescue | |
e -> {:error, e} | |
end |
I've taken the benchmarks from Matthew Rothenberg's phoenix-showdown, updated Phoenix to 0.13.1 and ran the tests on the most powerful machines available at Rackspace.
Framework | Throughput (req/s) | Latency (ms) | Consistency (σ ms) |
---|
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
full = "★" | |
empty = "☆" | |
battery = "🔋" | |
plug = "⚡" | |
star_count = 5 | |
per_star = 100/star_count |
alias gst='git status' | |
compdef _git gst=git-status | |
alias gd='git diff' | |
compdef _git gd=git-diff | |
alias gl='git pull' | |
compdef _git gl=git-pull | |
alias gp='git push' | |
compdef _git gp=git-push | |
alias gc='git commit -v' | |
compdef _git gc=git-commit |
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name=$inputline | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url=$inputline |
class Person | |
include ActiveModel::Serialization | |
include ActiveModel::Serializers::JSON | |
attr_accessor :name, :email | |
def initialize(attributes = {}) | |
attributes.each do |name, value| | |
send("#{name}=", value) | |
end |