opts.Field | Type | Default |
---|---|---|
Ansi | bool | false |
Black | bool | false |
Bold | bool | true |
Case | Case | CaseSmart |
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
#!/usr/bin/env bash | |
myscript () { | |
typeset a i k; | |
# setup cmd; declare functions | |
for i in "${!g_@}"; do | |
typeset -n j=$i; | |
typeset "action_${!j}"; | |
for k in ${j}; do |
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
#!/usr/bin/env bash | |
# Method 1 | |
bind -x '"\C-x4": history_and_alias_expand_line'; | |
bind '"\C-x3": history-and-alias-expand-line'; | |
bind -x '"\C-x2": READLINE_LINE_OLD="$READLINE_LINE"'; | |
bind '"\C-x1": "\C-x2\C-x3\C-x4\C-x5"'; | |
function history_and_alias_expand_line { |
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
fn () { tput setaf 1; printf '<%s>\n' "$BASH_COMMAND"; tput sgr0; } | |
shopt -s extdebug | |
trap fn DEBUG | |
# then type: | |
: && $(:) | |
# diagnosis: | |
bash: $'\E[31m<:>': command not found |
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
#/usr/bin/env bash | |
function bar { | |
[[ -n $READLINE_LINE ]] || return 0; | |
eval " | |
function f { | |
$READLINE_LINE | |
}; | |
" 2> /dev/null || { bind '"\C-x3": edit-and-execute-command' && i=1; }; |
-
Vervollständigen Sie folgende Tabelle[18P]:
Dezimale Zahl Binäre Zahl Hexadezimale Zahl 327 1100 1101 0xA4 18 1000 1111
| | | 0x4A|
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
package kap12; | |
public class Kap12 { | |
static int[] array = { | |
1, | |
2, | |
3, | |
4, | |
5, | |
6, |
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
/** | |
* Warum müssen sie ein Array zurückgeben und können nicht die Werte für die | |
* Tage, Stunden, Minuten und Sekunden "zurückgeben"? | |
* | |
* In Java kann scheinbar nur eine Variable bzw. eine Referenz auf ein Objekt zurückgegeben werden. | |
* | |
* Weitere Lösungen: | |
* - Für jede Zeiteinheit eine Methode. | |
* - globale Variablen bzw. Membervariablen benutzen statt internem 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
// TODO |
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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.Arrays; | |
import java.util.Random; | |
import java.util.Scanner; | |
public class MatrixGame { | |
private char[][] mArray; |