Skip to content

Instantly share code, notes, and snippets.

View abdulghanitech's full-sized avatar
🎯
Focusing

Abdul Ghani abdulghanitech

🎯
Focusing
View GitHub Profile
@abdulghanitech
abdulghanitech / github_commit.js
Last active April 16, 2024 13:23
Gets all Github commits title present in a page.
const titles = document.getElementsByClassName("markdown-title");
const titlesArray = [...titles];
titlesArray.map((t) => t.children).map((k) => k[0].children[0].innerText)
@abdulghanitech
abdulghanitech / README.txt
Created September 16, 2021 16:17
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@abdulghanitech
abdulghanitech / cloudSettings
Created November 16, 2020 14:52
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-16T14:52:54.575Z","extensionVersion":"v3.4.3"}
@abdulghanitech
abdulghanitech / autoFillGoogleDocFromForm.gs
Created September 26, 2020 11:11
A script for auto-filling google docs when a new google Form is submitted
function autoFillGoogleDocFromForm(e) {
//e.values is an array of form values
var timestamp = e.values[0];
var firstName = e.values[1];
var lastName = e.values[2];
var title = e.values[3];
//file is the template file, and you get it by ID
var file = DriveApp.getFileById('your_file_id_here');