This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Stateless | |
| ========= | |
| < open | |
| > order token not specified | |
| < open my_order | |
| > opened | |
| < add my_order something | |
| > added | |
| < process | |
| > orden token not specified |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| net = require 'net' | |
| server = net.createServer (con) -> | |
| con.setEncoding 'utf8' | |
| items = no | |
| process = (action, value) -> | |
| return "Commands: open, add, process" unless action in ["open", "add", "process"] | |
| if action == "open" | |
| return "order already exists" if items |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| net = require 'net' | |
| DB = {} | |
| server = net.createServer (con) -> | |
| con.setEncoding 'utf8' | |
| process = (action, token, value) -> | |
| return "Commands: open, add, process" unless action in ["open", "add", "process"] | |
| return "order token not specified" unless token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http = require "http" | |
| DB = | |
| pending : [] | |
| customer : [ | |
| "This is existing entity" | |
| "This is existing entity" | |
| "This is existing entity" | |
| "This is existing entity" | |
| "This is existing entity" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ficik@ficik-desktop:~$ DEBUGGER=gdb steam | |
| Running Steam on ubuntu 12.10 32-bit | |
| STEAM_RUNTIME is disabled by the user | |
| GNU gdb (GDB) 7.5-ubuntu | |
| Copyright (C) 2012 Free Software Foundation, Inc. | |
| License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
| This is free software: you are free to change and redistribute it. | |
| There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
| and "show warranty" for details. | |
| This GDB was configured as "i686-linux-gnu". |
NewerOlder