Skip to content

Instantly share code, notes, and snippets.

View ekm507's full-sized avatar
🗡️
fighting

Erfan Kheyrollahi Qaroğlu ekm507

🗡️
fighting
View GitHub Profile
@ekm507
ekm507 / snowflake.py
Created November 5, 2022 21:56
kochs snowflake with linear mapping in python
import numpy as np
from matplotlib import pyplot as plt
# define the initial line. it has two points and its length should be 1 to normalize everything.
points = []
first_points = [np.array([0, 0]), np.array([1, 0])]
points += first_points
# number of iterations in making fractal. how deep do you want it to be?
# for Koch's snowflake, if level is set to 1, it should draw something like this: _/\_
@XVilka
XVilka / BiDiSupport.md
Last active June 29, 2024 20:18
BiDirectional Text

This gist will show the support of BiDirectional text in the terminal emulators and console programs. You can read more about the standardization efforts at the dedicated page of FreeDesktop Terminal BiDi working group.

How to test

Logical Order ◀ ◀ ◀ RTL LTR ▶ ▶ ▶
WHAT IS UNICODE؟ in arabic in arabic ؟EDOCINU SI TAHW ؟EDOCINU SI TAHW in arabic
ما هو الترميز الموحد يونيكود؟ in Arabic ما هو الترميز الموحد يونيكود؟ in Arabic
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 1, 2024 01:46
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname