frappe.ui.form.on("Meeting", {
refresh(frm) {
// from frontend
// frm.fields_dict.time_zone.set_data(getSupportedTimzones());
// from backend
frm.call("get_supported_timezones").then(({message: timezones}) => {
frm.fields_dict.time_zone.set_data(timezones);
})
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"upcoming_events": [ | |
{ | |
"name": 1, | |
"title": "Frappeverse India 2025", | |
"venue": "Nehru Centre Auditorium", | |
"start_date": "2025-09-09", | |
"banner_image": "/files/fv_banner.webp", | |
"banner_url": "url(/files/fv_banner.webp)", | |
"start_day": "09", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event_time_range": "09:00 AM - 07:00 PM", | |
"event_date_range": "9 - 12 September, 2025", | |
"event_doc": { | |
"name": 1, | |
"owner": "[email protected]", | |
"creation": "2025-08-02 12:12:15.145300", | |
"modified": "2025-08-04 17:24:46.012044", | |
"modified_by": "[email protected]", | |
"docstatus": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
num_teams = 3 | |
students = [ | |
"Aman", | |
"Manya", | |
"Ritika", | |
"Siddharth", | |
"Khushbu", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x-custom-image: &custom_image | |
image: ${IMAGE_NAME:-docker.io/frappe/erpnext}:${VERSION:-version-15} | |
pull_policy: ${PULL_POLICY:-always} | |
deploy: | |
restart_policy: | |
condition: always | |
services: | |
backend: | |
<<: *custom_image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# documentation: https://docs.frappe.io/learning | |
# slogan: Easy to Use, 100% Open Source Learning Management System. | |
# tags: lms, self-hosted, dashboard | |
# logo: svgs/frappe-learning.svg | |
# port: 8080 | |
name: frappe-learning | |
version: '3.8' | |
x-frappe-app-image: &frappe-app-image ghcr.io/frappe/lms:stable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
old_wiki_site = "https://frappeframework.com" | |
new_wiki_space_name = "1u8fslkdg6" # on this site | |
old_site_wiki_space_name = "Unversioned docs" # on old site | |
migration_settings = frappe.get_doc("Temp Wiki Migration") | |
api_credentials = { | |
"key": migration_settings.api_key, | |
"secret": migration_settings.get_password("api_secret") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open bench folder in VS Code | |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Bench", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mysql.connector | |
con = mysql.connector.connect( | |
host="localhost", | |
user="root", | |
passwd="1234", | |
database="tdb" | |
) | |
cursor = con.cursor() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create Customer table | |
CREATE TABLE Customer ( | |
ID INT PRIMARY KEY, | |
first_name VARCHAR(50), | |
last_name VARCHAR(50), | |
PAN VARCHAR(10), | |
DOB DATE | |
); | |
-- Create Branch table |
NewerOlder