Skip to content

Instantly share code, notes, and snippets.

View mashtullah's full-sized avatar
🎯
Focusing

Mashtullah Shavalullah mashtullah

🎯
Focusing
View GitHub Profile
@mashtullah
mashtullah / index.js
Last active April 27, 2020 03:05
A node script to extract data from a pdf file
const fs = require('fs');
const pdf = require('pdf-parse');
let path=null; let pages=0;
const myArgs = process.argv;
if(myArgs.length<3)
{
console.log('No file supplied, exiting application now..');
return false;
@mashtullah
mashtullah / index.html
Created December 10, 2019 15:02
Instagram Font tool
<html>
<head>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Tangerine|Arbutus|Aref+Ruqaa|Arizonia|Bahiana|Bentham|Bungee|Cairo|Faster+One|Gloria+Hallelujah|IBM+Plex+Mono:400i|IBM+Plex+Sans+Condensed:400i|IBM+Plex+Sans:100,100i,400|IM+Fell+DW+Pica|IM+Fell+Great+Primer+SC|Mirza|Montserrat+Alternates|Moul|Noto+Sans+SC|Noto+Sans+TC|Oxygen+Mono|Proza+Libre|Righteous|Roboto|Saira+Extra+Condensed|Signika|Taviraj">
<style>
.a0{font-family:'Arbutus';}
.a1{font-family:'Aref Ruqaa';}
.a2{font-family:'Arizonia';}
.b0{font-family:'Bahiana';}
.b1{font-family:'Bentham';}
@mashtullah
mashtullah / get-cell-value.js
Created December 5, 2019 05:13 — forked from prasanthmj/get-cell-value.js
How to get cell value in Google Sheets using apps script. See article here: http://blog.gsmart.in/google-sheet-script-get-cell-value/
function onOpen()
{
var ui = SpreadsheetApp.getUi();
ui.createMenu('GetValues')
.addItem('get current', 'getCurrentCellValue')
.addItem('get by row col', 'getByRowAndColumn')
.addItem('get by address a1', 'getByCellAddressA1Notation')
.addToUi();
@mashtullah
mashtullah / Code.gs
Last active January 10, 2020 03:38
Automatically delete emails from most frequent sender in gmail
function trashEmails() {
//we get emails to ommit here
var dontdelete=getWhitelist();
var excludeemails="";
if(dontdelete.length>0)
{
for(var i=0;i<dontdelete.length;i++)excludeemails+=dontdelete[i]+" OR ";
}
var q='in:inbox label:unread -in:sent -in:chats -from:('+excludeemails.slice(0,-4)+')';
@mashtullah
mashtullah / extract.py
Created May 23, 2019 16:16
Python 3 script for extracting the binary data from a Tektronics ISF file to an array.
#!/usr/bin/env python
#coding: utf-8
""" Python script for read data from a Tektronix ".ISF" files.
Python script for reading binary ISF files from TDS series Tektronix
Oscilloscope instruments.
SCRIPT:
=======
It can be run as an script from the command line converting the ISF file into a
two columns ASCII file: