I hereby claim:
- I am jeregrine on github.
- I am peregrine (https://keybase.io/peregrine) on keybase.
- I have a public key whose fingerprint is 95F5 DBCD 84B3 A773 7308 9222 3C23 D809 EF15 3FD2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| 1) test Initates a connection proper. (Phoenix.Router.RawWebsocketHandlerTest) | |
| ** (UndefinedFunctionError) undefined function: Socket.TCP.packet!/2 | |
| stacktrace: | |
| Socket.TCP.packet!(:raw, {Socket.TCP, #Port<0.20319>, nil, {:resource, 305923944, ""}}) | |
| lib/socket/web.ex:210: Socket.Web.connect!/3 | |
| lib/socket/web.ex:140: Socket.Web.connect/3 | |
| test/phoenix/websocket_handler_test.exs:24: Phoenix.Router.RawWebsocketHandlerTest."test Initates a connection proper."/1 |
| wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb -O /tmp/erlang-solutions_1.0_all.deb | |
| Stdout from the command: | |
| Stderr from the command: | |
| --2014-01-15 23:04:22-- https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
| Resolving packages.erlang-solutions.com (packages.erlang-solutions.com)... 31.172.186.53 |
| defmodule PostgrexBugTest do | |
| use ExUnit.Case, async: false | |
| setup_all do | |
| { :ok, pid } = Postgrex.Connection.start_link([hostname: "localhost", username: "postgres", password: "postgres", database: "postgrex"]) | |
| Postgrex.Connection.query!(pid, "CREATE TABLE items(id serial primary key, value text, created timestamp default CURRENT_TIMESTAMP)") | |
| {:ok, [pid: pid]} | |
| end | |
| teardown_all context do |
| nmap <leader>f :call RunAg()<CR> | |
| function! RunAg() | |
| let string = input('term: ') | |
| execute ':Ag ' . string . ' ./' | |
| endfunction |
| App.Router.map(function(){ | |
| this.resource("home", {path: "/"}, function(){ | |
| this.resource("category", {path: "/:name"}, function(){ | |
| this.route("featured", {path:"/featured"}) | |
| this.route("popular", {path:"/popular"}) | |
| }); | |
| }) | |
| }) | |
| (ns modern_js.core) | |
| {:zoom 14, :disableDefaultUI true :draggable false, :scrollwheel false } |
| function estimate(arr) { | |
| return arr.reduce(function(prev, curr, index, array){ | |
| return prev + convertToValue(curr.toString()); | |
| }, 0); | |
| } | |
| function estimateRisk(arr){ | |
| return arr.reduce(function(prev, curr, index, array){ | |
| return prev + convertToRisk(curr.toString()); | |
| }, 0); |
| lines = IO.readlines("app/views/terms.haml").map do |line| | |
| line.encode('ASCII-8BIT', :invalid => :replace, :undef => :replace) | |
| end | |
| File.open("app/views/terms2.haml", "w") do |file| | |
| file.puts(lines) | |
| end |
| Sequel.migration do | |
| up do | |
| run("create extension if not exists postgis;") | |
| alter_table :events do | |
| add_column :geo_location, :geography | |
| add_full_text_index [:description, :name], :language=>'english' | |
| add_index :geo_location, :type=>:gist | |
| end | |
| end |