Skip to content

Instantly share code, notes, and snippets.

View sepisoad's full-sized avatar
🤘
yeah

sepisoad sepisoad

🤘
yeah
View GitHub Profile
@sepisoad
sepisoad / scratch.focus-config
Created October 14, 2025 21:38
astyle - focus editor config
[25] # Version number. Do not delete.
[[workspace]]
/home/sepi/Projects/sepi/learn/c/scratchpad
[ignore]
out
[[build commands]]
build_working_dir: /home/sepi/Projects/sepi/learn/c/scratchpad/
@sepisoad
sepisoad / config.h
Created October 14, 2025 21:36
st config.h
/* See LICENSE file for copyright and license details. */
/*
* appearance
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "Hack:pixelsize=14:antialias=true:autohint=true";
static int borderpx = 2;
@sepisoad
sepisoad / config.h
Created October 14, 2025 21:35
dwm config.h
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 1; /* snap pixel */ /* 32 */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 0; /* 0 means bottom bar */
static const char* fonts[] = { "Hack:pixelsize=16:antialias=true:autohint=true" };
static const char dmenufont[] = "Hack:pixelsize=16:antialias=true:autohint=true";
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
@sepisoad
sepisoad / global.MACOS.focus-config
Last active October 17, 2025 06:00
my focus editor config that mimics emacs key bindings - MACOS
[25] # Version number. Do not delete.
[[workspace]]
[ignore]
.svn
.git
[allow]
@sepisoad
sepisoad / global.LINUX.focus-config
Last active October 17, 2025 06:01
my focus editor config that mimics emacs key bindings - LINUX
[25] # Version number. Do not delete.
[[workspace]]
[ignore]
.svn
.git
[allow]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; early-init.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq
package-enable-at-startup nil
gc-cons-threshold most-positive-fixnum
read-process-output-max (* 1024 1024)
redisplay-dont-pause t
gc-cons-percentage 0.6
BasedOnStyle: WebKit
ColumnLimit: 80
IndentWidth: 2
TabWidth: 2
IndentCaseLabels: true
ReflowCommentsStyle: Always
BreakBeforeBraces: Attach

Keybase proof

I hereby claim:

  • I am sepisoad on github.
  • I am sepisoad (https://keybase.io/sepisoad) on keybase.
  • I have a public key ASD8Ssh4lN16gDLKC_EXrBLRRtt5HM0MsB4kvKBzTf92qQo

To claim this, I am signing this object:

@sepisoad
sepisoad / furl.rkt
Created August 29, 2018 11:46
fetch urls from a url
#lang racket
(require net/url)
(if (< (vector-length (current-command-line-arguments)) 1)
(display "please define url\n")
(display "please wait ...\n"))
(define URL (vector-ref (current-command-line-arguments) 0))
(display (string-append URL "\n"))
@sepisoad
sepisoad / goto_err.c
Created February 21, 2017 13:33
nice c codes
//took from: https://github.com/reagent/buffer
#define jump_to_error_if(A) if (A) { goto error; }
#define jump_to_error_unless(A) if (!(A)) { goto error; }
Buffer *
buffer_alloc(int initial_size)
{
Buffer *buf = malloc(sizeof(Buffer));
char *tmp = calloc(1, initial_size * sizeof(char));