Serialization: ?
Special Data Types:
- Error { int code; string message }
- ApiResponse { T object; Error? error; }
- GeoPoint { double lat, long; }
- Token { string token; }
- FailableAction { bool sucess; }
| var data = []; | |
| var job = function() { | |
| $('span.title a').each(function(i, x) { data.push({name: x.innerText, link: $(x).attr('href'), vimeoId: '' })}) | |
| var w = window.open(); | |
| var i = 0; | |
| var vimeoId = null; |
| {% if page.encrypted %} | |
| {% asset jsencrypt.js %} | |
| <script> | |
| var storedEncrypted = ''; | |
| function decrypt() { | |
| var key = window.location.hash.substr(1); | |
| var text = storedEncrypted; |
| require 'openssl' | |
| require 'base64' | |
| require 'digest' | |
| require 'bcrypt' | |
| def bin2hex(str) | |
| str.unpack('C*').map{ |b| "%02x" % b }.join('') | |
| end | |
| def hex2bin(str) |
| version: '2' | |
| services: | |
| web: | |
| build: | |
| context: ./ | |
| dockerfile: docker/web.docker | |
| volumes: | |
| - ./:/var/www | |
| ports: | |
| - "${DOCKER_WEB_PORT}:80" |
| <?php namespace getjump\CarPad\Drom; | |
| // https://api.drom.ru/v1.2/bulls/search?app_id=p8&cid%5B0%5D=23&mainPhotoWidth=300&page=1&pretty=1&revertSort=1&sortBy=enterdate&sticky_region%5B0%5D=25×tamp=1495761446&secret=53e7ac1a6b6b42f0728657a515d6992f09a5a227c5799987941ab30eaecb0513 | |
| class BasicQuery | |
| { | |
| const API_URL = '{protocol}://api.drom.ru/v{version}/{method}'; | |
| private $appId; | |
| private $key; | |
| private $version; |
Serialization: ?
Special Data Types:
| <?php | |
| $fcount = count(glob('webms/*.webm')); | |
| $watched = []; | |
| if(isset($_COOKIE['watched'])) | |
| { | |
| $watched = json_decode($_COOKIE['watched']); | |
| } |
| Panagea Protocol Client/Server | |
| Протокол будет составлен из минимальных частей, которые будут наращиваться с каждой версией, слоёв. | |
| 0 слой - базовая единица для поддержания подключения между клиентом/сервером. | |
| Подключение через классическое TCP Keep-Alive соединение. | |
| Сериализация будет иметь следующий вид: |
| <h2 id="r-tree">R*-tree</h2> | |
| <p><a href="http://www.cs.ucr.edu/~tsotras/cs236/W15/rstar.pdf">Source article about R*-tree</a></p> | |
| <h3 id="what-is-r-tree-actually">What is r-tree actually</h3> | |
| <ul> | |
| <li><script type="math/tex" id="MathJax-Element-1"> B^+ </script> tree like structure, which stores multidimensistrong textonal rectangles</li> |
| FROM ruby:2.2.0 | |
| RUN apt-get update -qq && apt-get install -y build-essential libpq-dev | |
| RUN mkdir /myapp | |
| RUN mkdir /tmp/sockets | |
| WORKDIR /myapp | |
| ADD Gemfile /myapp/Gemfile |