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
# Sample workflow for building and deploying a Next.js site to GitHub Pages | |
# | |
# To get started with Next.js see: https://nextjs.org/docs/getting-started | |
# | |
name: Deploy Next.js site to Pages | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ["main"] |
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
{ | |
"printWidth": 132, | |
"tabWidth": 2, | |
"useTabs": false, | |
"semi": true, | |
"singleQuote": true, | |
"jsxSingleQuote": false, | |
"trailingComma": "none", | |
"bracketSpacing": true, | |
"arrowParens": "avoid", |
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
let instance: Pointer; | |
/** | |
* Tracks the pointer in WebGL | |
*/ | |
export default class Pointer { | |
/** | |
* Current coordinates | |
* @return {x: number, y: number} The current pointer coordinates. | |
*/ |
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
$columns: ( | |
xs: 2, | |
s: 2, | |
m: 8, | |
l: 12, | |
xl: 12, | |
); | |
$gutters: ( | |
xs:20px, | |
s: 20px, |
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
{ | |
"eslint.run": "onSave", | |
"eslint.format.enable": true, | |
"eslint.validate": [ | |
"javascript", | |
"javascriptreact", | |
"typescript", | |
"typescriptreact" | |
], |
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
// stylelint-disable declaration-no-important | |
@use "sass:string"; | |
// Settings | |
@use "scss-core/settings/vars"; | |
// Use the built-in generator below to generate simple utility class and placeholder pairs | |
// | |
// An example utility: |
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
<!-- Define a hashmap --> | |
<ol class="app-task-list"> | |
<th:block th:with="tasks=${ {{enabled: false, url: '', taskState: 'COMPLETED', titleCode: 'taskList.pre.section.checkEligibility'}} }"> | |
<th:block th:replace="~{ fragments/task-list :: task-list-group(${tasks}, #{taskList.pre.section.title}, 1)}" /> | |
</th:block> | |
<th:block th:replace="~{ fragments/task-list :: task-list-group(${tasks}, #{taskList.application.section.title}, 2)}" /> | |
<th:block th:replace="~{ fragments/task-list :: task-list-group(${tasks}, #{taskList.apply.section.title}, 3)}" /> |
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
{# Conditionally render inline CSS class #} | |
<div class="govuk-grid-row {{ 'govuk-!-margin-top-9' if not(showBackButton) else 'govuk-!-margin-top-3' }}"> |
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
var CALENDAR_ID = 'XXX'; | |
var CRUNCH_TEMPLATE_ID = 'XXX'; | |
var CRUNCH_FOLDER_ID = 'XXX'; | |
var NA = 'N/A'; | |
var INVALID_DATE = 'Invalid Date'; | |
var CALENDAR = CalendarApp.getCalendarById(CALENDAR_ID); | |
/* Populate custom menu */ | |
function onOpen() { | |
var spreadsheet = SpreadsheetApp.getActive(); |
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
/* | |
Example usage: | |
<span class="moment" data-moment="add 12 days"></span> | |
*/ | |
'use strict' | |
import moment from 'moment' | |
/* TimeTravel */ |
NewerOlder