Skip to content

Instantly share code, notes, and snippets.

View stagfoo's full-sized avatar
🎨
Do I Dream of Electric Bugs

Alex King stagfoo

🎨
Do I Dream of Electric Bugs
View GitHub Profile
@stagfoo
stagfoo / install-yay.sh
Last active January 6, 2022 03:29
install yay
cd ~/;
pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git .yay;
cd .yay;
makepkg -si;
@stagfoo
stagfoo / jobcan.js
Last active November 20, 2020 08:55
jobcan.js
function sleep (time) {
return new Promise((resolve) => setTimeout(resolve, time));
}
async function enterTime() {
// sleep time expects milliseconds
let startWork = "0900"
let lunchStart = "1200"
let lunchFinish = "1300"
let finishWork = "1800"
// Usage!
@stagfoo
stagfoo / fish.config
Created August 7, 2020 22:47
2020 - Desktop rice
stagfoo/theme-happyaku
joehillen/to-fish
@stagfoo
stagfoo / IDE.vim
Created November 25, 2019 00:02
IDE.vim
"""""""""""""""""""""""""""""""""""""
" Allan MacGregor Vimrc configuration
"""""""""""""""""""""""""""""""""""""
"Mouse controller
:set mouse=a
set nocompatible
syntax on
set nowrap
set encoding=utf8
@stagfoo
stagfoo / bspwmrc
Last active October 9, 2019 23:53
New Rice
#! /bin/sh
sxhkd & polybar bar &
bspc monitor -d I II III IV V
bspc config border_width 5
bspc config window_gap 12
bspc config top_padding 60
bspc config bottom_padding 48
<?php
function form_endpoint($data) {
$args = array(
'ID' => $data['ID'],
'post_type' => array('wpcf7_contact_form')
);
// The Query
@stagfoo
stagfoo / .hyper.js
Last active May 1, 2018 08:25
Work Computer Fish, hyper and vscode
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@stagfoo
stagfoo / Card.ts
Last active December 29, 2017 00:38
Call a class inside another class constructor
const yo = require('yo-yo');
import Title from '../Title/Title';
import Soshi from '../core'
class Card extends Soshi {
el: HTMLElement;
props: {
title: string,
image: string,
text: string
@stagfoo
stagfoo / init.vim
Last active December 10, 2017 21:40
vim-config
"No compatibility to traditional vi
set nocompatible
"vim-plug
call plug#begin('~/.config/nvim/plugged')
"Plugin list ------------------------------------------------------------------
Plug 'achimnol/python-syntax'
@stagfoo
stagfoo / .zshrc
Last active February 19, 2018 00:20
simple npm bash
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/alexander.king/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="metoer"