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)',
# Freelancing Reviews Samples
=======================================================================
****
=======================================================================
## Buyer Reviews to Sellers
=======================================================================
@UnitedWithCode
UnitedWithCode / appsscript.json
Created September 25, 2021 07:55
Google Data Studio Connector: Toronto City Council Attendance
{
"timeZone": "America/Toronto",
"dependencies": {},
"dataStudio": {
"name": "Toronto City Council Attendance",
"logoUrl": "https://i.imgur.com/e9wE7Md.png",
"company": "Petro Podrezo",
"companyUrl": "https://toronto.ca/",
"addonUrl": "https://toronto.ca/",
"supportUrl": "https://toronto.ca/",
@UnitedWithCode
UnitedWithCode / Common-Currency.json
Created August 10, 2021 12:10 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@UnitedWithCode
UnitedWithCode / AppStyles.js
Created August 6, 2021 12:20 — forked from adrianhajdin/AppStyles.js
Video Chat Styles
const useStyles = makeStyles((theme) => ({
appBar: {
borderRadius: 15,
margin: '30px 100px',
display: 'flex',
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
width: '600px',
border: '2px solid black',
---
version: "2.1"
services:
projectsend:
image: linuxserver/projectsend
container_name: projectsend
environment:
- PUID=998
- PGID=100
- TZ=America/Denver
@UnitedWithCode
UnitedWithCode / upload.js
Created July 8, 2021 18:16 — forked from virolea/upload.js
Tracking file upload progress using axios
upload(files) {
const config = {
onUploadProgress: function(progressEvent) {
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)
console.log(percentCompleted)
}
}
let data = new FormData()
data.append('file', files[0])
@UnitedWithCode
UnitedWithCode / StitchingSheets.js
Created June 30, 2021 06:07 — forked from mrlynn/StitchingSheets.js
Google Sheets Script - Complete Script for Article Stitching Sheets
/****
* Michael Lynn - http://blog.mlynn.org
* Stitching Sheets - Integrating Google Sheets with MongoDB Using MongoDB Stitch
****/
// Create an object which contains keys for each column in the spreadsheet
var columns = { // 0 indexed
type: 2,
date_start: 3,
date_end: 4,
@UnitedWithCode
UnitedWithCode / download-file.js
Created June 29, 2021 02:58 — forked from javilobo8/download-file.js
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);