Skip to content

Instantly share code, notes, and snippets.

View shane0's full-sized avatar

shane0 shane0

View GitHub Profile
@shane0
shane0 / _.md
Last active July 30, 2023 20:10
2023

2023

vim

  • vim online
  • host your own notes online with vim shortcuts (tiddlywiki codemirror plugin, codemirror vim plugin)

external keyboards

  • lately I have been using the atreus keyboard
@shane0
shane0 / dna.bat
Last active January 20, 2023 19:45
minimal version of a larger powershell back end I used to use that does almost anything using anything
@REM Tokenize current date.
@for /f "tokens=1,2,3,4 delims=/ " %%a in ( 'date/t' ) do @set x=%%d
@for /f "tokens=1,2,3,4 delims=/ " %%a in ( 'date/t' ) do @set m=%%b
@for /f "tokens=1,2,3,4 delims=/ " %%a in ( 'date/t' ) do @set d=%%c
@REM run today if no date passed
@if "%3"=="" (
@set yyyymmdd=%x%%m%%d%
) else (
@set yyyymmdd=%3
@shane0
shane0 / anapanasati.md
Last active September 25, 2023 03:31
ten oxherding & anapanasati
‘Breathing in a long breath, I know I am breathing in a long breath.
Breathing out a long breath, I know I am breathing out a long breath.
‘Breathing in a short breath, I know I am breathing in a short breath.
Breathing out a short breath, I know I am breathing out a short breath.
‘Breathing in, I am aware of my whole body.
Breathing out, I am aware of my whole body.’
@shane0
shane0 / sql.md
Last active July 30, 2023 19:59 — forked from anhthii/sql.md
@shane0
shane0 / beat.bat
Last active October 20, 2017 18:15
celery beat
celery -A beat beat -l debug
@shane0
shane0 / keymap.c
Last active September 1, 2017 18:58
qmk vortex core layout for planck
/* Copyright 2015-2017 Jack Humbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@shane0
shane0 / keymap.c
Created August 24, 2017 09:02 — forked from pocketkk/keymap.c
Chord and Pick Keymap
// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
// this is the style you want to emulate.
#include "planck.h"
#ifdef BACKLIGHT_ENABLE
#include "backlight.h"
#endif
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
@shane0
shane0 / _ReadMe.md
Last active March 24, 2017 19:31
adding comments to flask-flatpages #flask #flask-flatpages #comments

This is a simple comment system for flask-flatpages, appends a datetime stamp and your comment in the static file.

#todo: cleanup, redirect to same template and clean the template up
@shane0
shane0 / forms.py
Last active February 14, 2020 08:53
flask-flatpages search
class SearchFlatsForm(Form):
"""search flat pages"""
searchterm = StringField('searchterm',
validators=[DataRequired(),
Length(min=3, max=30),
])
@shane0
shane0 / notes.md
Last active March 22, 2017 23:51
flask flatpage tag list view

tag views filtered by date, alpha, numeric