Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Bilal Ucar bilalucar

💭
I may be slow to respond.
View GitHub Profile
View gist:48dc0b0718ebb5fc06caf804f67a1664
function main(){
console.log('A');
setTimeout(
function exec(){ console.log('B'); }
, 0);
runWhileLoopForNSeconds(3);
console.log('C');
}
main();
function runWhileLoopForNSeconds(sec){
View gist:4403af63f75daf901ef63eb6e5709ef4
function main(){
console.log('A');
setTimeout(
function display(){ console.log('B'); }
,0);
console.log('C');
}
main();
// Output
// A
View JS - JSX Farkı
JSX:
<div className="div-class">Hello World!</div>
View JS - JSX Farkı
JS :
React.createElement("div", {className: "div-class"}, "Hello World!");
View Gridder
<!-- 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>
View PHPbot
<?php
$fruits = array("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple");
ksort($fruits);
foreach ($fruits as $key => $val) {
echo "$key = $val\n";
}
?>
View InlineTweet.js
<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>
@bilalucar
bilalucar / CSS Scroll Snap Points 'e Giriş
Created Sep 25, 2017
CSS Scroll Snap Points 'e Giriş
View CSS Scroll Snap Points 'e Giriş
div {
width: 300px;
overflow: auto;
scroll-snap-points-y: repeat(150px);
scroll-snap-type: mandatory;
}
Below
@bilalucar
bilalucar / CSS Scroll Snap Points 'e Giriş
Created Sep 25, 2017
CSS Scroll Snap Points 'e Giriş
View CSS Scroll Snap Points 'e Giriş
div {
width: 300px;
height: 300px;
overflow: auto;
...
}
div > img {
width: 250px;
height: 150px;
...
@bilalucar
bilalucar / CSS Scroll Snap Points 'e Giriş
Created Sep 25, 2017
CSS Scroll Snap Points 'e Giriş
View CSS Scroll Snap Points 'e Giriş
<div>
<img src='Pizza.png' alt='pizza'>
<img src='Noodle.png' alt='noodle'>
<img src='Burger.png' alt='burger'>
<img src='Juice.png' alt='juice'>
</div>
You can’t perform that action at this time.