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
// Simple substitution | |
render("Hello, {name}!", { name: "John" }); // Hello, John! | |
// More advanced, with plurals | |
const message = `You have {numBooks, number} {numBooks, plural, one {book} other {books}}.`; | |
const variables = { numBooks: 5 }; | |
render(message, variables); // You have 5 books. |
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
interface View { | |
show(container: Element): void; | |
hide(): void; | |
} |
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.IOException; | |
import java.util.HashSet; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import java.util.Set; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; |
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
[602336.506945] sdb: | |
[602337.780622] sdb: sdb1 sdb9 | |
[602337.847438] sdb: sdb1 sdb9 | |
[602358.964698] sdm: | |
[602360.146857] sdm: sdm1 sdm9 | |
[602360.160642] sdm: sdm1 sdm9 | |
[602391.209978] mpt2sas_cm0: log_info(0x31120303): originator(PL), code(0x12), sub_code(0x0303) | |
[602391.209986] mpt2sas_cm0: log_info(0x31120303): originator(PL), code(0x12), sub_code(0x0303) | |
[602391.209990] mpt2sas_cm0: log_info(0x31120303): originator(PL), code(0x12), sub_code(0x0303) | |
[602391.209995] mpt2sas_cm0: log_info(0x31120303): originator(PL), code(0x12), sub_code(0x0303) |
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
version: '2' | |
services: | |
rocketchat1: | |
image: rocketchat/rocket.chat:0.65.1 | |
restart: unless-stopped | |
volumes: | |
- ./uploads:/app/uploads | |
environment: | |
- PORT=3000 |
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
module.exports = { | |
presets: [ | |
"@swissquote/crafty-preset-babel", | |
"@swissquote/crafty-runner-webpack" | |
], | |
js: { | |
app: { | |
runner: "webpack", | |
source: "js/index.js" | |
} |
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
FROM lsiobase/alpine | |
MAINTAINER onigoetz <[email protected]> | |
RUN apk add --no-cache bash unrar | |
COPY crontab /var/spool/cron/crontabs/abc | |
COPY ./unrar.sh /bin/unrar_torrent.sh | |
RUN chmod +x /bin/unrar_torrent.sh |
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
<?php | |
function quick_backtrace() { | |
$trace = debug_backtrace(); | |
echo '<pre>'; | |
foreach ($trace as $entry) { | |
if (__FUNCTION__ == $entry['function']) continue; | |
if (array_key_exists('file', $entry)) { | |
$file = (strlen($entry['file']) >= 30)? '…'.substr($entry['file'], -29) : $entry['file']; |