Skip to content

Instantly share code, notes, and snippets.

View darrylhebbes's full-sized avatar

Darryl Hebbes darrylhebbes

  • Berlin, Germany
View GitHub Profile
@darrylhebbes
darrylhebbes / init.el
Created October 29, 2024 12:27
Emacs GUI on Windows 11 type face smoothing (anti-aliasing) for removing fuzzy font rendering (fringing)
;; Try Use Different Hinting Options: Experiment with different values of
;;hinting (e.g., true, false, or slight) to see if it reduces the
;;fuzziness.
;;Also Experiment with Different adstyle Options: Try using normal instead
;;of mono, as adstyle=mono might restrict some font smoothing
;;adjustments.
(add-to-list 'default-frame-alist '(font . "Iosevka Comfy-9.5:antialias=standard:hinting=true:adstyle=mono"))
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": ["airbnb-base", "airbnb/rules/react", "prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
@darrylhebbes
darrylhebbes / alacritty.yml
Last active February 12, 2022 18:46
Configs
env:
TERM: xterm-256color
WINIT_X11_SCALE_FACTOR: "1.0"
custom_cursor_colors: true
cursor:
style: Block
unfocused_hollow: true
@darrylhebbes
darrylhebbes / doom.md
Created November 27, 2020 22:55 — forked from anhedonix/doom.md
Doom Emacs Cheatsheet

Doom Emacs Default keybindings cheetsheet

SPC

  • SPC find file
  • , switch bufferA
  • . browse files
  • : MX
  • ; EX
  • < switch buffer
@darrylhebbes
darrylhebbes / doom.txt
Created November 27, 2020 22:54 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@darrylhebbes
darrylhebbes / updatestate
Created June 12, 2020 09:51
state update
//
const updateState = (valueToUse): void => {
this.setState(prevState => ({
jasper: {
// object that we want to update
...prevState.jasper, // keep all other key-value pairs
name: valueToUse // update the value of specific key
}
}));
};
@darrylhebbes
darrylhebbes / users.json
Last active May 9, 2020 16:08
Sample data
[
{
"id": 1,
"name": "Leanne Graham",
"username": "Bret",
"email": "[email protected]",
"address": {
"street": "Kulas Light",
"suite": "Apt. 556",
"city": "Gwenborough",
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@darrylhebbes
darrylhebbes / numbertoordinal.js
Last active July 10, 2018 15:44
My solution for returning the ordinal of a number, 2nd, 3rd, 4th
Array.range = (from, to, step) => Array.from(
{ length: Math.floor((to - from) / step) + 1 },
(v, k) => from + k * step
);
const testArr = Array.range(0,10,1);
const modulo = (x, n) => x % n;
// Check last two digits if are certain teens
const isTeenTh = n => [10, 11, 12, 13, 14, 15, 16, 17, 18, 19].includes(n % 100)
// for ordinal 'st'
@darrylhebbes
darrylhebbes / combinators.js
Created June 27, 2018 07:42 — forked from Avaq/combinators.js
Common combinators in JavaScript
const I = x => x;
const K = x => y => x;
const A = f => x => f(x);
const T = x => f => f(x);
const W = f => x => f(x)(x);
const C = f => y => x => f(x)(y);
const B = f => g => x => f(g(x));
const S = f => g => x => f(x)(g(x));
const P = f => g => x => y => f(g(x))(g(y));
const Y = f => (g => g(g))(g => f(x => g(g)(x)));