Skip to content

Instantly share code, notes, and snippets.

View davidsmith2's full-sized avatar

David Smith davidsmith2

View GitHub Profile
@davidsmith2
davidsmith2 / input.scss
Created June 20, 2022 01:32
Generated by SassMeister.com.
$opacity: (
0: 0,
25: 25,
50: 50
);
.opacity-0 {
opacity: map-get($opacity, 0);
}
@davidsmith2
davidsmith2 / input.scss
Created June 19, 2022 20:38
Generated by SassMeister.com.
$opacity: (
0: 0,
25: 25,
50: 50
);
.opacity-0 {
opacity: map-get($opacity, 0);
}
@davidsmith2
davidsmith2 / machine.js
Last active September 10, 2021 01:08
Generated by XState Viz: https://xstate.js.org/viz
const logEvent = (context, event) => console.log(event);
const stepsStates = {
initial: 'application',
type: 'parallel',
states: {
application: {
initial: 'creatingDesignation',
states: {
creatingDesignation: {
@davidsmith2
davidsmith2 / machine.js
Last active September 3, 2021 10:36
Generated by XState Viz: https://xstate.js.org/viz
const logEvent = (context, event) => console.log(event);
const rsaStates = {
initial: 'creating',
states: {
creating: {
entry: ['toggleToolSelectability'],
on: {
VIEW: {
target: 'confirming',
@davidsmith2
davidsmith2 / machine.js
Last active September 3, 2021 05:56
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@davidsmith2
davidsmith2 / machine.js
Last active September 3, 2021 05:03
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@davidsmith2
davidsmith2 / machine.js
Last active September 3, 2021 04:44
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@davidsmith2
davidsmith2 / index.html
Created December 31, 2016 21:50
Routing: Marionette
<div id="marionette"></div>
<div id="react"></div>
@davidsmith2
davidsmith2 / less-panel-group.html
Created October 16, 2014 05:43
LESS Bootstrap panels
<!doctype html>
<html>
<head>
<title>Mod</title>
<link rel="stylesheet" type="text/css" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="mod.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.1.js"></script>
<script type="text/javascript" src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
@davidsmith2
davidsmith2 / less-panel-group.less
Created October 16, 2014 05:37
LESS Bootstrap panels
.panel-info-bf (@bgColor, @textColor, @linkColor) {
background-color: @bgColor;
>.panel-heading {
>.panel-title {
font-size: 24px;
>a {
color: @linkColor;
}
}
}