Skip to content

Instantly share code, notes, and snippets.

@Zyst
Zyst / Novelupdates checkbox accessibility
Created April 16, 2019 19:59
Lets you use keyboard stuff to actually toggle read chapters
@-moz-document domain("novelupdates.com") {
td > [type="checkbox"]:checked,
td > [type="checkbox"]:not(:checked) {
position: static;
left: 0;
float: right;
margin: 4px;
width: 18px;
height: 18px;
}
@Zyst
Zyst / dns-sync.sh
Created April 16, 2019 15:56 — forked from matthiassb/dns-sync.sh
Init.d script for keeping WSL resolv.conf in-sync with Windows
#! /bin/bash
### BEGIN INIT INFO
# Provides: dns-sync
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Synchronizes /etc/resolv.conf in WLS with Windows DNS - Matthias Brooks
### END INIT INFO
"""
A program that takes Mexican Santander's exported file, and outputs a YNAB
compatible CSV file
"""
import pandas as pd
RENT = "Immediate Obligations: Rent 1st"
TECMILENIO = "Immediate Obligations: Tecmilenio 1st"
GAS = "Immediate Obligations: Gas 13th"
AXTEL = "Immediate Obligations: Axtel 14th"
@Zyst
Zyst / smash-4-training-routine.org
Last active June 23, 2018 19:11
This video https://www.youtube.com/watch?v=d3UHUW57bzk has some cool movement things I figured I should practice. So I made an org mode entry for it with todos, so there's a bit more structure to the training.

Training

Movement [0%]

This is mostly centered around Marth/Lucina. Some of these entries are generic, but some others are specific to Marth or Lucina. If you practice this with another character you might wanna find some movement specific combos for it.

Practice fastfalling [0/2]

https://youtu.be/d3UHUW57bzk?t=1364

Make sure you can fast fall very consistently with shorthops.

@Zyst
Zyst / snippets-js.json
Created April 26, 2018 15:20
My JS VS Code snippets
{
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
@Zyst
Zyst / git-bash-as-term
Created April 15, 2018 20:03
NeoVim use git bash as terminal
:term "C:\Program Files\Git\bin\bash.exe"
@Zyst
Zyst / gist:70621d54a99dc2fff2a2697ab0e00a23
Created March 22, 2017 05:49 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@import url('https://fonts.googleapis.com/css?family=Roboto');
@font-face {
font-family: 'Roboto';
src: url("https://fonts.googleapis.com/css?family=Roboto:300");
}
@font-face {
font-family: 'Source Sans Pro Semibold';
src: url("chrome-extension://dgmanlpmmkibanfdgjocnabmcaclkmod/fonts/SourceSansPro-Semibold.ttf");
import mongoose, { Schema } from 'mongoose';
const StepSchema = new mongoose.Schema({
name: { type: String, required: true },
description: String,
position: { type: Number, required: true },
date_added: { type: Date, default: Date.now },
date_modified: { type: Date, default: Date.now },
templates: [{ type: Schema.Types.ObjectId, ref: 'Template' }],
active: { type: Boolean, default: true },
// Subtracts the number of days to a Date and returns it
Date.prototype.subtractDays = function(days) {
var dat = new Date(this.valueOf());
dat.setDate(dat.getDate() - days);
return dat;
}