This file contains 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
<apex:page standardController="Contact"> | |
<apex:pageBlock title="Account Summary"> | |
<apex:pageBlockSection> | |
First Name: {! Contact.FirstName} <br/> | |
Last Name: {! Contact.LastName} <br/> | |
Owner's Email: {! Contact.Owner.Email} <br/> | |
</apex:pageBlockSection> | |
</apex:pageBlock> | |
</apex:page> |
This file contains 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
<apex:page > | |
<apex:pageBlockSection columns="1"> | |
{! $User.FirstName} {! $User.LastName} {! $User.Username}) | |
</apex:pageBlockSection> | |
</apex:page> |
This file contains 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
<apex:page showHeader="false" title="DisplayImage" sidebar="false"> | |
<apex:form> | |
<table> | |
<tr> | |
<td width="1000px" height="600px" align="center"> | |
<apex:image url="https://developer.salesforce.com/files/salesforce-developer-network-logo.png"/> | |
</td> | |
</tr> | |
</table> | |
</apex:form> |
This file contains 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 sys | |
from PyQt5.QtWidgets import (QApplication, QDialog, QComboBox, QDoubleSpinBox, QVBoxLayout, QGridLayout, QLabel) | |
class AppDemo(QDialog): | |
def __init__(self): | |
super().__init__() | |
principalLabel = QLabel('Principal:') |
This file contains 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 sys | |
from PyQt5.QtWidgets import (QApplication, QWidget, QGridLayout, QVBoxLayout, QLabel, QToolBox, QPushButton, QTextEdit, QLineEdit) | |
from PyQt5.QtGui import QColor | |
class AppDemo(QWidget): | |
def __init__(self): | |
super().__init__() | |
self.resize(600, 400) | |
layout = QGridLayout() |
This file contains 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 numpy as np | |
import matplotlib.pyplot as plt | |
fig, ax = plt.subplots() | |
ax.set_title('Horizontal Bar graph with error mark demo') | |
ax.set_xlabel('x label title') | |
ax.set_ylabel('y label title') | |
y_vals = [10, 14, 12, 11, 13] | |
y_labels = ['y' + str(i) for i in range(5)] |
This file contains 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 pandas | |
googleSheetId = '<Google Sheets Id>' | |
worksheetName = '<Sheet Name>' | |
URL = 'https://docs.google.com/spreadsheets/d/{0}/gviz/tq?tqx=out:csv&sheet={1}'.format( | |
googleSheetId, | |
worksheetName | |
) | |
df = pandas.read_csv(URL) |
This file contains 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 numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
df = pd.read_csv('StudentsPerformance.csv') | |
subjects = ['math score', 'reading score', 'writing score'] | |
dataset = df.groupby('gender')[subjects].mean() | |
indx = np.arange(len(subjects)) | |
score_label = np.arange(0, 110, 10) |
This file contains 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 sys | |
from PyQt5.QtWidgets import (QApplication, QWidget, QPushButton) | |
from PyQt5.QtCore import QRect, QPropertyAnimation | |
class AppDemo(QWidget): | |
def __init__(self): | |
super().__init__() | |
self.baseHeight = 50 | |
self.extendedHeight = 300 | |
self.rect = QRect(600, 300, 300, self.baseHeight) |