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
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */ | |
/** | |
* 1. Change the default font family in all browsers (opinionated). | |
* 2. Correct the line height in all browsers. | |
* 3. Prevent adjustments of font size after orientation changes in | |
* IE on Windows Phone and in iOS. | |
*/ | |
/* Document |
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 main(){ | |
console.log('A'); | |
setTimeout( | |
function exec(){ console.log('B'); } | |
, 0); | |
runWhileLoopForNSeconds(3); | |
console.log('C'); | |
} | |
main(); | |
function runWhileLoopForNSeconds(sec){ |
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 main(){ | |
console.log('A'); | |
setTimeout( | |
function display(){ console.log('B'); } | |
,0); | |
console.log('C'); | |
} | |
main(); | |
// Output | |
// 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
JSX: | |
<div className="div-class">Hello World!</div> |
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
JS : | |
React.createElement("div", {className: "div-class"}, "Hello World!"); |
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
<!-- Gridder navigation --> | |
<ul class="gridder"> | |
<li class="gridder-list" data-griddercontent="#content1"> | |
<img src="http://placehold.it/600x400" /> | |
</li> | |
<!-- You can also load html/ajax pages by replacing the #ID with a URL --> | |
<li class="gridder-list" data-griddercontent="/content.html"> | |
<img src="http://placehold.it/600x400" /> | |
</li> |
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 | |
$fruits = array("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple"); | |
ksort($fruits); | |
foreach ($fruits as $key => $val) { | |
echo "$key = $val\n"; | |
} | |
?> |
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
<span data-inline-tweet | |
data-inline-tweet-via="ireaderinokun" | |
data-inline-tweet-tags="webdesign,webdev,js,yolo" | |
data-inline-tweet-url="bitsofco.de"> | |
Lorem Khaled Ipsum is a major key to success | |
</span> |
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 { | |
width: 300px; | |
overflow: auto; | |
scroll-snap-points-y: repeat(150px); | |
scroll-snap-type: mandatory; | |
} | |
Below |
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 { | |
width: 300px; | |
height: 300px; | |
overflow: auto; | |
... | |
} | |
div > img { | |
width: 250px; | |
height: 150px; | |
... |
NewerOlder