Skip to content

Instantly share code, notes, and snippets.

View johnhamelink's full-sized avatar
🔨
Building

John Hamelink johnhamelink

🔨
Building
View GitHub Profile
class DeviseCreateSessions < ActiveRecord::Migration
def change
create_table(:sessions) do |t|
t.string :email, null: false, default: ""
t.string :encrypted_password, null: false, default: ""
t.string :reset_password_token
t.datetime :reset_password_sent_at
t.datetime :remember_created_at
t.integer :sign_in_count, default: 0, null: false
t.datetime :current_sign_in_at
defmodule FDG.Parsers.GraphvizTest do
use ExSpec, async: true
doctest FDG.Parsers.Graphviz
setup do
on_exit fn ->
# Delete all the test files
Enum.each(["png", "svg", "ps"], fn(fmt) ->
File.rm "graph.#{fmt}"
INSTANCE_ID="$(curl --silent http://169.254.169.254/latest/meta-data/instance-id)"
REGION="$(curl --silent http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/"//g' | sed 's/.$//')"
defmodule TestMaruProject.API do
use Maru.Router
if Mix.env == :dev do
plug MaruSwagger, at: "/swagger", pretty: true
end
mount TestMaruProject.API.V2.Base
end
2015/12/08 09:46:29 [info @ main:523] 85541 - Starting Neovim main loop.
2015/12/08 09:46:42 [error @ call_set_error:743] 85541 - msgpack-rpc: Channel was closed by the client
2015/12/08 10:01:29 [info @ main:523] 86033 - Starting Neovim main loop.
2015/12/08 10:01:33 [error @ forward_stderr:333] 86033 - Channel 2 stderr: Exception ignored in:
2015/12/08 10:01:33 [error @ call_set_error:743] 86033 - msgpack-rpc: Channel was closed by the client
2015/12/08 10:01:33 [error @ call_set_error:743] 86033 - msgpack-rpc: Channel was closed by the client
2015/12/08 10:01:35 [info @ main:523] 86099 - Starting Neovim main loop.
2015/12/08 10:01:45 [error @ call_set_error:743] 86099 - msgpack-rpc: Channel was closed by the client
2015/12/08 10:01:45 [error @ call_set_error:743] 86099 - msgpack-rpc: Channel was closed by the client
2015/12/08 10:01:46 [info @ main:523] 86273 - Starting Neovim main loop.
2z [john:~/Public/cypher] master(+7/-3) ± mix test.watch
Running tests...
=INFO REPORT==== 5-Dec-2015::23:07:54 ===
application: logger
exited: stopped
type: temporary
** (Mix) Could not start application mix_test_watch: could not find application file: mix_test_watch.app
New player state - Persisted
Persisted state has custom push notifications:
- Player state change -> :persisted -> :accepted
=> "You've been added to the next game of #{event.name}"
- Player state change -> :persisted -> :declined
=> No Push notification sent
- Player state change -> :persisted -> :unsure
=> "You've been invited to the next game of #{event.name}"
defmodule GoogleContactsToGrandstream.Google.AccessToken do
@moduledoc """
Retrieves an Authentication Access Token
for Google from the Google apps account
supplied.
"""
require Logger
alias GoogleContactsToGrandstream.Google.Jwt
@url "https://www.googleapis.com/oauth2/v3/token"
resource "aws_security_group" "production_api_app" {
name = "production_api_app"
description = "Allow SSH, and traffic over port 80 inbound, anything outbound"
vpc_id = "${var.vpc_id}"
lifecycle {
create_before_destroy = true
}
# Allow SSH from anywhere
Feature: Connecting users by extra information
Once a user registers with Find a Player, we want to be able to connect him
with the people we can detect he knows - especially if they're already on our
system.
Once people who others know of join Find a Player, we want to notify those
people to encourage engagement between them.
Once players are added to plays, we want to be able to allow users to