Skip to content

Instantly share code, notes, and snippets.

View murmurlab's full-sized avatar
:octocat:
Hiçbir şey yokken hiçbir şey var, karanlıklardan doğar aydınlıklar.

murmurabilis murmurlab

:octocat:
Hiçbir şey yokken hiçbir şey var, karanlıklardan doğar aydınlıklar.
View GitHub Profile
@murmurlab
murmurlab / line_algo.c
Created August 7, 2023 23:15
drawing line algorithm in clang
#include "minilibx_macos/mlx.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
typedef struct g_game
{
void *mlx_p;
void *win_p;
@murmurlab
murmurlab / colemakmod.keylayout.xml
Last active September 28, 2024 05:05
tenfingers for vscode on macos
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--
Data generated Sun Oct 8 03:52:52 2023
Generated by kluchrtoxml_64 build 203
-->
<!--Last edited by Ukelele version 359 on 2023-10-08 at 04:45 (GMT+3)-->
@murmurlab
murmurlab / keybinding.json
Last active September 17, 2024 02:06
vscode pro shortcuts ;)
[
{
"key": "ctrl+o",
"command": "-lineBreakInsert",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+o",
"command": "cursorLineEnd",
"when": "textInputFocus"
@murmurlab
murmurlab / gist:9f7181b70fe21fa5b880d87d282a263c
Last active February 20, 2024 12:03
seeing netpractice
document.body.setAttribute("style", "background-image: unset; background: #424242")
@murmurlab
murmurlab / pipe_sequenced.c
Created May 6, 2024 08:33
an example piping but sequentially
#include <unistd.h>
#include <string.h>
#include <sys/wait.h>
#include <stdio.h>
typedef struct s_ms {
int _,
start,
pipes[2][2],
redirect[2],
@murmurlab
murmurlab / Makefile
Last active September 28, 2024 05:06
mk makefilesi, birisi cpp icin
CC = clang++
CXXFLAGS = -std=c++98 -pedantic
LXXFLAGS =
RUNFLAGS =
NAME = program
LIB =
SRC_DIR = .
INC_DIR =
CFRunLoopAddObserver|CFRunLoopAddTimer|CFRunLoopGetMain|CFRunLoopObserverCreate|CFRunLoopTimerCreate|CFRunLoopTimerInvalidate|NSApp|NSDefaultRunLoopMode|OBJC_CLASS_$_NSApplication|OBJC_CLASS_$_NSDate|OBJC_CLASS_$_NSNotificationCenter|OBJC_CLASS_$_NSOpenGLContext|OBJC_CLASS_$_NSOpenGLPixelFormat|OBJC_CLASS_$_NSOpenGLView|OBJC_CLASS_$_NSRunningApplication|OBJC_CLASS_$_NSString|OBJC_CLASS_$_NSWindow|OBJC_METACLASS_$_NSObject|OBJC_METACLASS_$_NSOpenGLView|OBJC_METACLASS_$_NSWindow|TransformProcessType|__CFConstantStringClassReference|__bzero|__cxa_atexit|__stack_chk_fail|__stack_chk_guard|__stderrp|_objc_empty_cache|atoi|close|cos|exit|fputs|free|fwrite|glActiveTexture|glAttachShader|glBindBuffer|glBindTexture|glBlendEquation|glBlendFunc|glBufferData|glClear|glClearColor|glCompileShader|glCreateProgram|glCreateShader|glDeleteBuffers|glDeleteProgram|glDeleteShader|glDeleteTextures|glDisable|glDisableVertexAttribArray|glDrawArrays|glEnable|glEnableVertexAttribArray|glFlush|glGenBuffers|glGenTextures|glGetAttribLoca
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
using std::string;
# define ﷲ main
# define ﷳ return
# define ﷰ int
#!/bin/sh
set -e
# Before we get the token, redirect stdout to stderr.
exec 3>&1 1>&2
export LC_ALL=C
echo() {
alias normod="$HOME/sources/repos/gnome-gamma-tool/gnome-gamma-tool.py -c 1.1 -g 0.95 -b 1 -t 5500"
alias kodmod="$HOME/sources/repos/gnome-gamma-tool/gnome-gamma-tool.py -c 1.2 -g 1 -b 1 -t 5500"