Skip to content

Instantly share code, notes, and snippets.

View assman's full-sized avatar
🏠
Working from home

Varun Parmar assman

🏠
Working from home
View GitHub Profile
@assman
assman / submit.md
Created September 16, 2019 09:29 — forked from tanaikech/submit.md
Replacing Text to Image for Google Document using Google Apps Script

Replacing Text to Image for Google Document using Google Apps Script

This is a sample script for replacing text to image for Google Document using Google Apps Script (GAS). There is a method for replacing text to text at Class Text of DocumentApp. But there are not methods for replacing text to image. So I created this sample script.

Demo :

This sample image was created by k3-studio.

Usage :

@assman
assman / NVIDIA GPU CUDA 10.1 Ubuntu 18.md
Created July 9, 2020 04:54 — forked from pliablepixels/NVIDIA GPU CUDA 10.1 Ubuntu 18.md
All the stuff to get CUDA 10.1 working with NVIDIA GPUs on Ubuntu 18.04. My notes.

All the stuff to get CUDA 10.1 working with NVIDIA GPUs on Ubuntu 18.04. My notes.

Step 1: Install NVIDIA Driver

  • sudo apt install nvidia-driver-430
  • reboot
  • run nvidia-smi. If it does not show your GPU, stop, fix. If this doesn't work, nothing else will (the rest of the stuff will compile, but won't work)
@assman
assman / nric-validation.js
Created July 19, 2020 03:01 — forked from eddiemoore/nric-validation.js
Validation for Singapore NRIC and FIN number
//Based on http://www.samliew.com/icval/
function validateNRIC(str) {
if (str.length != 9)
return false;
str = str.toUpperCase();
var i,
icArray = [];
for(i = 0; i < 9; i++) {