Skip to content

Instantly share code, notes, and snippets.

View mertkahyaoglu's full-sized avatar
👾

Mert Kahyaoğlu mertkahyaoglu

👾
View GitHub Profile
@mertkahyaoglu
mertkahyaoglu / gh-pages.md
Created February 23, 2020 10:19 — forked from ramnathv/gh-pages.md
Creating a clean gh-pages branch

Creating a clean gh-pages branch

This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]

cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html

Privacy Policy

built the Booklines app as a Commercial app. This SERVICE is provided by and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Booklines unless otherwise defined in this Privacy Policy.

<iframe width="980" height="410" src="https://mars.nasa.gov/layout/embed/send-your-name/mars2020/certificate/?cn=645190970685" frameborder="0"></iframe>
@mertkahyaoglu
mertkahyaoglu / dapply
Created February 6, 2019 10:47 — forked from cam8001/dapply
Apply a patch directly from a URL without downloading it first.
#!/bin/bash
# Downloads and applies a patch from Drupal.org.
if [ -z "$1" ]
then
echo "You need to supply a URL to a patch file."
exit
fi
URL=$1;
#!/usr/bin/env bash
set -e
# allow being run from somewhere other than the git rootdir
gitroot=$(git rev-parse --show-cdup)
# default gitroot to . if we're already at the rootdir
gitroot=${gitroot:-.};
nm_bin=$gitroot/node_modules/.bin
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 15,
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnSave": true,
"editor.minimap.enabled": false,
"workbench.colorTheme": "Atom One Dark",
"prettier.singleQuote": true,
"prettier.trailingComma": "es5",
def flatten(S):
if S == []:
return S
if isinstance(S[0], list):
return flatten(S[0]) + flatten(S[1:])
return S[:1] + flatten(S[1:])
arr = [1, [2,[3],4,5], [6],7]
print flatten(arr)
const usernameClassname = 'zsYNt';
const modal = document.getElementsByClassName('j6cq2')[0]
const followingButton = document.getElementsByClassName('-nal3')[0]
let x = 0;
let followingOn = false;
setInterval(() => {
modal.scrollTo(0, modal.scrollHeight);
}, 2000);
var jwtTimeout = pm.environment.get("jwtTimeout") || 0;
if(new Date().getTime() > jwtTimeout) {
pm.sendRequest({
url: pm.environment.get("baseUrl") + '/api/v1/merchants/login',
method: 'POST',
header: {
'content-type': 'application/json',
},
body: {
My proudest achivement is that I graduated with the highest GPA (3.94) among 2016 graduates (~7000 students) at Mugla University in Turkey, awarded with the High Honor Student Certificate.
Another thing I'm really proud of is Jekyll Admin which is an open-source project that I started working on via Google Summer of Code programme
and still maintaining the project on Github and developing new features requested by the community.
Basically it is a Jekyll plugin that provides users with a traditional CMS-style graphical interface to author content and administer Jekyll sites.
The project is divided into two parts. A Ruby-based HTTP API that handles Jekyll and filesystem operations, and a JavaScript-based front end, built on that API.
Currently it has 1.5k stars on Github and it's been downloaded more than 52,000 times. I'm proud of it because it makes so many people's life a lot easier.
Non-tech users can use and enjoy this tool to author their content and administer their sites very easily.