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
{* Smarty *} | |
{capture name='_smarty_debug' assign=debug_output} | |
<script type="text/javascript"> | |
// <![CDATA[ | |
window.smarty ={}; | |
{if $assigned_vars != null} | |
{foreach $assigned_vars as $vars} | |
window.smarty['{$vars@key|escape:'javascript'}'] = {$vars|@json_encode nofilter}; | |
{/foreach} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
</head> | |
<body> | |
<style type="text/css" media="all"> |
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
function checkBankAccountNumber(account) { | |
var matches = /^(([0-9]{0,6})-)?([0-9]{1,10})\/([0-9]{1,6})$/.exec(account); | |
if (!matches) { | |
return false; | |
} | |
return checkDigit11(matches[2]) && checkDigit11(matches[3]); | |
} |
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 golang:1.14 AS builder | |
WORKDIR /go/src/app | |
COPY . . | |
RUN sh build.sh | |
FROM alpine:latest | |
RUN apk --no-cache add ca-certificates |
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
<?php | |
function getAllKeys(\Memcached $mc): array | |
{ | |
$allKeys = []; | |
foreach ($mc->getServerList() as $id => $server) { | |
$sock = fsockopen($server['host'], $server['port'], $errno, $errstr, 1); |