Skip to content

Instantly share code, notes, and snippets.

View DataSolveProblems's full-sized avatar
💭
Github Working In Progress

Jie Jenn DataSolveProblems

💭
Github Working In Progress
View GitHub Profile
<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>
<apex:page >
<apex:pageBlockSection columns="1">
{! $User.FirstName} {! $User.LastName} {! $User.Username})
</apex:pageBlockSection>
</apex:page>
<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>
import sys
from PyQt5.QtWidgets import (QApplication, QDialog, QComboBox, QDoubleSpinBox, QVBoxLayout, QGridLayout, QLabel)
class AppDemo(QDialog):
def __init__(self):
super().__init__()
principalLabel = QLabel('Principal:')
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()
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)]
import sys
from pprint import pprint as pp
from PyQt5.QtWidgets import QWidget, QGridLayout, QPushButton, QSizePolicy, QApplication
from PyQt5.QtGui import QFont
class GridDemo(QWidget):
def __init__(self):
super().__init__()
global positions, value, position, values
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)
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)
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)