摘要:
/********** huangsy13@gmail.com FileStruct.h **********/ #ifndef FILESTRUE #define FILESTRUE #include<unistd.h> #include<stdio.h> #include<string.h> #
阅读全文
posted @ 2016-11-09 17:17
Shiyu_Huang
阅读(375)
推荐(0)
摘要:
http://www.cnblogs.com/huangshiyu13/p/6647375.html http://blog.csdn.net/xiaojidan2011/article/details/39205309 g++ hog.cpp $(pkg-config --libs opencv
阅读全文
posted @ 2016-11-09 16:57
Shiyu_Huang
阅读(173)
推荐(0)
摘要:
关闭会话: tmux kill-session -t sessionName tmux所有窗口执行相同命令:ctrl+B输入冒号再输入setw synchronize-panes 多服务器同步软件:https://github.com/peikk0/tmux-cssh 1.配置文件的使用 在~/.t
阅读全文
posted @ 2016-11-04 18:34
Shiyu_Huang
阅读(326)
推荐(0)
摘要:
import numpy as np list = range(3) # 0 1 2 np.random.shuffle(list)#2 1 3,打乱了list 产生一个随机整数:
阅读全文
posted @ 2016-10-26 20:08
Shiyu_Huang
阅读(451)
推荐(0)
摘要:
1.C#自带随机数函数 using System; System.Random ran = new System.Random();int n = ran.Next(100, 1000);//产生100到999之间的随机整数 Debug.Log (n); 2.Unity自带随机数函数 using U
阅读全文
posted @ 2016-10-23 16:04
Shiyu_Huang
阅读(812)
推荐(0)
摘要:
using System.Collections; 新建: ArrayList list = new ArrayList(); 添加元素: int a = 1; list.Add(a); 遍历: foreach(int a in list){ Debug.Log(a); } 统计长度: Debug.
阅读全文
posted @ 2016-10-22 10:57
Shiyu_Huang
阅读(170)
推荐(0)
摘要:
1.下载Opencv for unity. 2.把OpenCVForUnity下的StreamingAssets拖到Assets下。 3.点击Tools->opencv for unity->set plugin import settings. 4. using UnityEngine; usin
阅读全文
posted @ 2016-10-21 16:52
Shiyu_Huang
阅读(8111)
推荐(2)
摘要:
GAN(Generative Adversarial Nets),产生式对抗网络 存在问题: 1.无法表示数据分布 2.速度慢 3.resolution太小,大了无语义信息 4.无reference 5.intend to generate same image 6.梯度消失 论文摘要: 1、Goo
阅读全文
posted @ 2016-10-21 15:51
Shiyu_Huang
阅读(4068)
推荐(0)
摘要:
import numpy as np 1.创建 a = np.array([[0,1],[0,1]]) 2.合并 a =np.array([[1,2],[4,5]]) b =np.array([[9,8],[6,5]]) np.concatenate((a,b)) array([[1, 2,], [
阅读全文
posted @ 2016-10-18 21:30
Shiyu_Huang
阅读(172)
推荐(0)
摘要:
1.Introduction 2.Convolution 3.Deconvolution 4.Summary
阅读全文
posted @ 2016-10-17 13:51
Shiyu_Huang
阅读(183)
推荐(0)
摘要:
document:http://effbot.org/imagingbook/pil-index.htm http://pillow.readthedocs.io/en/3.1.x/index.html from PIL import Image 1.打开图片 img = Image.open(fi
阅读全文
posted @ 2016-10-13 11:13
Shiyu_Huang
阅读(612)
推荐(0)
摘要:
int(x [,base]) 将x转换为一个整数 long(x [,base] ) 将x转换为一个长整数 float(x) 将x转换到一个浮点数 complex(real [,imag]) 创建一个复数 str(x) 将对象 x 转换为字符串 repr(x) 将对象 x 转换为表达式字符串 eval
阅读全文
posted @ 2016-10-13 11:08
Shiyu_Huang
阅读(173)
推荐(0)
摘要:
1.最近比较喜欢的用法: from concurrent.futures import ProcessPoolExecutor, as_completed ex = ProcessPoolExecutor(max_workers=50) tasks = [ex.submit(process_func
阅读全文
posted @ 2016-10-12 22:17
Shiyu_Huang
阅读(214)
推荐(0)
posted @ 2016-10-12 16:18
Shiyu_Huang
阅读(143)
推荐(0)
摘要:
#国内可以使用:sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzs
阅读全文
posted @ 2016-10-10 13:46
Shiyu_Huang
阅读(1585)
推荐(0)
摘要:
需添加: import matplotlib as mpl mpl.use('Agg') 而且必须添加在import matplotlib.pyplot之前,否则无效
阅读全文
posted @ 2016-10-04 01:10
Shiyu_Huang
阅读(1864)
推荐(0)
摘要:
1.查看当前文件大小du -sh ./ du [-abcDhHklmsSx] [-L <符号连接>][-X <文件>][--block-size][--exclude=<目录或文件>] [--max-depth=<目录层数>][--help][--version][目录或文件] 常用参数: -a或-
阅读全文
posted @ 2016-10-02 15:45
Shiyu_Huang
阅读(393)
推荐(0)
摘要:
1.ssh-keygen 2.cat ~/.ssh/id_rsa.pub 3.git config user.email "huangsy1314@163.com" 4.git config user.name huangsy13
阅读全文
posted @ 2016-10-02 15:33
Shiyu_Huang
阅读(349)
推荐(0)
摘要:
apt-get source package cd package ./configure --prefix=$HOME make make install
阅读全文
posted @ 2016-09-30 13:57
Shiyu_Huang
阅读(4751)
推荐(0)
posted @ 2016-09-22 19:23
Shiyu_Huang
阅读(223)
推荐(0)
摘要:
1.fellow the instruction of https://www.tensorflow.org/install/install_linux#installing_with_anaconda 2.anaconda安装,修改~/.bash_profile为 export PATH=~/an
阅读全文
posted @ 2016-09-21 19:55
Shiyu_Huang
阅读(245)
推荐(0)
摘要:
Github:https://github.com/huangshiyu13/PythonFileLib 1.获得文件夹下所有文件名 for file in os.listdir(imageDir): file_path = os.path.join(imageDir, file) if os.pa
阅读全文
posted @ 2016-09-21 11:03
Shiyu_Huang
阅读(425)
推荐(0)
摘要:
#include #include #include #include #include #include using namespace std; const int MAXINT = 32767; const int MAXNUM = 10; int dist[MAXNUM]; int prev[MAXNUM]; int len; int v00 = 0; int A[MA...
阅读全文
posted @ 2016-09-17 14:57
Shiyu_Huang
阅读(181)
推荐(0)
摘要:
北京大学OJ1182 食物链 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 64641 Accepted: 18999 Description 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C
阅读全文
posted @ 2016-09-17 14:00
Shiyu_Huang
阅读(952)
推荐(0)
摘要:
第一种,试除法 第二种,先求质数,在试除质数 #include <iostream>#include <vector>#include <cstring>#include <cstdio>#include <algorithm>#include <cmath> using namespace std
阅读全文
posted @ 2016-09-17 10:13
Shiyu_Huang
阅读(200)
推荐(0)
摘要:
问题: 拿POJ 2533来说。 Sample Input 71 7 3 5 9 4 8 Sample Output(最长上升/非降子序列的长度) 4 解法一(O(n^2)): 如何把这个问题分解成子问题呢?经过分析,发现 “求以ak(k=1, 2, 3…N)为终点的最长上升子序列的长度”是个好的子
阅读全文
posted @ 2016-09-16 19:31
Shiyu_Huang
阅读(723)
推荐(0)
摘要:
main.cpp: #include <iostream>#include <vector>#include <cstring>#include <cstdio>#include <algorithm>#include <cmath> using namespace std; std::vector
阅读全文
posted @ 2016-09-16 18:34
Shiyu_Huang
阅读(461)
推荐(0)
摘要:
测例: 30 53 4 6 8 4 1 4 12 4 5 1234 34 54 213 12 3 6456 121 434 12 3 2 1234 234 234 45 1 34 6 2341 34 823 291 2513 29 #include <iostream>#include <vecto
阅读全文
posted @ 2016-09-16 18:15
Shiyu_Huang
阅读(166)
推荐(0)
摘要:
1.安装g++ 下载https://sourceforge.net/projects/mingw/files/Installer/mingw-get/mingw-get-0.6.2-beta-20131004-1/mingw-get-0.6.2-mingw32-beta-20131004-1-bin
阅读全文
posted @ 2016-09-16 13:55
Shiyu_Huang
阅读(238)
推荐(0)
摘要:
1.插入配对 std::vector<pair<int,int> > w; w.push_back(make_pair<int,int>(f,s) ); cout <<w[i].first << " " << w[i].second <<endl; 2.元素去重 std::vector<int> a
阅读全文
posted @ 2016-09-16 13:44
Shiyu_Huang
阅读(275)
推荐(0)
摘要:
一道OJ题:https://leetcode.com/problems/count-of-smaller-numbers-after-self/ 1.暴力 时间复杂度O(n^2) 2.归并排序 O(nlog(n)) 在合并的过程中是将两个相邻并且有序的序列合并成一个有序序列,如以下两个有序序列 Se
阅读全文
posted @ 2016-08-20 09:44
Shiyu_Huang
阅读(249)
推荐(0)
摘要:
using UnityEngine; using System.Collections; public class dynaMesh : MonoBehaviour { public SkinnedMeshRenderer meshRenderer; public MeshCollider coll
阅读全文
posted @ 2016-08-19 00:48
Shiyu_Huang
阅读(1734)
推荐(0)
摘要:
1.字符串分割 S = regexp(str, char, 'split') 例子: S = regexp(fileName, '\.', 'split'); newName = [ S{1} '.txt'];
阅读全文
posted @ 2016-08-16 23:52
Shiyu_Huang
阅读(225)
推荐(0)
摘要:
终端里输入:defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder 回复输入:defaults delete com.apple.finder _FXShowPosixPathInTitle;
阅读全文
posted @ 2016-08-16 22:31
Shiyu_Huang
阅读(1166)
推荐(0)
摘要:
先在input标签中添加一个id='getvalue'document.getElementById("getvalue").value;
阅读全文
posted @ 2016-08-16 22:10
Shiyu_Huang
阅读(223)
推荐(0)
摘要:
1.新建矩阵 A = zeros(5,5); 2.矩阵赋值 A(:,j) = [5 5]表示取A矩阵的第j列全部元素 a.矩阵的同行元素之间用空格(或”,”)隔开; b.矩阵的行与行之间用”;”(或回车符)隔开;
阅读全文
posted @ 2016-08-13 04:09
Shiyu_Huang
阅读(167)
推荐(0)
摘要:
问题描述: 输入一组整数,求出这组数字子序列和中最大值。也就是只要求出最大子序列的和,不必求出最大的那个序列。例如: 序列:-2 11 -4 13 -5 -2,则最大子序列和为20。 序列:-6 2 4 -7 5 3 2 -1 6 -9 10 -2,则最大子序列和为16。 算法一: //穷举法,复杂
阅读全文
posted @ 2016-08-13 02:03
Shiyu_Huang
阅读(232)
推荐(0)
摘要:
1.写文件 f = open('out.txt','w') f.write('%s %d %d %d %d 0 0 0 0 0 0 0'%(bbx.name,bbx.x,bbx.y,bbx.w,bbx.h)) f.close() 2.读文件 第一种 f = open("foo.txt") # 返回一
阅读全文
posted @ 2016-08-12 23:24
Shiyu_Huang
阅读(261)
推荐(0)
摘要:
link:http://www.mobileway.net/2015/02/14/install-opencv-for-python-on-mac-os-x/
阅读全文
posted @ 2016-08-12 11:56
Shiyu_Huang
阅读(375)
推荐(0)
摘要:
1. brew install python 2.If you don't have ~/.bash_profile, add ~/.bash_profile by touch ~/.bash_profile 3.Add below text to ~/.bash_profile # Homebre
阅读全文
posted @ 2016-08-12 11:54
Shiyu_Huang
阅读(4556)
推荐(0)