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
<?php | |
function example() | |
{ | |
$a = $b = 0; | |
} | |
?> |
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
<div id="container"> | |
<b class="rtop"> | |
<b class="r1"></b> <b class="r2"></b> | |
<b class="r3"></b> <b class="r4"></b> | |
</b> | |
<!--content goes here --> | |
<b class="rbottom"> | |
<b class="r4"></b> <b class="r3"></b> | |
<b class="r2"></b> <b class="r1"></b> | |
</b> |
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
<<input name="company" /> id="company" maxlength="255" /> |
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 createElementWithName( type, name ){ | |
var element; | |
// First try the IE way; if this fails then use the standard way | |
if( document.all ){ | |
element = | |
document.createElement( '< '+type+' name="'+name+'" />' ); | |
}else{ | |
element = document.createElement( type ); | |
element.setAttribute( 'name', name ); | |
} |
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
<!ENTITY % Boolean | |
"(true | false)" | |
> | |
... | |
<!-- attributes for Dojo Toolkit | |
showButtons display buttons (boolean) | |
intermediateChanges display intermediate steps (boolean) | |
--> | |
<!ENTITY % dojo-attrs | |
"showButtons %Boolean #IMPLIED |
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
// create a Squirrel instance | |
var $S = new Squirrel( 'scale-song' ); | |
// write a value to the cache | |
$S.write( 'doe', 'ray' ); | |
// read it back | |
$S.read( 'doe' ); // 'ray' | |
// write a value to a sub-cache | |
$S.write( 'song', 'doe', 'a dear, a female dear' ); |
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
// General | |
button_tile_map : true, | |
editor_selector : 'lg_mceEditor', | |
mode:'textareas', | |
theme : 'advanced', | |
// Cleanup/Output | |
apply_source_formatting : true, | |
convert_fonts_to_spans : true, | |
convert_newlines_to_brs : false, |
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
// make sure a user hitting the back button doesn't kill the layout | |
if ( window.addEventListener ) | |
{ | |
window.addEventListener('pageshow',function(e){ | |
if (e.persisted) | |
{ | |
setTimeout(function(){ | |
window.scrollTo(window.scrollX,window.scrollY+1); | |
},10); | |
} |
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 adjustViewport( property, value ) | |
{ | |
var | |
$viewport = $('meta[name=viewport]'), | |
currently = $viewport.attr('content'), | |
o_props = currently.split(/\s,\s?/), | |
n_props = [], | |
i = o_props.length, | |
set = false; | |
while ( i-- ) |
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 getIERotationMatrix( degrees ) | |
{ | |
var radians = degrees * ( Math.PI * 2 / 360 ); | |
console.log( 'progid:DXImageTransform.Microsoft.Matrix( M11=' + | |
Math.cos( radians ) + ', M12=' + (0-Math.sin( radians )) + | |
', M21=' + Math.sin( radians ) + ', M22=' + Math.cos( radians ) + | |
', SizingMethod="auto expand" )' ); | |
} |