Skip to content

Instantly share code, notes, and snippets.

View joeke80215's full-sized avatar
:octocat:

joeekee joeke80215

:octocat:
  • Taipei City, Taiwan
View GitHub Profile
@joeke80215
joeke80215 / backtrack.kt
Last active October 7, 2018 03:53
kotlin backtrack
class CombineHandler {
var subsetArray: IntArray
val SIZE: Int = 5
init {
subsetArray = IntArray(SIZE)
}
fun backtrack (n: Int,size: Int) {
if (n == SIZE) {
for (i in 0..size - 1) {

Deploy gitlab-ce by docker

create service

docker run --detach \
    --hostname gitlab.example.com \
    --publish 8443:443 \
    --name gitlab \
    --restart always \
    --volume /srv/gitlab/config:/etc/gitlab \
package main
import (
"context"
"log"
"runtime"
"time"
)
var (
package main
import (
_ "encoding/json"
"fmt"
"gopkg.in/mgo.v2"
"io"
"os"
)