Time of Update: 2015-03-15
jQuery和CSS3炫酷GOOGLE樣式的使用者登入介面,jquerycss3這是一款使用jQuery和CSS3打造的GOOGLE樣式的使用者登入介面特效。該登入介面特效中,右上方的小問號和錯誤提示小表徵圖使用SVG來製作,使用者名稱和密碼輸入框採用浮動標籤特效,可點擊的按鈕上使用了很酷的點擊傳輸速率效。 整個登入介面簡潔大方,互動性很強。線上示範:http://www.htmleaf.com/Demo/201503131515.html:http://www.htmleaf.com
Time of Update: 2015-03-15
【JavaScript】出現即使設定了ID也擷取不到的可能原因與window.onload,javascriptonload有時候,在JavaScript中,即使設定了ID也有可能出現document.getElementById()擷取不到的情況,然後你就開始想document是否寫錯之類的,其實根本就不是你的代碼的大小寫出現了問題,主要是你還沒有搞清楚直接寫在<script></script>之間東西與寫在window.onload=function(){}裡面的東西
Time of Update: 2015-03-16
Java 強引用、 軟引用、 弱引用、虛引用,java引用1.對象的強、軟、弱和虛引用在JDK 1.2以前的版本中,若一個對象不被任何變數引用,那麼程式就無法再使用這個對象。也就是說,只有對象處於可觸及(reachable)狀態,程式才能使用它。從JDK
Time of Update: 2015-03-16
快速乘法,手指速算今天做了BC第三十三場,http://bestcoder.hdu.edu.cn/contests/contest_show.php?cid=571 B題是一道快速冪的題目 比賽時沒有細想 直接上了 結果被hack了,才發現取摸的數是小於10^18,中間的結果可能會爆long long,於是學習了新姿勢 —— 快速乘法。其實這東西和快速冪簡直一樣 好處就是中間過程可以取摸了。a*b相當於有b個a想加&
Time of Update: 2015-03-16
C#網路編程系列文章(三)之TcpListener實現非同步TCP伺服器,原創性聲明本文作者:小竹zz 本文地址http://blog.csdn.net/zhujunxxxxx/article/details/44258719 轉載請註明出處本文介紹TcpListener 類提供一些簡單方法,用於在阻止同步模式下偵聽和接受傳入串連請求。 可使用 TcpClient 或 Socket 來串連 TcpListener。 可使用 IPEndPoint、本地 IP 位址及連接埠號碼或者僅使用連接埠號碼,
Time of Update: 2015-03-16
#define XXX do{ XXX } while(0) 為什麼會有這種用法,#define XXX do{ XXX } while(0) 為什麼會有這種用法時常會遇到一個很"奇怪的宏定義", rt.(歐西巴...思考不夠深刻啊, 皮鞭, 啪啪啪)最近又遇到這傢伙了,Quora上面Love神回答了這個問題,
Time of Update: 2015-03-16
LeetCode 2 Add Two Numbers,leetcodenumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
Time of Update: 2015-03-16
JDK8的隨筆(05)_Method References的種類繼續囉嗦一下,jdk8_method Method References的種類我覺得國內的盜鏈以及隨意的盜文的確很嚴重。。。 有必要以後每次都寫一下文章來源:blog.csdn.net/forevervip這幾天本想把Method Reference趕緊收尾然後寫下一個Aggregate的說明,因為Aggregate是Lambda和Method
Time of Update: 2015-03-16
HDU 5187 zhx's contest(防爆__int64 ),hdu__int64Problem DescriptionAs one of the most powerful brushes, zhx is required to give his juniorsn problems.zhx thinks the ith problem's difficulty is i. He wants to arrange these problems in a beautiful
Time of Update: 2015-03-16
C++中public、protected及private用法(From MSDN),protectedmsdnpublic(C# 參考): https://msdn.microsoft.com/zh-cn/library/yzh058ae.aspxprotected(C# 參考):https://msdn.microsoft.com/zh-cn/library/bcd5672a.aspxprivate(C#
Time of Update: 2015-03-16
Python爬蟲(一):基本概念,python爬蟲基本概念網路爬蟲的定義 網路爬蟲(Web Spider,又被稱為網頁蜘蛛,網路機器人,又稱為網頁追逐者),是一種按照一定的規則,自動的抓取全球資訊網資訊的程式或者指令碼。另外一些不常使用的名字還有螞蟻,自動索引,類比程式或者蠕蟲。如果把互連網比喻成一個蜘蛛網,那麼Spider就是在網上爬來爬去的蜘蛛。
Time of Update: 2015-03-16
Golang基礎學習總結,golang基礎總結1、不支援繼承 重載 ,比如C++Java的介面,介面的修改會影響整個實現改介面的類行為的修改,Go 設計者認為這一特點或許根本沒用.2、必任何函數定義必須花括弧跟在函式宣告後面而不能換行 如 func funca(a int){},在Go語言中 函數也是一種類型 可以被推導 使用支援匿名函數 和閉包。 函數的返回值支援多重返回類似Python , 如果不賦值
Time of Update: 2015-03-16
C++的class的例子,class例子私人就是只能夠通過內部調用,在類外面是不可以使用私人成員的簡單的寫一個 Class A{ public: //你可以通過公有的函數去訪問私人成員 Demo() //可以在這使用私人成員 { m_buff = 0; } private: //私人成員 int m_buff;}void
Time of Update: 2015-03-16
HDU,hdukmpzhx's contestTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 448 Accepted Submission(s): 147Problem DescriptionAs one of the most powerful
Time of Update: 2015-03-16
什麼是類的執行個體,執行個體定義的類的對象比如你定義了類如下:class A{public://成員函數private://成員變數};而 A a; //就表示你定義了一個類A的執行個體,其實,和定義普通類型變數相似,只不過這裡的類型換成了類A,而不是像整型等基本類型,可以如同:int i; 一樣去理解,i 就相當於int類型的執行個體。這時和struct一樣struct Student(){Char name;int number;} int mian (){
Time of Update: 2015-03-16
LeetCode,leetcodeoj題目連結:Merge IntervalsGiven a collection of intervals, merge all overlapping intervals.For example,Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18].
Time of Update: 2015-03-16
C++類和對象的一個簡單的執行個體,對象執行個體#include<iostream> usingnamespace std; classArray_max{ private://聲明在類的外部不可訪問的隱私成員 intarray[10];
Time of Update: 2015-03-16
python程式的執行過程,python程式執行1. Python是一門解釋型語言?我初學Python時,聽到的關於Python的第一句話就是,Python是一門解釋性語言,我就這樣一直相信下去,直到發現了*.pyc檔案的存在。如果是解釋型語言,那麼產生的*.pyc檔案是什麼呢?c應該是compiled的縮寫才對啊!為了防止其他學習Python的人也被這句話誤解,那麼我們就在文中來澄清下這個問題,並且把一些基礎概念給理清。2.
Time of Update: 2015-03-15
hdu 1286 找新朋友,hdu1286題意:求一個數約數為1的個數。思路:裸裸的歐拉函數。#include<cstdio>#include<cstring>#include<algorithm>using namespace std;int eular(int n){ int ans=n; for(int i=2;i*i<=n;i++) { if(n%i==0) {
Time of Update: 2015-03-15
Linux&&Mac