Skip to content

Instantly share code, notes, and snippets.

View leonardyeoxl's full-sized avatar

Leonard Yeo leonardyeoxl

View GitHub Profile
Singapore Education System Duration Age Range U.S. Equivalent U.S. Duration U.S. Age Range
Junior College (JC) 2 years 17-18 Last 2 years of High School + 1st year of College/University 3 years 16-19
Polytechnic 3 years 17-19 Community College/First 2 years of College 2 years 18-20
Institute of Technical Education (ITE) Varies (2-3 years) 16-19 Vocational/Technical Schools or Community College Varies 16-19
Singapore Education System Age U.S. Education System Age
Secondary 1 (Lower Secondary) 13 7th Grade (Middle School) 12-13
Secondary 2 (Lower Secondary) 14 8th Grade (Middle School) 13-14
Secondary 3 (Upper Secondary) 15 9th Grade (High School) 14-15
Secondary 4 (Upper Secondary) 16 10th Grade (High School) 15-16
Secondary 5 (Upper Secondary)* 17 11th Grade (High School) 16-17
Singapore Education System Age U.S. Education System Age
Primary 1 7 1st Grade 6-7
Primary 2 8 2nd Grade 7-8
Primary 3 9 3rd Grade 8-9
Primary 4 10 4th Grade 9-10
Primary 5 11 5th Grade 10-11
Primary 6 12 6th Grade 11-12
class ConcreteBuilderNLPDPMobile(nlpdp_builder.NLPDPMobileBuilder):
def __init__(self):
self.reset()
def reset(self):
self._details_page = NLPDPMobile()
def section_struct(self, isFoldable, rows):
return dict(foldable=isFoldable,rows=rows)
class NLPDPMobile():
def __init__(self):
self.sections = []
def add(self, section):
self.sections.append(section)
def gen_sections(self):
return self.sections
from abc import ABCMeta, abstractmethod
class NLPDPMobileBuilder():
__metaclass__ = ABCMeta
@property
@abstractmethod
def details_page(self):
pass
@abstractmethod
class SectionFormat(object):
V2_MOBILE_STS = [
{
"foldable": False,
"rows": [
Gallery,
ProjectPriceRange,
UniqueHighlights,
ProjectDetails,
Facilities,
class ConcreteBuilderNLPDPWeb(nlpdp_web_builder.NLPDPWebBuilder):
def __init__(self):
self.reset()
def reset(self):
self._details_page = NLPDPWeb()
def row_struct(self, navigation_title, type):
return dict(navigation_title=navigation_title, type=type)
class NLPDPWeb():
def __init__(self):
self.sts = []
def add(self, s):
self.sts.append(s)
def gen_sections(self):
return self.sts
from abc import ABCMeta, abstractmethod
class NLPDPWebBuilder():
__metaclass__ = ABCMeta
@property
@abstractmethod
def details_page(self):
pass
@abstractmethod