Skip to content

Instantly share code, notes, and snippets.

@davidlav
davidlav / index.html
Created August 19, 2020 21:54
Aurelia Basics
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<base href="/">
</head>
<!--
Dumber gist uses dumber bundler, the default bundle file
@davidlav
davidlav / machine.js
Created April 10, 2020 18:29
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@davidlav
davidlav / machine.js
Last active February 6, 2020 18:20
Generated by XState Viz: https://xstate.js.org/viz
Machine({
id: 'registrationStateMachine',
initial: 'newRegistrationForm',
context: {
isApprovedBySponsor: false,
isApprovedBySysops: false,
isCertified: false,
registrationCancellationReason: '',
},
states: {
@davidlav
davidlav / machine.js
Last active February 3, 2020 16:49
Generated by XState Viz: https://xstate.js.org/viz
Machine({
id: 'exampleMachine',
initial: 'start',
context: {
approved: false,
},
states: {
start: {
on: {
SUBMITTED: 'stepOne'
@davidlav
davidlav / machine.js
Last active January 31, 2020 22:58
Generated by XState Viz: https://xstate.js.org/viz
Machine({
id: 'registrationStateMachine',
initial: 'newRegistrationForm',
context: {
certified: false,
},
states: {
newRegistrationForm: {
on: {
REGISTRATION_FORM_SUBMITTED: {
This file has been truncated, but you can view the full file.
{
"name": "All",
"children": [
{
"name": "AllVehicles",
"children": [
{
"name": "Land",
"children": [
{
{
"name": "All",
"children": [
{
"name": "MGunCore",
"children": [
{
"name": "MGun",
"children": [
{
import {autoinject} from 'aurelia-dependency-injection';
import {Project, ProjectItem, CLIOptions, UI} from 'aurelia-cli';
import * as path from 'path';
@autoinject()
export default class StyledComponentGenerator {
constructor(private project: Project, private options: CLIOptions, private ui: UI) { }
execute() {
return this.ui
@davidlav
davidlav / app.html
Last active January 21, 2017 04:00
Aurelia Custom Element with List Repeater
<template>
<require from='./list.html'></require>
<list title="${title}" list="${arr}"></list>
</template>
@davidlav
davidlav / app.html
Last active December 12, 2016 23:27
Aurelia Troubleshooting Element Dimesions
<template>
<style>
html {
box-sizing:border-box;
}
*, *::before, *::after {
box-sizing: inherit;
}
body {