Skip to content

Instantly share code, notes, and snippets.

View darrylhebbes's full-sized avatar

Darryl Hebbes darrylhebbes

  • Berlin, Germany
View GitHub Profile
background-color: #ffcc00;
.yunexCustomBodyWrap {
outline: 3px solid green;
}
h1 {
background-color: #6f5cd5;
height: 100%;
cursor: auto;
{
"version": "1.2.3",
"name": "Sharing Provider",
"description": "A Scooter Sharing Widget Definition",
"size": "sm",
"title": [
"Scooter",
"Roller"
],
"trafficType": "scooter",
{
"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": "Sincere@april.biz",
"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'