Skip to content

Instantly share code, notes, and snippets.

View vinlin24's full-sized avatar
💭
daily akko appreciation

Vincent Lin vinlin24

💭
daily akko appreciation
  • UCLA
  • Los Angeles
  • 12:59 (UTC -04:00)
  • LinkedIn in/vinlin24
View GitHub Profile
@vinlin24
vinlin24 / cs-lab-contributions.md
Last active September 26, 2023 07:47
Contributions to UCLA CS Lab Assignments

This is a list of contributions I made on my own initiative to make testing and debugging lab assignments easier for myself and hundreds of classmates. Every header is a link to the dedicated repository/Gist, so this Gist serves as a "linktree" of sorts.

⚠️ Some have been endorsed on Piazza, but these creations were never officially assigned by instructors nor were they meant to be a subtitute for the real grading mechanisms.

https://github.com/vinlin24/test-shuf (Expand for details)
@vinlin24
vinlin24 / .bashrc
Created January 17, 2023 03:50
Verilog: EDA Playground to VS Code
# Shorthand for compiling and running Verilog code
function verilog() {
# Default, like in EDA playground
local FILENAMES="'design.sv' 'testbench.sv'"
# If any arguments were provided at all, use those as filenames instead
if [ $# -ne 0 ]; then
FILENAMES=""
# This automatically loops over all items in $@
for i; do
@vinlin24
vinlin24 / workflow-shortcuts.md
Last active March 4, 2024 12:08
My compilation of must-know shortcuts across multiple apps as part of my coding workflow. Feel free to use too! (Windows only)
@vinlin24
vinlin24 / README.md
Last active September 26, 2022 16:39
Template for throwaway file management scripts. Includes a VSCode snippet to add to your python.json snippets file.

File Management Script Template

Purpose

Often times you may want to perform a bulk operation on many files at once in a certain directory, such as reformatting the names from files you just extracted from a downloaded archive.

Python is an amazing language for writing one-off scripts to handle such operations. In this gist, I share a basic template that I find useful for common use cases. I made it more versatile by using a regular expression defined beforehand to match and extract from the names of files you want to affect. This keeps the main for loop clean and focused on your desired change(s).

Usage

@vinlin24
vinlin24 / ps-help.md
Last active September 21, 2022 08:36
A quick read on getting help within PowerShell, from someone learning PowerShell.

PowerShell: Help About Help

Just forgot something? Jump to the combined cheatsheet.

Preface

When learning a new language, the first thing to master is how to get help. From there, you can learn everything else much easier because you know how to orient yourself as you continue venturing into new and unfamiliar language features.

The PowerShell tutorial on which this is based seems to agree with me on this, seeing that they labeled these "The Three Core Cmdlets in PowerShell":