docker run --detach \
--hostname gitlab.example.com \
--publish 8443:443 \
--name gitlab \
--restart always \
--volume /srv/gitlab/config:/etc/gitlab \
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
package main | |
import ( | |
_ "encoding/json" | |
"fmt" | |
"gopkg.in/mgo.v2" | |
"io" | |
"os" | |
) |
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
package main | |
import ( | |
"context" | |
"log" | |
"runtime" | |
"time" | |
) | |
var ( |
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
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) { |
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
package main | |
import ( | |
"encoding/json" | |
"log" | |
"github.com/go-redis/redis" | |
) | |
type Cookie struct { |
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
#include "example.h" | |
USING_NS_CC; | |
// createScene create scene for main scene | |
Scene* ExampleScene ::createScene() | |
{ | |
return ExampleScene ::create(); | |
} |
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
CREATE TRIGGER `testTrigger` BEFORE UPDATE ON `testTable` | |
FOR EACH ROW SET NEW.<timestamp col>=TIMESTAMPDIFF(SECOND,OLD.SENDTIME,NOW()) |
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
package main | |
import ( | |
"fmt" | |
"sync" | |
"sync/atomic" | |
) | |
var browseNum uint32 |
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
{ | |
// 使用 IntelliSense 以得知可用的屬性。 | |
// 暫留以檢視現有屬性的描述。 | |
// 如需詳細資訊,請瀏覽: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"preLaunchTask": "build", // 添加preLaunchTask,先執行build任務 | |
"name": "(gdb) Launch", | |
"type": "cppdbg", |
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
#include <stdlib.h> | |
#include <stdlib.h> | |
struct LinkNode | |
{ | |
int Val; | |
struct LinkNode *Next; | |
}; | |
static int count; |
OlderNewer