Time of Update: 2014-09-19
camel-name-utils 在駝峰風格跟底線風格之間切換,駝峰camelbak用處用來將字串在駝峰風格跟底線風格之間切換。對於一般人可能沒用,對於寫orm架構的人有點作用。例子:company_name -> companyName安裝方式添加以下依賴到pom.xml<dependency> <groupId>org.crazycake</groupId>
Time of Update: 2014-09-19
隨想錄(fatfs的學習),隨想錄fatfs學習【 聲明:著作權,歡迎轉載,請勿用於商業用途。 聯絡信箱:feixiaoxing @163.com】 上學的時候就對檔案系統很有興趣,但是苦於沒有合適的fs代碼可以學習。市面上的fs代碼,要麼太大,像linux一樣,動不動就是幾萬行,幾十萬行;要麼就是沒有開源,你只會使用它的介面,卻不太清楚裡面是怎麼實現的。
Time of Update: 2014-09-19
OpenGL之路(五)製作旋轉飛機模型,opengl飛機模型#include <gl/glut.h>#include <gl/GLU.h>#include <gl/GL.h>#pragma comment(lib, "opengl32.lib")#pragma comment(lib, "glut32.lib")#pragma comment(lib, "glu32.lib")#pragma
Time of Update: 2014-09-19
K&R_6.5用二叉樹統計單詞出現的次數,k第二季因為預先不知道出現的單字清單,無法方便地排序並使用折半尋找;也不能分別對輸入中的每個單詞都執行一次線性尋找,開銷太大-->O(n^n)。所以考慮使用二叉樹的資料結構(O(n*logn))來組織這些單詞,實現如下:-----/* * My practice of K&R 6.5 * */#include <stdio.h>#include <stdlib.h>#include <string.h&
Time of Update: 2014-09-19
HDU 1072 Nightmare,hdu1072nightmarebfs問題。走迷宮,有炸彈時限,有重設炸彈時間的機器。注意有些位置走過之後,按了重設器後依然可以入隊。所以檢查變成 vis[][][]三維的。當然同一個重設器反覆去走也沒有意義,所以重設器檢查
Time of Update: 2014-09-19
Win7安裝VC6的關鍵操作,win7vc6關鍵 下載連結: VC6 ,關鍵操作如下:1、彈出如下對話方塊時,勾選"不再顯示此訊息",點“運行程式”2、若有360阻止,勾選"不再提醒",“更多”中選擇全部允許3、選擇典型安裝(Typical)其他一般都按預設下一步安裝;其中,Register environment
Time of Update: 2014-09-19
ZOJ 1542 POJ 1861 Network 網路 最小產生樹,求最長邊,Kruskal演算法,zojkruskal題目串連:ZOJ 1542 POJ 1861 Network 網路NetworkTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeAndrew is working as
Time of Update: 2014-09-19
nyoj 取石子(三)(尼姆博弈的定理運用),nyoj尼姆取石子(三)時間限制:1000 ms | 記憶體限制:1000 KB難度:6描述小王喜歡與同事玩一些小遊戲,今天他們選擇了玩取石子。遊戲規則如下:共有N堆石子,已知每堆中石子的數量,兩個人輪流取子,每次只能選擇N堆石子中的一堆,取一定數量的石子(最少取一個),取過子之後,還可以將該堆石子中剩下的任意多個石子中隨意選取幾個放到其它的任意一堆或幾堆上。等哪個人無法取子時就表示此人輸掉了遊戲。注意,一堆石
Time of Update: 2014-09-19
UVALive-6656-Watching the Kangaroo(二分),uvaliveDay by day number of Kangaroos is decreasing justlike tiger, whale or lions. So I decided to make them a sanctuary where theywill live peacefully. I do not let visitors go near them. So I planted
Time of Update: 2014-09-19
ZOJ 1203 Swordfish 劍魚行動 最小產生樹,Kruskal演算法,zojkruskal題目連結:ZOJ 1203 Swordfish 劍魚行動SwordfishTime Limit: 2 Seconds Memory Limit: 65536 KBThere exists a world within our worldA world beneath what we call
Time of Update: 2014-09-19
ZOJ 1406 POJ 1251 Jungle Roads 叢林中的道路,最小產生樹,Kruskal演算法,zojkruskal題目連結:ZOJ 1406 POJ 1251 Jungle Roads 叢林中的道路Jungle RoadsTime Limit: 2 Seconds Memory Limit: 65536 KBThe Head Elder of the tropical island of
Time of Update: 2014-09-19
linux/unix核心設計思想,linuxunix核心思想 1) 程式應該小而專一,程式應該盡量的小,且只專註於一件事上,不要開發那些看起來有用但是90%的情況都用不到的特性; 2) 程式不只要考慮效能,
Time of Update: 2014-09-19
STL algorithm演算法max,max_elements(33),stlalgorithmmax原型:std::maxC++98C++11C++14default (1)template <class T> const T& max (const T& a, const T& b);custom (2)template <class T, class Compare> const
Time of Update: 2014-09-19
Java Tread多線程(3)死結,tread多線程作者 : 卿篤軍原文地址:http://blog.csdn.net/qingdujun/article/details/39367655本文示範,Tread多線程死結,簡單的分析一下死結產生的原因,並展示一個死結的小Demo。1)死結產生原因2)小Demo一、死結產生的原因:同步中嵌套同步。二、一個死結小Demo:(鎖loacka中需要鎖lockb,鎖lockb中又需要鎖locka,然後加上while(true)在裡面一頓狂轉,直接鎖住了。)
Time of Update: 2014-09-19
多線程002,多線程 java.util.concurrent.CountDownLatch是JDK
Time of Update: 2014-09-19
Spring_AOP_Annotation使用Aspect實現動態代理,springaopaspectspring_aop_annotation 的實現:1.1在beans.xml中加入aop的schema1.2在xml中開啟aop的自動檢索<aop:aspectj-autoproxy/>1.3建立一個需要實現動態代理的類1.4匯入aspectj包,Spring使用的是aspect這個包來實現AOP,所以需要匯入這個包。Maven之pom.xml
Time of Update: 2014-09-19
STL algorithm演算法merge(34),algorithmmergemerge原型:std::mergedefault (1)template <class InputIterator1, class InputIterator2, class OutputIterator> OutputIterator merge (InputIterator1 first1, InputIterator1 last1,
Time of Update: 2014-09-19
STL algorithm演算法is_sorted和is_sorted_until(28),stlalgorithmis_sort的原型:::is_sorteddefault (1)template <class ForwardIterator> bool is_sorted (ForwardIterator first, ForwardIterator last);custom (2)template <class ForwardIterator, class
Time of Update: 2014-09-19
STL algorithm演算法min,min_element(35),stlalgorithmmin原型:std::minC++98C++11C++14default (1)template <class T> const T& min (const T& a, const T& b);custom (2)template <class T, class Compare> const T&
Time of Update: 2014-09-19
STL algorithm演算法is_permutation(27),stlalgorithmis_permutation原型:std::is_permutationequality (1)template <class ForwardIterator1, class ForwardIterator2> bool is_permutation (ForwardIterator1 first1, ForwardIterator1 last1,