Skip to content

Instantly share code, notes, and snippets.

View omermindivanli's full-sized avatar
😀
Life-Long Learner

Ömer Mindivanli MSc. omermindivanli

😀
Life-Long Learner
View GitHub Profile
@omermindivanli
omermindivanli / gist:f903d4a67736916d135f47dc2541e262
Last active September 10, 2018 14:11
Reverse a string and then see the output...
function reverser(word){
return word
.split("") // split an string into arr
.reverse() // reverse and arr completely
.join("") // turn and arr of elements to the string
}
// Call Function
const output = reverser("mindivanli");
## .gitignore file Citation following Github accounts
## omermindivanli, octocat, facebook and
###################
## JavaScript Stuffs
node_modules
dist
build
/.eslintcache
coverage
@omermindivanli
omermindivanli / gist:b4deb59d001d5155e2221a943a0ef8d1
Created March 13, 2018 04:31
In Client-Side Rendering React, When you click to Bootstrap Navbar, it does not collapse. Here is the solutiıon
<script>
//In Client-Side Redering React, Bootstrap
//Navbar not collapsing problem
$(function () {
var navMain = $('.navbar-collapse');
navMain.on('click', 'a', null, function () {
navMain.collapse('hide');
$("html, body").scrollTop({ scrollTop: 0 }, "slow");
});
});
@omermindivanli
omermindivanli / gist:c03611f9574ad148c164cedc59d7369d
Created March 13, 2018 04:16
That is a solution of a common Bootstrap Carousel Auto-Start Problem on Client-Side Rendering ReactJS
<script>
//Carousel Client Side Auto-Start-Script
setInterval(function () {
$('.carousel').carousel('next');
}, 2000);
</script>
@omermindivanli
omermindivanli / gist:b717cb635e1bd5925729dd1eb1882cee
Created September 2, 2017 18:07
You can connect Amazon Web Services's RDS Database via this code. You do not need to code extra than this gist.
<?php
$connection = mysqli_connect('xyz.cwc5z6ca6odo.us-east-1.rds.amazonaws.com', 'username', 'password','databaseName');
?>