Skip to content

Instantly share code, notes, and snippets.

View lexer's full-sized avatar
🦀

Aleksei Zakharov lexer

🦀
View GitHub Profile
@lexer
lexer / Headers
Last active August 29, 2015 14:10
User -> credits - > "0" cause JSON parse exception during POST /user on phone login
POST /users HTTP/1.1
Accept-Language en_US
Accept application/vnd.lyft.app+json;version=21
User-Agent lyft:android:5.0:2.8.0.1717
User-Device LGE Nexus 5
X-Carrier AT&T
X-Session eyJhIjoiN2E2NzIwYTgzYzcxYzBkZiIsImYiOiIxNTBlNDNmOS00M2NkLTRjOTItYjI1Mi02NzNhMTU3NGI4NDEiLCJnIjoiMjc1NTYwMjU5MjA1NzY3In0=
Content-Type application/json; charset=utf-8
Content-Length 126
Host api.lyft.com
STDOUT.sync = true
def loadify(message = "", &block)
characters = %w[| / - \\ | / - \\]
thread = Thread.new do
block.call
end
while thread.alive?