- The system is inherently distributed (e.g. mobile devices like smartphones)
- Reliability (some nodes can fail and the system keeps functioning; fault tolerance)
- Performance (process data faster by utilizing multiple nodes or achieve better latency by requesting data from a nearby node)
- The capacity of a single machine isn’t enough for the task (e.g. limited memory size, bandwidth, CPU cycles, etc.; scalability)
This file contains 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
from lxml import etree | |
def process_elements(element, keep_tags, depth=0): | |
result = [] | |
for child in element: | |
if child.tag in keep_tags: | |
result.append((depth, child)) | |
result.extend(process_elements(child, keep_tags, depth + 1)) | |
return result |
This file contains 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
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"strings" |
This file contains 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
type TableName = string; | |
type ColumnReference = string; | |
type SqlConditions = string; | |
type JsonKeyName = string; | |
type OrderBy = Record<ColumnReference, "ASC" | "DESC">; | |
enum QueryNodeType { | |
Array, | |
Object, | |
} |
,
cycle status barsZ
to jump to selectionH
to jump to baseSpace
to jump to last radar eventQ
to select all combat units on screen (double click for on map)Click
on unit andW
to select all units of same type on screen (double click for on map)Shift
+Click
on unit to add it to selection (also possible to drag over multiple units)
This file contains 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
/** | |
* Checks if the provided credentials are correct and returns corresponding | |
* employer entity | |
* | |
* @throws 404 NotFound Exception (email not found) | |
* @throws 401 Unauthorized Exception (email and password combination wrong) | |
* @param email | |
* @param password | |
*/ | |
async validateCredentialsEmployer( |