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". |
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
| 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
| 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
| 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
| storage = | |
| books: | |
| 1: | |
| "name" : "Nazev" | |
| "isbn" : "123556" | |
| "publisher" : "/publisher/1" | |
| "author" : "/author/2" | |
| 2: | |
| "name" : "Nazev" | |
| "isbn" : "123556" |
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" | |
| crypto = require "crypto" | |
| hash = (text) -> crypto.createHash("md5").update(text).digest("hex") | |
| all = (array, fn) -> | |
| for value in array | |
| return false unless fn(value) | |
| return true | |
| any = (array, fn) -> | |
| for value in array |
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
| <?xml version="1.0" ?> | |
| <app:service | |
| xmlns="http://www.w3.org/2005/Atom" | |
| xmlns:app="http://www.w3.org/2007/app" | |
| xmlns:metadata="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" | |
| xmlns:data="http://schemas.microsoft.com/ado/2007/08/dataservices"> | |
| <app:workspace href="http://store.it/users/432/albums/"> | |
| <title>Peter Novak's albums</title> | |
| <app:collection href="http://store.it/users/432/albums/635/"> | |
| <title>Trip to Prague></title> |
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
| # Guake: | |
| COLORS="#272728282222:#ffff29292929:#a6a6e2e22e2e:#e6e6dbdb7474:#6666d9d9efef:#f9f926267272:#bebe8484ffff:#fefefffffefe:#757571715e5e:#ffff29292929:#a6a6e2e22e2e:#fdfd97971f1f:#6666d9d9efef:#f9f926267272:#aeae8181ffff:#fefefffffefe" | |
| FOREGROUND="#F6F6F5F5EEEE" | |
| BACKGROUND="#232325252626" | |
| gconftool-2 -s -t string /apps/guake/style/background/color $BACKGROUND | |
| gconftool-2 -s -t string /apps/guake/style/font/palette $COLORS | |
| gconftool-2 -s -t string /apps/guake/style/font/color $FOREGROUND |
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
| class ChangeMakingProblem | |
| attr_reader :values, :target | |
| def initialize(values) | |
| # sorting is not nesesary, but has good impact on speed | |
| @values = values.sort.reverse | |
| end | |
| def solve(target) |
OlderNewer