Skip to content

Instantly share code, notes, and snippets.

View hankcs's full-sized avatar
🐼
Dark circles everyday

hankcs

🐼
Dark circles everyday
View GitHub Profile
@hankcs
hankcs / alpha blend图层合并算法
Created May 6, 2016 03:49 — forked from ruilin/alpha blend图层合并算法
带alpha通道的图层合并算法,实现多个图层叠加后产生的新图层rgba数据
int clamp(int val) {
if (val < 0) return 0;
if (val > 255) return 255;
return val;
}
unsigned char layerMerge(unsigned char **layers, unsigned int layerCount, unsigned int layerWidth, unsigned int layerHeight) {
if (1 >= layerCount) return 0;
unsigned char isNewLayer = 0;
unsigned int i, j, byteCount;
@hankcs
hankcs / bdcurl.sh
Created October 18, 2015 03:59 — forked from meoow/bdcurl.sh
百度云命令行(bash)上传下载脚本
#!/bin/bash
# Baidu Yun Command Line Interface
# Depends: bash, curl, grep, awk, sed, od
# (They are basicly builtin tools of any *nix system.)
# Additionally, fastupload depends: head, wc, md5sum or md5, cksum
# (Which are also builtin tools)
#### Variables ####

词的分类

  • 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
  • 虚词:副词、介词、连词、助词、拟声词、叹词。

ICTPOS3.0词性标记集

n 名词

nr 人名