<Zone Distance>:<Special Flags>:<Metro Level Src>:<Metro level Dest>
- A: Nội thành
- B: Ngoại thành 1
- C: Ngoại thành 2
- D: Hải đảo (nếu có)
package hashcode | |
import "hash" | |
const Size = 4 | |
func NewHash() hash.Hash32 { | |
var s sum32 = 0 | |
return &s | |
} |
FROM golang:1.11.1-stretch as builder | |
WORKDIR /ops-golang | |
COPY . ./ | |
RUN CGO_ENABLED=0 \ | |
GOOS=linux \ | |
go build -mod=vendor -o app |
package main | |
import ( | |
"bytes" | |
"encoding/gob" | |
"net/http" | |
"github.com/gin-gonic/gin" | |
) |
function compoundUnicode(str) { | |
return `${str}` | |
.replace(/\u0065\u0309/g, '\u1EBB') // ẻ | |
.replace(/\u0065\u0301/g, '\u00E9') // é | |
.replace(/\u0065\u0300/g, '\u00E8') // è | |
.replace(/\u0065\u0323/g, '\u1EB9') // ẹ | |
.replace(/\u0065\u0303/g, '\u1EBD') // ẽ | |
.replace(/\u00EA\u0309/g, '\u1EC3') // ể | |
.replace(/\u00EA\u0301/g, '\u1EBF') // ế | |
.replace(/\u00EA\u0300/g, '\u1EC1') // ề |
package httputil | |
import ( | |
"bytes" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"github.com/golang/snappy" | |
) |
package md5crypt | |
import ( | |
"crypto/md5" | |
"fmt" | |
"strings" | |
"testing" | |
) | |
func TestMD5crypt(t *testing.T) { |
import * as React from "react"; | |
const faunadb = require("faunadb"); | |
const q = faunadb.query; | |
export const FaunaContext = React.createContext(); | |
export const FaunaProvider = ({ children, faunaSecret }) => { | |
const fauna = React.useMemo(() => { | |
if (!faunaSecret) { | |
throw new Error(`No faunaSecret found, skipping client creation`); | |
} |
12.05.20 01:31:29 (+0700) <main> 2020/05/11 18:31:29 w: | |
12.05.20 01:31:29 (+0700) <main> | |
12.05.20 01:31:29 (+0700) <main> 2020/05/11 18:31:29 w: | |
12.05.20 01:31:29 (+0700) <main> | |
12.05.20 01:31:29 (+0700) <main> 2020/05/11 18:31:29 w: |
package main | |
import ( | |
"log" | |
"net" | |
"os" | |
"os/signal" | |
"sync" | |
"syscall" | |
"time" |