Skip to content

Instantly share code, notes, and snippets.

View dextermb's full-sized avatar
💭
Thinking of the next big thing

Dexter Marks-Barber dextermb

💭
Thinking of the next big thing
View GitHub Profile
@dextermb
dextermb / kitty.conf
Last active November 19, 2023 17:42
~/.config/kitty/kitty.conf
map ctrl+shift+emter new_window_with_cwd
map cmd+enter new_window_with_cwd
# Switch focus to the neighboring window in the indicated direction
map ctrl+shift+left neighboring_window left
map ctrl+shift+right neighboring_window right
map ctrl+shift+up neighboring_window up
map ctrl+shift+down neighboring_window down
# Resize
@dextermb
dextermb / config.toml
Created November 18, 2023 21:02
~/.config/helix/config.toml
[editor]
insert-final-newline = true
[editor.statusline]
left = ["mode", "spinner", "version-control", "read-only-indicator", "file-modification-indicator"]
center = ["file-name"]
import React from 'react'
import swr from "swr"
import { request } from "~/services/api"
import { arrayParam } from '~/utils/query-params'
const handler = () => {
const [selected, setSelected] = React.useState([])
const { data: sites } = swr('/sites', request)
export const dots = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./*"]
}
},
"exclude": [
"node_modules",
".next"
@dextermb
dextermb / gist:3722586dec9f8431374618a438f391cc
Created January 27, 2020 11:03 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
import React from 'react'
class Debounce extends React.Component {
constructor(props) {
super(props)
this.state = {
value: ''
}
sudo apt-get purge wkhtmltopdf
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo mv wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
sudo mv wkhtmltox/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
function manipulate({ model, ignore, keyMap, valueMap, order }) {
const _ignore = (
[
/_?id$/,
/_at$/
]
)
.concat(ignore)
.filter(r => r);
@dextermb
dextermb / .vimrc
Last active February 3, 2019 15:58
if &compatible
set nocompatible
endif
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
set runtimepath^=~/.vim/bundle/ctrlp.vim
if dein#load_state('~/.cache/dein')
call dein#begin('~/.cache/dein')