For some reason, I can't seem to serve more than a bit under 2^14 tcp requests without elixer hanging.
This happens consistently in multiple projects I have set up. Below is a boiled down version that exhibits the behavior.
{ | |
"java": { | |
"jdk_version": "7", | |
"oracle": {"accept_oracle_download_terms": "true"}, | |
"accept_license_agreement": "true", | |
"install_flavor": "oracle" | |
}, | |
"elasticsearch": { | |
"nginx": { | |
"users": [{"username": "salesloft", "password": "<haha you wish>"}], |
def foo(a=[]): | |
a.append(1) | |
return a | |
foo() # => [1] | |
foo() # => [1, 1] | |
foo() # => [1, 1, 1] |
class Parent | |
def foo | |
"Parent#foo" | |
end | |
alias :bar :foo | |
end | |
class Child < Parent | |
def foo | |
"Child#foo" |
class Benerator | |
def initialize(&block) | |
@block = block | |
end | |
def next | |
as_array.shift | |
end | |
def as_array |
require 'openssl' | |
require 'socket' | |
Thread.abort_on_exception = true | |
server = TCPServer.new(1993) | |
n = 0 | |
loop do | |
client = server.accept | |
n += 1 |
$("<script/>", {type: "text/javascript", src: "https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.2/moment.min.js"}).appendTo(document.body); | |
$(".session-content a").on("click", function() { event.stopPropagation(); }); | |
$(".session-content").on("click", function() { | |
var session = $(this), | |
title = session.find(".session-title"), | |
details = title.find("a")[0].href, | |
speaker = session.find(".speaker-name"), | |
room = $("th").eq(session.parent().index()), | |
text = function(el) { return el.text().trim(); }, |
class Test | |
include Enumerable | |
def each | |
yield "Hello" | |
yield "World" | |
end | |
end | |
enum = Test.new | |
array = ["Hello", "World"] |
For some reason, I can't seem to serve more than a bit under 2^14 tcp requests without elixer hanging.
This happens consistently in multiple projects I have set up. Below is a boiled down version that exhibits the behavior.
SELECT idstat.relname AS table_name, | |
indexrelname AS index_name, | |
CASE WHEN indexdef ~* 'unique' THEN 'UNIQUE' END, | |
pg_size_pretty(pg_relation_size(indexrelname::text)) AS index_size, | |
idstat.idx_scan AS times_used, | |
n_tup_upd + n_tup_ins + n_tup_del as num_writes, | |
indexdef | |
FROM pg_stat_user_indexes AS idstat JOIN pg_indexes ON indexrelname = indexname | |
JOIN pg_stat_user_tables AS tabstat ON idstat.relname = tabstat.relname | |
ORDER BY num_writes desc, times_used ASC; |
defmodule Polish do | |
defmacro reverse_polish_notation(code) do | |
code | |
|> do_reverse_polish() | |
|> List.flatten() | |
|> Enum.join(" ") | |
end | |
defmacro sigil_p({:<<>>, _, [code]}, '') do | |
build_code(code) |