Skip to content

Instantly share code, notes, and snippets.

View seanwash's full-sized avatar
🏠
Working from home

Sean Washington seanwash

🏠
Working from home
View GitHub Profile
# Aliases
# ----------
alias ..="cd .."
alias ll="exa --long --header --git -a"
alias n="nvim"
alias c="cd ~/Code"
alias s="cd ~/Code/sidedoor"
alias config="cd ~/.config"
alias bluetooth="sudo pkill bluetoothd" # When bluetooth gets laggy, just kill it.
"""
""" https://github.com/JetBrains/ideavim#Files
""" https://gist.github.com/seanwash/b45169cbc5d90868f9f221191d67bec5
"""
"""
""" Plugins
"""
set surround
set commentary
@mikhailbot
mikhailbot / settings.json
Created May 27, 2020 17:43
GitHub Dark for Windows Terminal
"schemes": [
{
"name" : "GitHub Dark",
"background" : "#24292e",
"black" : "#24292e",
"blue" : "#044289",
"cyan" : "#79b8ff",
"foreground" : "#fafbfc",
"green" : "#28a745",
"purple" : "#6f42c1",
@seanwash
seanwash / tasks.json
Last active March 28, 2020 22:43
VS Code Elixir Tasks
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
//
// Mix Tasks
//
{
"label": "mix.compile (force)",
@IanColdwater
IanColdwater / twittermute.txt
Last active July 2, 2024 02:25
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@y-temp4
y-temp4 / tailwind.config.js
Created August 9, 2019 02:23
Use open-color for Tailwind CSS
const openColors = require('open-color/open-color.json')
const colors = {}
Object.entries(openColors).forEach(([color, values]) => {
if (['white', 'black'].includes(color)) return
colors[color] = { ...values }
})
module.exports = {
@loilo
loilo / pass-slots.md
Last active July 3, 2024 20:01
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

@HenrikJoreteg
HenrikJoreteg / extra-args-bundle.js
Created July 23, 2018 03:55
Light graphQL / redux-bundler example
import gqlFetch from '../helpers/gql-fetch'
import config from '../config'
export default {
name: 'extraArgs',
getExtraArgs: store => {
return {
gqlFetch: gqlFetch({
apiUrl: config.apiUrl,
getToken: () => store.selectAuthToken(),
@percygrunwald
percygrunwald / scout_apm_absinthe_plug.ex
Last active January 5, 2021 00:12
Scout Absinthe (GraphQL) Instrumentation
defmodule ScoutApm.Absinthe.Plug do
alias ScoutApm.Internal.Layer
require Logger
@error_prefix "GraphQL query document could not be parsed"
@endpoint_prefix "GraphQL"
@default_action_name "unknown"
def init(default), do: default
@dberget
dberget / Elixir_Formatter.md
Last active February 20, 2018 03:42
Some notes on using Elixir's code formatter

Example of .formatter.exs file

[
  inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"],
  locals_without_parens: [
    # Kernel
    inspect: 1,
    inspect: 2,

    # Phoenix