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
#!/bin/bash -e | |
#### | |
# Helper script to update the Last modified timestamp of files in a Git SCM | |
# Projects working Copy | |
# | |
# When you clone a Git repository, it sets the timestamp of all the files to the | |
# time when you cloned the repository. | |
# | |
# This becomes a problem when you want the cloned repository, which is part of a | |
# Web application have a proper cacheing mechanism so that it can re-cache files |
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
Date.now = Date.now || function () { | |
return +new Date(); | |
}; | |
W.addEventListener = W.addEventListener || function (nom, fn) { | |
W.attachEvent('on' + nom, fn); | |
}; |
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
@media all { | |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
body { | |
background-color: #eee; | |
color: #333 ; | |
font-size: 9pt ; | |
} | |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
} |
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>JS Bin</title> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<style> | |
article, aside, figure, footer, header, hgroup, |
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
document.createElement('header'); | |
document.createElement('nav'); | |
document.createElement('section'); | |
document.createElement('article'); | |
document.createElement('aside'); | |
document.createElement('footer'); | |
/*** OR ***/ | |
//<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<txtsrc> | |
<item author="Dune"> | |
<title>Litany Against Fear</title> | |
<lines> | |
<line>I must not fear.</line> | |
<line>Fear is the mind-killer.</line> | |
<line>Fear is the little-death that brings total obliteration.</line> | |
<line>I will face my fear.</line> | |
<line>I will permit it to pass over me and through me.</line> |
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
if (document.getElementById('hello')) { | |
document.getElementById('hello').innerHTML = 'Hello World - this was inserted using JavaScript'; | |
} | |
var original_array = [], | |
dup_array; | |
for (var j = 0; j < 1500000; j++) { | |
original_array[j] = 9; | |
} |
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 lineate(obj){ | |
var arr = [], i; | |
for (i in obj) arr.push([i,obj[i]].join(':')); | |
console.log(arr); | |
} | |
var obj = { a:1, b:2, c:3, "123":'xyz' }; | |
/* log1 */ lineate(obj); | |
obj.a = 4; | |
/* log2 */ lineate(obj); | |
delete obj.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
location.parse = function () { //_qp_// | |
var i, e, arr, str = location.search, | |
out = new(function Queries() {}); | |
if (!str || str.charAt(0) !== '?') { | |
return {}; | |
} | |
arr = decodeURI(str.substr(1)).split('&'); // no '?' | |
for (i = 0; i < arr.length; i++) { | |
e = arr[i].split('='); |
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
<!--[if IE]> | |
<style type="text/css"> | |
/* place css fixes for all versions of IE in this conditional comment */ | |
.thrColHybHdr #sidebar1, .thrColHybHdr #sidebar2 { padding-top: 30px; } | |
.thrColHybHdr #mainContent { zoom: 1; padding-top: 15px; } | |
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */ | |
</style> | |
<![endif]--> | |
------------------------------------------------------------------------ |
OlderNewer