Skip to content

Instantly share code, notes, and snippets.

View ushiocheng's full-sized avatar

Clover ushiocheng

  • Santa Clara University
  • Santa Clara, CA, USA
View GitHub Profile
@ushiocheng
ushiocheng / mgn9h-rail-stopper-on-2020.openscad
Last active December 26, 2023 06:43
Rail stopper for MGN9H on 2020 Extrusion
// Rail stopper for MGN9H on 2020 Extrusion
// by github.com/ushiocheng
// WARNING: this is not tested
// variant 0: counterbored hole
// variant 1: rail guide
variant=1;
zfc=0.001; // correcting z-fighting in render view, not actually printable/functional
@ushiocheng
ushiocheng / bigram-analysis.txt
Created May 2, 2023 04:35
letter frequency analysis
// Based on https://github.com/dolph/dictionary/blob/master/popular.txt
in 4502
er 3526
ng 2849
ed 2833
es 2764
re 2594
ti 2508
te 2437
#!/bin/sh
# ------------- Script INFOs -------------
# Script Name: download-videos.sh
# Create Date: 2021-02-25
# Version #: 1.2
# Author: github@ushio-cheng
# Description: - Accept 2 parameter <path to a list of video links> [path to output video]
# - Downloads all videos in the list by spawning screen session
# - Will retry if youtube-dl failed

A guide to Obsidian MD

This guide have ~1450 words and should take 7-10 minutes to read.
This guide should be read in Obsidian under preview mode.

HTML Elements

Markdown is a superset of HTML, so any HTML file is valid Markdown. *This is not always true since some feature are disable in Obsidian for security reasons.

@ushiocheng
ushiocheng / 2022-04-23-01.md
Last active April 24, 2022 02:52
Quick way to hide a directory without change the repository

I sometimes want to put some test data in a repo, but I don't want to change .gitignore for others. So, here is a way to ignore a folder without doing that.

  1. put a .gitignore file in the folder
  2. put ** in the .gitignore file (yes this works)
@ushiocheng
ushiocheng / splitting-file.md
Created February 2, 2021 18:42
splitting large file for transfer

Split large files into smaller files

Uses Shell command split

Splitting

# split file according to line count
split -l <line count> <file>

Keybase proof

I hereby claim:

  • I am ushiocheng on github.
  • I am ushiocheng (https://keybase.io/ushiocheng) on keybase.
  • I have a public key ASA-okiNSdaMpISgF1Cimuf5CBhmuEqnk77m-1r6t9uqcAo

To claim this, I am signing this object: