This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# need to install Fisher via `curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish` | |
# need to install bass via `fisher add edc/bass` | |
set LATEST_NVM (ls -t /usr/local/Cellar/nvm | head -1) | |
function nvm | |
bass source /usr/local/Cellar/nvm/{$LATEST_NVM}/nvm.sh --no-use ';' nvm $argv | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function eslint | |
command eslint --config ~/.config/.eslintrc.js $argv | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Wrap ESLint command to use global config | |
function eslint | |
command eslint --config ~/.config/.eslintrc.js $argv | |
end | |
# Personal utility to install ESLint in the current working directory | |
function yawn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ranger.api.commands import Command | |
class code(Command): | |
""" | |
:code | |
Opens current directory in VSCode | |
""" | |
def execute(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document domain("githubusercontent.com"), domain("graphql-explorer.githubapp.com"), domain("github.ibm.com"), regexp("^https?://((blog|gist|guides|help|raw|resources|status|developer)\\.)?github\\.com/((?!generated_pages/preview).)*$") { | |
/*! Github Dark v1.20.84 (2018-11-19) */ | |
/*! Repository: https://github.com/StylishThemes/GitHub-Dark */ | |
/*! Userstyle: http://userstyles.org/styles/37035 */ | |
/*! License: https://creativecommons.org/licenses/by-sa/4.0/ */ | |
/* Override default browser styles */ | |
button { | |
color: #b5b5b5 !important; | |
} | |
/* begin auto-generated rules - use tools/generate.js to generate them */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lavandula | |
colors: | |
# Default colors | |
primary: | |
background: '0x040112' | |
foreground: '0x726f7c' | |
# Normal colors | |
normal: | |
black: '0x1e0543' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
repository(name: "josefaidt.github.io", owner: "josefaidt") { | |
folder: object(expression: "master:app/content/pages") { | |
... on Tree { | |
entries { | |
oid | |
object { | |
... on Blob { | |
text | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// utility to swap ZEIT Now configs | |
// unable to scope deploys to dev (team) with git enabled | |
// | |
// /.now | |
// |- now.swap.json | |
// |- project.json | |
// |- project.personal.json | |
// |- project.team.json | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs'; | |
import path from 'path'; | |
import express from 'express'; | |
const getFileRoutes = async ({ directory, ignore = /_/, include = /\.js$/ }) => { | |
const result = new Map(); | |
const nestedGetFiles = async nestedDirectory => { | |
const files = fs.readdirSync(nestedDirectory, { withFileTypes: true }); | |
for (let i = 0; i < files.length; i++) { | |
const f = files[i]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const { existsSync: exists, promises: fs } = require('fs'); | |
const { spawn } = require('child_process'); | |
const path = require('path'); | |
const c = require('chalk'); | |
const dotenv = require('dotenv'); | |
const nodemon = require('nodemon'); | |
// set default node_env | |
process.env.NODE_ENV = process.env.NODE_ENV || 'development'; |