Skip to content

Instantly share code, notes, and snippets.

Barlas Apaydin barlas

Block or report user

Report or block barlas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Git Cheat Sheet
- Create a repository
git init <repo-name>
git clone <url> <directory-name>
git clone -o <remote-name> <url>
- Commiting
git add <filename>
git commit -m "Commit Message"
git commit -am "Commit Message"
git commit --amend --date="now"
@offsky
offsky / NewMacConfig.md
Last active Jul 3, 2017
Setup new mac for web development (Updated for Yosemite)
View NewMacConfig.md
@sstephenson
sstephenson / back_forward.js
Created Dec 13, 2010
How to detect whether a hash change came from the Back or Forward button
View back_forward.js
var detectBackOrForward = function(onBack, onForward) {
hashHistory = [window.location.hash];
historyLength = window.history.length;
return function() {
var hash = window.location.hash, length = window.history.length;
if (hashHistory.length && historyLength == length) {
if (hashHistory[hashHistory.length - 2] == hash) {
hashHistory = hashHistory.slice(0, -1);
onBack();
You can’t perform that action at this time.