Skip to content

Instantly share code, notes, and snippets.

template <typename Left, typename Right>
struct ConcatExpr;
template <typename Left, typename Right>
struct AltExpr;
template <typename SubExpr>
struct RepeatExpr;
template <typename SubExpr>
package main
import (
"encoding/json"
"errors"
"log"
"net/http"
"sync"
"time"
)
package main
type A struct {
x int
y int
}
func (a *A) Print() {
println(a.x, a.y)
}
#include <stdio.h>
int main() {
char a = 255;
unsigned char b = 255;
printf("%d %d\n", a, b);
printf("%u %u\n", a, b);
}
package main
import "sync"
type SingleCounter struct {
count int
}
var counter *SingleCounter
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
char p[5];
int i;
scanf("%s", p);
printf("%d\n", (int)strlen(p));
for (i=strlen(p)-1;i>=0;i--) {
package main
import (
"encoding/csv"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/http/cookiejar"
package bus;
import com.google.gson.Gson;
public class Json {
private static class Announce {
private String Caption;
private String Text;
private long CreatedAt;
@hongruiqi
hongruiqi / test.c
Last active November 29, 2015 14:44
test
#include <stdio.h>
#include <string.h>
#include <pthread.h>
int x;
int y;
int a;
int b;
void* f1(void* arg)
@hongruiqi
hongruiqi / test.go
Created November 29, 2015 14:07
funny
package main
import "sync"
func main() {
for {
x := 0
y := 0
a := 0
b := 0