Skip to content

Instantly share code, notes, and snippets.

@rowellx68
rowellx68 / ItemsPagination.tsx
Last active December 7, 2023 10:05
A re-implementation of the GOV.UK pagination component in React with NHS.UK colours.
import { NumberedPagination } from '@/components/NumberedPagination'
type ItemsPaginationProps = {
totalItems: number
itemsPerPage: number
currentPage: number
}
export const ItemsPagination: React.FC<ItemsPaginationProps> = ({
totalItems,
@{
ViewData["Title"] = "Home Page";
}
<div aurelia-app="main">Loading...</div>
@section scripts {
<environment names="Development">
<script type="text/javascript" asp-src-include="~/dist/vendor.*.js" asp-append-version="true"></script>
<script type="text/javascript" src="~/dist/app.bundle.js" asp-append-version="true"></script>
import { inject, bindable } from "aurelia-framework";
@inject(Element)
export class RedCustomAttribute {
constructor(element) {
}
@bindable value;
@rowellx68
rowellx68 / post_build.ps1
Created September 12, 2016 14:14
Post-build event for Web project so no reference to EF in the project.
del $(SolutionDir)$(ProjectName)\bin\EntityFramework.SqlServer.dll
copy $(SolutionDir)$(SolutionName).DAL\bin\$(ConfigurationName)\EntityFramework.SqlServer.dll $(SolutionDir)$(ProjectName)\bin\EntityFramework.SqlServer.dll
{
"stopName": "Meadowhall Intc",
"stopCode": 37010200,
"time": 1460758019045,
"services": [
{
"service": "3",
"destination": "Nether Edge",
"departure": "23:10",
"lowFloor": false
var path = require('path');
var webpack = require('webpack');
var AssetsPlugin = require('assets-webpack-plugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
devtool: 'source-map',
entry: {
main: [
'webpack/hot/only-dev-server',