Skip to content

Instantly share code, notes, and snippets.

View eser's full-sized avatar
🎙️
Streaming on YouTube - https://eser.live

Eser Ozvataf eser

🎙️
Streaming on YouTube - https://eser.live
View GitHub Profile
@eser
eser / bubble-sort.js
Last active October 22, 2021 13:50
buble-sort
function bubbleSort(list) {
const arr = [...list];
let swapped = false;
for (let i = 0, l = arr.length; i < l - 1; i++) {
for (let j = i + 1; j < l; j++) {
if (arr[i] > arr[j]) {
const temp = arr[j];
arr[j] = arr[i];
arr[i] = temp;
@eser
eser / doubly-linked-list.js
Created October 22, 2021 13:46
doubly linked list
class LinkedList {
constructor() {
this.head = undefined;
this.tail = undefined;
this.itemcount = 0;
}
push(item) {
const node = { value: item, prev: this.tail, next: undefined };
// load data
const logJson = '{"2021-01-15T00:09:34+00:00":286857,"2021-01-15T00:41:42+00:00":286873,"2021-01-15T02:54:36+00:00":286907,"2021-01-15T03:58:31+00:00":286953,"2021-01-15T04:59:20+00:00":287430,"2021-01-15T05:58:02+00:00":314171,"2021-01-15T06:53:30+00:00":365962,"2021-01-15T07:40:23+00:00":402049,"2021-01-15T08:19:50+00:00":432174,"2021-01-15T09:18:23+00:00":459360,"2021-01-15T10:16:31+00:00":473808,"2021-01-15T11:15:59+00:00":510342,"2021-01-15T12:07:54+00:00":537519,"2021-01-15T13:10:21+00:00":567287,"2021-01-15T16:51:15+03:00":582216,"2021-01-15T14:09:35+00:00":586461,"2021-01-15T15:01:40+00:00":593778,"2021-01-15T15:46:22+00:00":598420,"2021-01-15T16:22:56+00:00":602423,"2021-01-15T17:55:10+00:00":611619,"2021-01-15T18:56:43+00:00":615613,"2021-01-15T19:58:07+00:00":618277,"2021-01-15T20:48:54+00:00":619495,"2021-01-15T21:18:21+00:00":619614,"2021-01-15T21:46:09+00:00":619668,"2021-01-15T21:58:42+00:00":619682,"2021-01-15T22:51:37+00:00":619739,"2021-01-15T23:27:32+00:00":619760,"2021-01-16T0
@eser
eser / settings.json
Created May 19, 2020 20:17
Windows Terminal Configuration
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{55555555-5555-5555-5555-555555555555}",
"tabWidthMode": "titleLength",
"profiles": {
"defaults": {
"useAcrylic": false,
"acrylicOpacity": 0.75,
<html>
<head>
<title>State Management Workshop - Setur</title>
</head>
<body>
<div>
<div>
<textarea id="log" cols="80" rows="20"></textarea>
</div>
@eser
eser / XamlUtils.cs
Created June 11, 2018 01:04
XAML injection in WPF
using Sys = System;
using SysIO = System.IO;
using SysWinMarkup = System.Windows.Markup;
using SysXml = System.Xml;
using SysXmlLinq = System.Xml.Linq;
public static class XamlUtils {
public static object GetXamlObject(string source) {
SysXml.XmlDocument _xmlDocument = new SysXml.XmlDocument();
_xmlDocument.LoadXml(source);
Koçsistem’de bizimle çalışacak, mid/sr frontend developer arıyoruz.
Beklentiler;
- Broad HTML, CSS, Bootstrap knowledge
- Broad JavaScript (ES6+) knowledge,
- CSS preprocessors (SASS, LESS etc.) knowledge is a plus
- Git and Git Workflows knowledge is a plus,
- Experience in Unit testing frameworks is a plus,
- TypeScript knowledge is a plus,
@eser
eser / .bash_profile
Last active November 19, 2018 20:41
.bash_profile
# colors
CHAR_ARROW="\xEE\x82\xB0" # ""
COLOR_RESET="\033[m"
COLOR_WHITE_ON_BLACK="\033[38;5;15m\033[48;5;0m"
COLOR_BLACK_ON_TRANSPARENT="\033[38;5;0m\033[49m"
COLOR_BLACK_ON_GRAY="\033[38;5;0m\033[48;5;237m"
COLOR_WHITE_ON_GRAY="\033[38;5;15m\033[48;5;237m"
COLOR_GRAY_ON_TRANSPARENT="\033[38;5;237m\033[49m"
@eser
eser / filterer.js
Last active September 22, 2017 09:45
Javascript data structure filter method
function filterer(structure, source) {
// a string
if (structure === String) {
if (source === undefined || source === null || source.constructor === String) {
return source;
}
return source.toString();
}
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- '80:80'
- '443:443'
volumes: