Xe
oleg.moon

Sign up for a GitHub account Sign in All Gists Xe / oleg.moon secret Created February 07, 2015 Code Revisions 1 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav View oleg.moon oleg.moon Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 config = require ( " lapis.config " ) . get! http = require " lapis.nginx.http " request = ( method , table , key , value = nil ) -> oleg_res , code = http . simple { url : " http://#{config.oleg.host}:#{config.oleg.port}/#{table}/#{key} " method : method body : value } if code ~= 200 return nil , code if not oleg_res return...

Linked on 2015-02-07 00:20:51 | Similar Links