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 class="tab-panel"> | |
<nav class="tabs"> | |
<ul> | |
<li href="#sect-1">tab 1</li> | |
<li href="#sect-2">tab 2</li> | |
<li href="#sect-3">tab 3</li> | |
</ul> | |
</nav> | |
<section id="sect-1"></section> | |
<section id="sect-2"></section> |
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 siblngs(element) { | |
if (!element) return []; | |
element = element.parentNode.firstChild, elements = []; | |
while (element) { | |
if (element.nodeType == 1 && element != arguments[0]) elements.push(element); | |
element = element.nextSibling; | |
} | |
return elements; | |
} |
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() { | |
// Who said browser sniffing is bad? | |
if (! /MSIE (5\.5|6\.)/.test(navigator.userAgent) ) | |
return; | |
function applyFilter(element, src) { | |
element.currentStyle.display == "block" | |
? null | |
: element.style.display = "inline-block"; |
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
<!-- customer view template --> | |
<div class="item-customer"> | |
<span class="thumb"> | |
{{customer_logo}} | |
</span> | |
<h2> | |
{{customer_name}} | |
</h2> | |
<div> | |
{{customer_short_desc}} |
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
details, summary {display: block;} | |
details:not([open]) > :not(summary) {display: none;} |
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
q { | |
quotes: "“" "”" "‘" "’"; | |
} |
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
# apache/conf/extra/httpd-php.conf | |
# PHP | |
LoadFile "/usr/bin/php/php5ts.dll" | |
LoadModule php5_module modules/php5apache2_2.dll | |
<IfModule php5_module> | |
<FilesMatch "\.php$"> | |
SetHandler application/x-httpd-php |
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
%WindowsDir%\Microsoft.NET\Framework\vx.y.zzzz\ | |
aspnet_regiis.exe -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
var flag = !!document.something.testFeature | |
// e.g. | |
var canvasIsSupported = !!document.createElement("canvas").getContext | |
// if short hand | |
canvasIsSuppoted && doSomething() | |
// means | |
if (canvasIsSupported) | |
doSomething |
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
diskpart | |
list disk | |
select DISK_NAME | |
clean | |
create partition primary | |
active | |
format fs=ntfs | |
assign | |
exit |
OlderNewer