Code Snippets

These are a collection of code snippets I've used in the past and saved. Some are Javascipt and CSS code I used to create this website. Some are code snippets from hobby projects.

All Snippets

canvas-sketch cheatsheet

canvas-sketch cheatsheet

canvas-sketch cheatsheet

HTML and Javascript canvas cheatsheet

HTML and Javascript canvas cheatsheet

HTML and Javascript canvas cheatsheet

npm run dev error fix

npm run dev error fix

Solve the npm run dev error for vs code

wxMaxima cheatsheet

wxMaxima cheatsheet

Commonly used commands in wxMaxima

Change symbolic to transfer function in Matlab

Change symbolic to transfer function in Matlab

Matlab script to change symbolic equations to s-domain transfer function

ChartJS cheatsheet

ChartJS cheatsheet

Linechart using Chartjs and react-chartjs-2 library

Bode plot in Matlab

Bode plot in Matlab

Bode plot in Matalb + read data from CSV file and append the data into the Bode plot for comparison

Simplis cheatsheet

Simplis cheatsheet

Most often used bindkeys and cheatsheet in Simplis

Using cwebp to Convert Images to the WebP Format

Using cwebp to Convert Images to the WebP Format

Most often used Ngspice simulation commands

Ngspice cheatsheet

Ngspice cheatsheet

Most often used Ngspice simulation commands

Xschem cheatsheet

Xschem cheatsheet

Most often used bindkeys and common cells in Xschem

Simulate output with given input and transfer function

Simulate output with given input and transfer function

Universal way to simulate the output waveform using lsim function inside Matlab

Set line width in Matlab

Set line width in Matlab

Universal way to set line width in Matlab

Write transfer function in Matlab for bode plot

Write transfer function in Matlab for bode plot

Easy way to writen transfer function in s domain

Creating Movies and Animations in Matlab

Creating Movies and Animations in Matlab

This tutorial illustrates how to create movies and animations in Matlab.

Matlab plot cheatsheet

Matlab plot cheatsheet

Customize your Matlab plot to make it pretty

Asciimath cheatsheet

Asciimath cheatsheet

Asciimath syntex for writting Math equations in this blog

Markdown cheatsheet

Markdown cheatsheet

Markdown syntex I used for writing the blog


HomeWikis
SnippetsAbout
Google ScholarLinkedIn