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
<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() { | |
// 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
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
%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 |
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
new line --> /// | |
tab --> /// 	 | |
combined --> /// 	 |
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
@import "common/__telerik.mixins.scss"; | |
.RadComboBox { | |
@include self-clearng; | |
} |
OlderNewer