Skip to content

Instantly share code, notes, and snippets.

View lixin9311's full-sized avatar
🏠
Working from home

lucas lixin9311

🏠
Working from home
View GitHub Profile
package main
import (
"github.com/linkedin/goavro"
"log"
"bytes"
)
var (
schema = `
#include <stdio.h>
#include <unistd.h>
#include <mtbb/task_group.h>
int f() {
printf("child\n");
sleep(1);
return 0;
}
package main
import (
"fmt"
"log"
"time"
"net"
"github.com/lixin9311/water"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define SIZE 30
void bubble_sort(int arr[], int len, int direction) {
int i, j, temp;
for (i = 0; i < len - 1; i++)
for (j = 0; j < len - 1 - i; j++)
@lixin9311
lixin9311 / watchdog.go
Last active October 25, 2018 20:26
watchdog
package main
import (
"flag"
"io"
"log"
"net"
"os"
"time"
"unsafe"
@lixin9311
lixin9311 / report1.c
Created November 6, 2018 16:56
fork and get VMA
#include "stdio.h"
#include "stdlib.h"
#include "sys/types.h"
#include "sys/wait.h"
#include "unistd.h"
int runcmd(char *cmd) {
FILE *fp;
char buf[1035];
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/percpu.h>
#include <linux/kthread.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/smp.h>
#define PRINT_PREF "[PERCPU]: "
package main
import (
"flag"
"fmt"
"io/ioutil"
"strings"
"sync"
)
package dummy
import (
"fmt"
"os"
"os/signal"
"syscall"
"testing"
"time"
from keras.models import Model
from keras.layers import Conv2D, Input, UpSampling2D, Lambda, Layer
from keras.optimizers import *
from keras import backend as K
from keras.applications import VGG19
from ops import *
class UNet():
def __init__(self):
self.imgshape = (None, None, 3)