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
// Game of Life | |
int sx, sy; | |
float density = 0.2; | |
int lifeSqureWidth = 3; | |
int[][][] world; | |
void populate() { | |
for (int i = 0; i < sx * sy * density; i++) { |
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
.label | |
display inline | |
padding .2em .6em .3em | |
font-size 75% | |
font-weight bold | |
line-height 1 | |
color label-color | |
text-align center | |
white-space nowrap | |
vertical-align baseline |
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
@require 'label' | |
@require 'OrgWideTypography' | |
.MyComponent__Label | |
@extend .label | |
.MyFeatureLayout | |
@extend $OrgMarketingLayout | |
.header |
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
const StyleSheetServer = { | |
async renderStatic(appRenderFunc) { | |
reset(); | |
startBuffering(); | |
const result = await appRenderFunc(); | |
const cssContent = flushToString(); | |
return { | |
result, | |
css: { |
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
// Font size definitions | |
$font-size-smaller = 1rem | |
$font-size-small = 2rem | |
$font-size-base = 3rem | |
// Global font styles |
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
@require 'font-size' | |
.page__title | |
font-size $font-size-base | |
.page__content | |
font-size $font-size-small | |
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
const UspsCodesToStateName = { | |
'AL' : 'Alabama', | |
'AK' : 'Alaska', | |
'AZ' : 'Arizona', | |
'AR' : 'Arkansas', | |
'CA' : 'California', | |
'CO' : 'Colorado', | |
'CT' : 'Connecticut', | |
'DE' : 'Delaware', | |
'DC' : 'District of Columbia', |
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
@h1-size: 36px; | |
@h2-size: 24px; | |
@h3-size: 18px; | |
@grey: #212121; | |
@lightgrey: #616161; | |
.h1 { | |
color: @grey; | |
font-size: @h1-size; | |
} |
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 "./page"; | |
@import "./font-sizes"; | |
.page2_title { | |
&:extend(.page_title); | |
} | |
.log_out_cta { | |
&:extend(.copy); | |
} |
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 "./font-sizes"; | |
.page_title { | |
&:extend(.h1); | |
} | |
.page_cta { | |
&:extend(.h3); | |
} |
OlderNewer