This file contains 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
<style> | |
#mytable{ | |
border-bottom:1px solid #000; | |
border-right:1px solid #000; | |
} | |
#mytable td{ | |
border-top:1px solid #000; | |
border-left:1px solid #000; | |
padding:15px; |
This file contains 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 type="text/javascript" src="js/jquery-1.7.1.min.js"></script> | |
<style> | |
table{ | |
width:500px; | |
height:500px; | |
} | |
table td{ | |
padding:10px; | |
margin:10px; | |
border:1px solid #ccc; |
This file contains 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 foo(str){ | |
var len = str.length, i = 0,j = len, arr = []; | |
var i = 0,j = len-1,half = Math.floor( len/2 ); | |
while( i<half ){ | |
arr.push(str[i]+str[j]); | |
i++; | |
j--; | |
} | |
if( len%2 == 1) |
This file contains 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
<style> | |
div.white{ background-color:white;} | |
div.yellow{ background-color:yellow;} | |
div.red{ background-color:red;} | |
div.fuscia{ background-color:#f0f;} | |
div.silver{ background-color:silver;} | |
div.gray{ background-color:gray;} | |
div.olive{ background-color:olive;} | |
div.purple{ background-color:purple;} | |
div.maroon{ background-color:maroon;} |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Sample Document</title> | |
<script></script> | |
</head> | |
<body> | |
... |
This file contains 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
var Y = (function(){ | |
return { | |
Car:function(model){ | |
this.model = model; | |
this.applyBreak = function(){ | |
alert("done break!!"); | |
} | |
} | |
} |
This file contains 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
<Connector port="8080" protocol="HTTP/1.1" | |
connectionTimeout="20000" | |
redirectPort="8443" | |
compression="on" | |
compressionMinSize="2048" | |
noCompressionUserAgents="gozilla, traviata" | |
compressableMimeType="text/html,text/xml,text/css,text/javascript,application/javascript,application/x-javascript" | |
/> |
This file contains 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
/** | |
1) doing things in sequence | |
$(btn).click(function(){ | |
getTwitterHandle(function(){ | |
getTweets(function(){ | |
}); | |
}); |
This file contains 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.prototype.defer = function(t,args){ | |
var __method = this; | |
var timeout = t*1000; | |
window.setTimeout(function() { | |
return __method.call(__method, args); | |
}, timeout); | |
}; | |
function foo(args){ | |
console.log("ss:" , args.a); |
This file contains 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
<project default="theMerger" basedir="."> | |
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/> | |
<target name="theloop"> | |
<foreach target="theSeparator" param="theFile"> | |
<path id="someId"> | |
<fileset dir="${basedir}/dd" includes="**/*.js"/> | |
</path> | |
</foreach> | |
</target> |
OlderNewer