-
apt-get update
-
apt-get install git
-
apt-get install lamp-server^
-
service --status-all
-
Unity 6.8.0
-
20 Things I did After Installing Ubuntu 12.10 Quantal Quetzal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function microtime_float() | |
{ | |
list($usec, $sec) = explode(" ", microtime()); | |
return (str_pad((float)$usec *1000000 /*+ (float)$sec*/,6,'0',STR_PAD_LEFT)); | |
// str_pad($value,3,'0',STR_PAD_LEFT); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/lib/jquery-1.4.2.min.js"%3E%3C/script%3E'))</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
锁住这个textarea,如何锁住哪? | |
很简单,只需要一个css属性:resize:none; | |
——————– | |
查了一下文档,resize可以设置如下的属性: | |
none:UserAgent没提供尺寸调整机制,用户不能操纵机制调节元素的尺寸。 | |
both:UserAgent提供双向尺寸调整机制,让用户可以调节元素的宽度和高度。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li class="a"></li> | |
<li class="b"></li> | |
<li class="c"></li> | |
<li class="d"></li> | |
<li class="e"></li> | |
<li class="f"></li> | |
<li class="g"></li> | |
<li class="h"></li> | |
<li class="i"></li> | |
<li class="j"></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
access child: | |
var $f = $("iframe"); | |
$f[0].contentWindow.functionName(); | |
access parent: | |
parent.functionName(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Foward and Back Buttons | |
How to make JavaScript history buttons | |
Well, you want to make a back button- but you want the button to take the viewer back to the page they just came from, which may not have been one of your pages. This kind of back button would act like the back button on a web browser. Well, if you really want to have one, you can do it with a nifty little javascript. Here it is: | |
<FORM> | |
<INPUT type="button" value="Click here to go back" onClick="history.back()"> | |
</FORM> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.frames['FRAME_ID'].history.go(-1); | |
// 往前一頁面 | |
window.frames['FRAME_ID'].history.go(1); | |
// 往下一頁面 |
- Cool Kitten – A responsive parallax scrolling framework
- Parallax Tools and Techniques
- Icenium™ is an Integrated Cloud Environment (ICE)
- jQuery Quick API Reference - jQuery
- jQuery 1.8 API Cheat Sheet
- Gestures + Reveal.JS
- FB.Event.subscribe
- Create Your Site's Facebook Like button
- Facebook Auto (One-Click) Mass Like All in One By Cyserrex
- CSS設定文字選取時的顏色