Skip to content

Instantly share code, notes, and snippets.

View mertkahyaoglu's full-sized avatar
👾

Mert Kahyaoğlu mertkahyaoglu

👾
View GitHub Profile
<span class="timeout">2:00</span>
<button id="startTimer">Start</button>
<script>
var interval;
function countdown() {
clearInterval(interval);
interval = setInterval( function() {
var i = 1
setInterval(function() {
var text = '?'.repeat(i++);
window.InputEvent = window.Event || window.InputEvent;
var d = new Date();
var event = new InputEvent('input', { bubbles: true });
var textbox = document.querySelector(
'#main > footer > div._3pkkz.copyable-area > div._1Plpp > div > div._2S1VP.copyable-text.selectable-text'
);
textbox.textContent = text;
#!/usr/bin/env python
import json
import numpy as np
import unittest
# constants
FILENAME = 'customers.json'
INTERCOM_COORDS = [53.339428,-6.257664]
WITHIN_DISTANCE = 100
EARTH_RADIUS = 6367
type Request interface {
toPkiString() string
}
func prepareResponse(request Request, methodType string, endpoint string, options Options) string {
pkiString := request.toPkiString()
requestJson, _ := json.Marshal(request)
requestJson = string(requestJson)
response := connect(methodType, endpoint, options, requestJson, pkiString)
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.
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: {
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);
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)
{
"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",
#!/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