Skip to content

Instantly share code, notes, and snippets.

@zippera
zippera / bow.m
Created December 28, 2013 02:16
人工智能作业,对图片分类,matlab 版。
clear all;
clc;
ncluster = 10;
%%%%%%%读入数据
path_c = 'car feature/';
path_d = 'dinosaur feature/';
%恐龙
d_dir = [];
d_inf = [];
files_d = dir(strcat(path_d ,'*.txt'));
@zippera
zippera / hexo.sh
Created April 6, 2014 05:58
一个zsh 的 shell 脚本,执行方式是`zsh hexo.sh title`,利用 hexo 创建一个文档并打开。
#!/bin/zsh
#for hexo
cd ~/Documents/zipperary
hexo n "$1"
cd source/_posts/
file=`ls -rt | tail -1`&&open $file -a Mou
@zippera
zippera / hexo.workflow
Created April 6, 2014 06:04
alfred 的 workflow,用hexo 写博客时用。相关介绍:http://zipperary.com/2013/10/27/alfred-workflow/
cd Documents/zipperary
hexo n '{query}'
open ./source/_posts/
cd source/_posts/
file=`ls -rt | tail -1`&&open $file -a Mou
cd ~/Documents/zipperary