Skip to content

Instantly share code, notes, and snippets.

View stanographer's full-sized avatar

Stanley Sakai stanographer

View GitHub Profile
#!/bin/bash
## **run `chmod +x ~/myFolder/clay_import_site.bash`.**
## grab uris.
printf "\n"
echo " Enter article URI including www."
printf "\n"
@stanographer
stanographer / .plo.sh
Created September 13, 2019 17:45
Automatically pulls down your most dictionaries into your dictionary directory, and then starts Plover. Name this .plo.sh and add to in home directory, add "source ~/.plo.sh" to your bash or zsh profile and it lets you start Plover with the command "plo" from anywhere. Note: must be using dev-environment build.
1 #!/bin/zsh
2
3 # Color variables.
4 red=$'\e[1;31m'
5 grn=$'\e[1;32m'
6 blu=$'\e[1;34m'
7 mag=$'\e[1;35m'
8 cyn=$'\e[1;36m'
9 white=$'\e[0m'
10 yellow=$'\e[1;33m'
@stanographer
stanographer / .alias
Created August 26, 2019 03:53
Common shortcuts
# Github
alias g="git"
alias gs="git status"
alias ga="git add"
alias gaa="git add -A"
alias ga.="git add ."
alias gb="git branch"
alias gca="git commit -a -m"
alias gcmm="git commit -m"
import React, { Fragment, useEffect, useState } from 'react';
import PropTypes from 'prop-types';
function Parallax(props) {
const [YPos, setYPos] = useState(0);
const { uppermodulevisible, addclass } = props;
function handleScroll() {
if (uppermodulevisible === 1) {
console.log("you were module visible", uppermodulevisible);
@stanographer
stanographer / README.md
Last active July 19, 2021 13:43 — forked from morinted/README.md
Remove TypeRacer Input limit

This script removes the input length limit which can trip up Plover users.

Simply install the script into TamperMonkey (Chrome) or GreaseMonkey (Firefox) and get racing.

The script was created by community member nimble

@stanographer
stanographer / convert-rhu-data.js
Last active February 17, 2019 04:35
Convert a ginormous table of corrections data.
const fs = require('fs');
const Json2csvParser = require('json2csv').Parser;
let output;
// Read in a giant CSV file.
fs.readFile('input.json', 'utf8', (err, data) => {
if (err) throw err;
output = JSON.parse(data);
parse(output);
'use strict';
// Use Express as our routing middleware.
const express = require('express');
const app = express();
const port = process.env.port || 4000;
startServer();
function startServer () {