Skip to content

Instantly share code, notes, and snippets.

View labnol's full-sized avatar
🇮🇳
Building stuff for the Internet!

Amit Agarwal labnol

🇮🇳
Building stuff for the Internet!
View GitHub Profile
@labnol
labnol / substitute.md
Created May 2, 2024 06:55
Google Sheets function for generating pre-filled Google Form links

This Google Sheets function will help you generate pre-filled Google Form links without nested SUBSTITUE functions.

Watch the video tutorial to learn more.

/**
 * Replaces multiple occurrences of specific values in a string with new values.
 * @returns {string} The modified string with replacements made.
 * 
 * @customfunction
@labnol
labnol / file-upload-forms
Created January 22, 2019 07:36
File Upload Forms for Google Drive
File Upload Forms for Google Drive
----------------------------------
With the File Upload forms, you can upload files of any size and the files are sent directly to the owner’s Google Drive while the form data is saved in a Google Spreadsheet.
A [Pen](https://codepen.io/labnol/pen/QYWvwV) by [Amit Agarwal](https://codepen.io/labnol) on [CodePen](https://codepen.io).
[License](https://codepen.io/labnol/pen/QYWvwV/license).
// 1. Go to https://twitter.com/following.
// 2. Keep scrolling to the bottom repeatedly until all your followers are loaded.
// 3. Run this in your console.
[].slice.call(document.querySelectorAll('.unfollow-text')).forEach(function(button) {
button.click();
});
@labnol
labnol / instagram
Created August 19, 2014 13:39
Save Instagram Photos
function send2gp() {
var success = new Boolean(false);
var retry = 0;
var max_retry = 3; // 最高リトライ回数 max retry count
var errmsg = '';
var tokiboys1 = '長男の名前'; // 長男の名前を設定 define my first boy's name
var tokiboys2 = '二男の名前'; // 二男の名前を設定 define my second boy's name
var papa = 'パパの名前'; // 送信者(パパ)の名前を設定 define my name
// エラーで終了した場合はリトライする(Max3回)
@labnol
labnol / google-chrome-extensions.md
Created May 9, 2014 19:44
Google Chrome Extensions

Best Google Chrome Extensions

List compiled by Amit Agarwal

  1. Vimium — Power users can browse the web using keyboard shortcuts. No mouse required.
  2. Buffer — Share links to multiple social websites with a go.
  3. PushBullet — Send web links, text notes and even push files from computer to your phone.
  4. Clip Better — Don't send raw links over email, send previews that suggest what a link is all about.
  5. Streamus — A YouTube music play for Chrome that also includes a radio.
  6. Mighty Text — Send and receive SMS text messages from your desktop
@labnol
labnol / google-apps-script.md
Last active October 28, 2024 05:16 — forked from junaidk/resources.md
How to Learn Google Apps Script

Learning Google Apps Script

Find the best resources for learning Google Apps Script, the glue that connects all Google Workspace services including Gmail, Google Drive, Calendar, Google Sheets, Forms, Maps, and more.

A good place to learn more about Google Apps Script is the official documentation available at developers.google.com. Here are other Apps Script resources that will help you get up to speed.

  1. Google Apps Script Code Samples by Amit Agarwal
  2. Google Apps Script Development - Create Google Apps Script projects locally inside VS Code - video tutorial
  3. Awesome Google Scripts by Amit Agarwal
  4. Google Developer Experts - Follow Apps Scr
@labnol
labnol / index.html
Created April 30, 2014 13:27
Google Maps
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d56790.47490202523!2d78.042155!3d27.175014999999924!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x39747121d702ff6d%3A0xdd2ae4803f767dde!2sTaj+Mahal!5e0!3m2!1sen!2s!4v1398864446719" width="800" height="600" frameborder="0" style="border:0"></iframe>

Untitled Slide

Welcome to Glide.

Glide is the easiest way to create useful slide for all of your Gists.

  • input key <- to go backward.
  • input key -> to go forward.

Publishing

@labnol
labnol / obama.md
Last active August 29, 2015 14:00
Obama's entry from Wikipedia

Barack Obama

Barack Hussein Obama II (born August 4, 1961) is the 44th and current President of the United States, and the first African American to hold the office. Born in Honolulu, Hawaii, Obama is a graduate of Columbia University and Harvard Law School, where he served as president of the Harvard Law Review. He was a community organizer in Chicago before earning his law degree.

In 2004, Obama received national attention during his campaign to represent Illinois in the United States Senate with his victory in the March Democratic Party primary, his keynote address at the Democratic National Convention in July, and his election to the Senate in November. He began his presidential campaign in 2007 and, after a close primary campaign against Hillary Rodham Clinton in 2008, he won sufficient delegates in the Democratic Party primaries to receive the presidential nomination. He then defeated Republican nominee John McCain in the general election, and was inaugurated as president on January

@labnol
labnol / markdown-table.md
Created April 16, 2014 07:57
Table in Markdown
Country 1990 2008 2025
China 1141 1333 1458
India 849 1140 1398
USA 250 304 352
Indonesia 178 228 273
Brazil 150 192 223