Skip to content

Instantly share code, notes, and snippets.

View emseidov's full-sized avatar

Emrah Seidov emseidov

View GitHub Profile
@emseidov
emseidov / gh-notifs-cleanup.sh
Last active October 3, 2025 05:55
Remove invisible unread Github notifications
# You can get the token from: https://github.com/settings/tokens
curl -X PUT \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token $TOKEN_GOES_HERE" \
https://api.github.com/notifications -d '{"last_read_at": "'$(date '+%Y-%m-%dT%H:%M:%SZ')'"}'
@emseidov
emseidov / math-quiz.clj
Last active March 15, 2025 22:20
Twitter Math Quiz 😁
(defn cube [n]
(* n n n))
(defn sol-1 [n]
(let [r (+ (cube n) n)]
(if (pos? r)
(println r)
(recur (inc r)))))
(defn sol-2
@emseidov
emseidov / coding-styles.js
Last active October 27, 2022 00:20
Three different styles of coding: functional, mixed, and imperative.
import {
camelCase,
flow,
map,
mapKeys,
matchesProperty,
pick,
reject
} from "lodash/fp";
@emseidov
emseidov / How to Install JDK MacOS Homebrew.md
Created September 27, 2022 21:36 — forked from gwpantazes/How to Install JDK MacOS Homebrew.md
How to install different JDK versions on MacOS with Homebrew

How To Install Different JDK Versions on MacOS with Homebrew

Keywords: Java, JDK (Java Development Kit), MacOS, Homebrew, Specific Version

This how-to guide covers how to install different versions of the JDK on MacOS with Homebrew.

Table of Contents

<div><span>
<style>
body {
align-items: center;
background: #E38F66;
display: flex;
justify-content: center
}
div {
@emseidov
emseidov / coursework-2.cpp
Last active January 29, 2022 04:09
Juneyt coursework-2
/**
* За група студенти са зададени име, ЕГН, фак. №, оценките
* по 10 дисциплини и среден успех.
* Да се създаде програма, която избира от меню и използва функций за:
*
* 1. Създаване на файл с информация за група студенти, без да се въвежда
средният успех.
* 2. Изчисляване на средния успех на всеки един от студентите.
* 3. Определяне броя на студентите с по три двойки.
*/
@emseidov
emseidov / main.cpp
Last active December 2, 2021 17:38
Dzhuneyt course assignment
/**
* Даден е двумерен масив A с m реда n стълба. Да се се състави
* блоксхема на алгоритъм, чрез който се създава нов масив b1, b2, ..., bm
* като стойността на bi е равна на средното аритметично на ненулевите
* елементи в i-ия ред. Да се състави програма по този алгоритъм.
*/
#include<iostream>
#include<stdlib.h>
using namespace std;
(() => {
// Constants
const MUTATION_TYPE = {
attributes: 'attributes'
};
const OBSERVER_CONFIG = {
attributes: true
};
const MOUSE_EVENT_CONFIG = {
view: window,
import React from 'react';
export default class Counter extends React.Component {
constructor() {
this.state = {
count: 0
}
this.increment = this.increment.bind(this);
this.decrement = this.decrement.bind(this);
import { withCounter } from '../hoc';
function ComponentNeeedingCounterFunctionality({ count, increment, decrement }) {
return (
<>
<p>Count: {count}</p>
<button type="button" onClick={increment}>Increment</button>
<button type="button" onClick={decrement}>Decrement</button>
</>
);