Skip to content

Instantly share code, notes, and snippets.

View clevertension's full-sized avatar

Dan Zheng clevertension

  • Hangzhou,China
View GitHub Profile
@clevertension
clevertension / 1533996548.txt
Created August 11, 2018 14:09
Created with Copy to Gist
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>SpringBootGame</groupId>
<artifactId>SpringBootGame</artifactId>
<version>1.0-SNAPSHOT</version>
<parent>
@clevertension
clevertension / pom.xml
Last active January 6, 2021 13:27
spring-boot-parent-pom-example
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>SpringBootGame</groupId>
<artifactId>SpringBootGame</artifactId>
<version>1.0-SNAPSHOT</version>
<parent>
@clevertension
clevertension / BlockableQueueConsumer.java
Created December 6, 2016 06:11
Autoreconnect rabbitmq
import com.rabbitmq.client.*;
import com.rabbitmq.utility.Utility;
import java.io.IOException;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
/**
* Created by dan on 2016/10/19.
http://yun.baidu.com/share/link?shareid=384689100&uk=1547538098&adapt=pc&fr=ftw#path=%252F
@clevertension
clevertension / test_vm_peak.cpp
Last active August 12, 2018 11:08
get the peak vm
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <vector>
#include <utility>
#include <iostream>
#include <fstream>
#include <sstream>
//getpid
@clevertension
clevertension / MultiProblem.cs
Last active August 29, 2015 14:07
Test about monodis and ildasm
using System;
class MultiProblem
{
public int complex(int[,] a) {
return (int)(a[0,0]);
}
}
using System;
public class Hello2
{
public static void Main() {
Console.WriteLine("aa");
}
}
## hehe