There are two main parts of the protocol
- Receiving Event protocol.
- Update UI protocol.
Currently we think the UI has the freedom to draw the screen however they want as long as both sides agrees on the content. I think each
| map("K", "R"); | |
| map("J", "E"); | |
| map("u", "e"); | |
| map("H", "S"); | |
| unmap("C"); | |
| map("O", "on"); | |
| map("gi", "i"); | |
| map("ss", "se"); | |
| map("a", "og"); | |
| map("g^", "g0"); |
| #+LATEX_CLASS: article | |
| #+LATEX_CLASS_OPTIONS: [12pt,letterpaper] | |
| #+latex_header: \input{/home/darwinsenior/workspace/cs446/cs446.tex} | |
| #+LATEX_HEADER: \usepackage{placeins} | |
| #+OPTIONS: toc:nil | |
| #+begin_latex | |
| \solution{Dingcheng Yue}{\today}{No 4}{Fall 2016} | |
| \pagestyle{myheadings} | |
| #+end_latex |
| # this file helps to touble shoot the git file | |
| # login failed every time | |
| # it is mainly because the file failed at the kcheckpass, sticky bit problem | |
| /usr/lib/kcheckpass # type your password and it is bound to fail | |
| sudo chmod 4775 /usr/lib/kcheckpass # this will probably solves the problem | |
| # reset network | |
| # sometimes your network might failed and here is the simple solution | |
| ip a # list all the network and I got something like enp3s0 |
| set laststatus=2 | |
| set number | |
| set guitablabel=%N\ %t | |
| set backspace=indent,eol,start | |
| set whichwrap+=<,>,h,l | |
| set nocompatible | |
| set clipboard=unnamed | |
| syntax on | |
| let g:python_host_prog = '/usr/local/bin/python' |
| # Pull base image. | |
| FROM ubuntu | |
| # Install Java. | |
| RUN \ | |
| apt-get install -y software-properties-common && \ | |
| add-apt-repository -y ppa:webupd8team/java && \ | |
| apt-get update && \ | |
| echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ | |
| echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \ |
| import os | |
| class Data(object): | |
| def __init__(self, line): | |
| self.parse(line) | |
| def parse(line): | |
| numbers = line.split(' ') | |
| self.date = numbers[0] | |
| self.open_price = float(numbers[1]) |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script> | |
| </head> | |
| <body> | |
| <svg | |
| height="200px" width="200px" background-color="grey" viewbox="-100 -100 200 200" |
| import sys, os | |
| import request | |
| import traceback | |
| agent = request.default_agent | |
| istart = int(sys.argv[1]) | |
| if not os.path.isdir('./data/'): | |
| os.makedirs('./data/') |