Skip to content

Instantly share code, notes, and snippets.

View kice's full-sized avatar

kice

  • The Land of HiRes Anime
View GitHub Profile
@kice
kice / mxint8.cpp
Last active November 20, 2018 11:55
#include <string>
#include <vector>
#include <assert.h>
#include <opencv/cv.hpp>
template<class _Elem,
class _Traits,
class _Alloc> inline
std::vector<std::basic_string<_Elem, _Traits, _Alloc>> split(
import warnings
warnings.filterwarnings("ignore")
import mxnet as mx
import numpy as np
from skimage.measure import compare_ssim, compare_psnr
from PIL import Image
from mxnet.contrib.quantization import *
import sys, os, argparse, time, ntpath, logging, logging.handlers
@kice
kice / Ubuntu-core-install-guide.md
Last active February 19, 2020 10:25
Ubuntu core install guide(CN)

准备

使用下载Ubuntu Desktop ISO镜像(32位64位都可以)。 用光驱启动,选择试用Ubuntu。

下载ubuntu-core

访问:http://cdimage.ubuntu.com/ubuntu-core/releases/找到所需要的镜像文件。

使用Ubuntu LiveCD,下载所需镜像到home目录

@kice
kice / gozmq on Windows.txt
Created October 22, 2014 11:00
ZeroMQ Go binding on Windows.txt
话说ZeroMQ是一个强大的库,可以跨平台和垮语言进行传输数据。
最近在弄Go语言,google一下ZMQ还真有Go绑定:http://zeromq.org/bindings:go
里面已经有人完成了Go的封装,这里就直接下载代码:
go get github.com/pebbe/zmq4
同步完代码提示说没有gcc,不能用。
因为向来不是很希望用Cygwin,于是就使用MinGW。不过在官网只有32位版(Go是用64位,家里也是64位Win8.1),还好有mingw64。
搭建还是很简单:
@kice
kice / URLLogin.php
Last active August 29, 2015 13:57
URL登录-PHP
<?php
include('connet.php');
/**
* URL Login Class
* URL登录
* 使用RSA加密算法
*
* Copyright Kice
**/