Skip to content

Instantly share code, notes, and snippets.

View UnitedWithCode's full-sized avatar
🎯
Focusing

Prateek Sharma UnitedWithCode

🎯
Focusing
View GitHub Profile
{
guestFunctions: [
'erpnext.www.book_appointment.verify.index.get_context(context)',
'erpnext.www.book_appointment.index.get_appointment_settings()',
'erpnext.www.book_appointment.index.get_timezones()',
'erpnext.www.book_appointment.index.get_appointment_slots(date, timezone)',
'erpnext.www.book_appointment.index.create_appointment(date, time, tz, contact)',
'erpnext.templates.utils.send_message(subject="Website Query", message="", sender="", status="Open")',
'erpnext.templates.pages.product_search.get_product_list(search=None, start=0, limit=12)',
'erpnext.templates.pages.integrations.gocardless_confirmation.confirm_payment(redirect_flow_id, reference_doctype, reference_docname)',
@UnitedWithCode
UnitedWithCode / Google-Sheet-Form-Post.md
Created October 25, 2021 07:44 — forked from willpatera/Google-Sheet-Form-Post.md
Post to google spreadsheet from html form

Overview

This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey

Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.

Run example

You should be able to just open index.html in your browser and test locally.

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@UnitedWithCode
UnitedWithCode / exportSpreadsheet.gs
Created January 3, 2022 12:11 — forked from Spencer-Easton/exportSpreadsheet.gs
Example on how to export a Google sheet to various formats, includes most PDF options
function exportSpreadsheet() {
//All requests must include id in the path and a format parameter
//https://docs.google.com/spreadsheets/d/{SpreadsheetId}/export
//FORMATS WITH NO ADDITIONAL OPTIONS
//format=xlsx //excel
//format=ods //Open Document Spreadsheet
//format=zip //html zipped
@UnitedWithCode
UnitedWithCode / README.md
Created January 3, 2022 12:17 — forked from brainysmurf/README.md
Things one can get used to for the V8 Google Apps Scripts engine

Things one can get used to for the V8 Google Apps Scripts engine

A bit of a monologue about various syntax changes and adjustments in learning and using the tool.

Logging is slooooooow

I know. Everyone knows.

That's why I wrote a library that writes to a spreadsheet instead. Ever since I started using it I'm far more productive. I don't know how people are still putting with that god-awful lagging logger.

@UnitedWithCode
UnitedWithCode / variousCountryListFormats.js
Created January 3, 2022 15:18 — forked from incredimike/variousCountryListFormats.js
List of Countries in various Javascript data structures: Alphabetical country lists & Country data objects.
// Lists of countries with ISO 3166 codes, presented in various formats.
// Last Updated: July 30, 2020
// If you're using PHP, I suggest checking out:
// https://github.com/thephpleague/iso3166
// or Laravel: https://github.com/squirephp/squire
//
// JS developers can check out:
// https://www.npmjs.com/package/iso3166-2-db
//
@UnitedWithCode
UnitedWithCode / node-folder-structure-options.md
Created January 3, 2022 15:18 — forked from lancejpollard/node-folder-structure-options.md
What is your folder-structure preference for a large-scale Node.js project?

What is your folder-structure preference for a large-scale Node.js project?

0: Starting from Rails

This is the reference point. All the other options are based off this.

|-- app
|   |-- controllers
|   |   |-- admin
@UnitedWithCode
UnitedWithCode / ephemeral-file-sharing-services.md
Created January 3, 2022 15:19 — forked from Prajjwal/ephemeral-file-sharing-services.md
A List of Ephemeral File Sharing Services

A List of Ephemeral File Sharing Services

Contributions welcome.

~ Prajjwal Singh

Service CLI? Max Size Direct Access Files Expire? Can Limit Download Count? Password Protection HTTPS
c-v.sh curl -F 4 GB Yes Yes, by Mister Alg. No No Enforced
FileIO Yes 5 GB Yes Optionally Fixed @ 1 No Yes
@UnitedWithCode
UnitedWithCode / nginx.conf
Created January 3, 2022 15:19 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx