If you plan to use iconv() to transliterate string in you PHP project, please, take this:
FROM alpine:3.4
RUN apk add --update php5-cli wget build-base php5-dev autoconf re2c libtool \| // Trie.js - super simple JS implementation | |
| // https://en.wikipedia.org/wiki/Trie | |
| // ----------------------------------------- | |
| // we start with the TrieNode | |
| function TrieNode(key) { | |
| // the "key" value will be the character in sequence | |
| this.key = key; | |
| localhost:80, localhost:443 { | |
| root C:\Projects | |
| log C:\Web\Soft\Caddy\access.log | |
| errors C:\Web\Soft\Caddy\errors.log | |
| tls { | |
| # see https://gist.github.com/JanTvrdik/d22f53604f3bfd78df3863cf1ad87b8a | |
| load C:\Web\Soft\Caddy\certificates | |
| } |
| #!/usr/bin/env bash | |
| set -o errexit -o pipefail -o nounset | |
| IFS=$'\n\t' | |
| ROOT="$(dirname $0)/root" | |
| if [[ -f $ROOT.key || -f $ROOT.crt ]]; then | |
| echo "Root certificate already exist" | |
| exit 1 | |
| fi |
| <?php | |
| $runCount = 1000; | |
| $dataSets = [ | |
| 'setA' => [$runCount, 123], | |
| ]; | |
| $tests = [ | |
| 'testA' => function ($count, $n) { |
| import java.util.Arrays | |
| // BurstSort | |
| // Cache-Conscious Sorting of Large Sets of Strings with Dynamic Tries | |
| // http://goanna.cs.rmit.edu.au/~jz/fulltext/alenex03.pdf | |
| class BurstLeaf(initSize: Int) { | |
| var size: Int = 0 |
| DELIMITER ;; | |
| DROP PROCEDURE IF EXISTS `normalize_foreign_key_name`;; | |
| CREATE PROCEDURE `normalize_foreign_key_name`(IN `param_database_name` varchar(100) CHARACTER SET 'ascii', IN `param_table_name` varchar(100) CHARACTER SET 'ascii', IN `param_column_name` varchar(100) CHARACTER SET 'ascii') | |
| BEGIN | |
| DECLARE var_constraint_name_current VARCHAR(100); | |
| DECLARE var_constraint_name_new VARCHAR(100); | |
| DECLARE var_constraint_target_table VARCHAR(100); |
| - Aws\Sdk({ | |
| credentials: { | |
| key: %s3.key%, | |
| secret: %s3.secret%, | |
| }, | |
| version: latest, | |
| region: 'eu-west-1', | |
| http_handler: @Aws\Handler\GuzzleV6\GuzzleHandler, | |
| }) | |
| - Aws\Handler\GuzzleV6\GuzzleHandler |
| #!/usr/bin/env bash | |
| # ----------------------------------------------------------------------------- | |
| # Safety settings (see https://gist.github.com/ilg-ul/383869cbb01f61a51c4d). | |
| if [[ ! -z ${DEBUG} ]] | |
| then | |
| set ${DEBUG} # Activate the expand mode if DEBUG is anything but empty. | |
| else | |
| DEBUG="" |
| <?php | |
| class Skrz_Sniffs_Classes_ClassDeclarationSniff implements PHP_CodeSniffer_Sniff | |
| { | |
| public function register() | |
| { | |
| return [T_CLASS, T_INTERFACE, T_TRAIT]; | |
| } |