Skip to content

Instantly share code, notes, and snippets.

View MatthewNichols's full-sized avatar

Matthew Nichols MatthewNichols

View GitHub Profile
@MatthewNichols
MatthewNichols / index.html
Last active May 23, 2020 08:23
vue-transitions
<div id="app">
<button @click="showDialog">Show Dialog</button>
<!-- transition block sets up to apply classes when the nested v-if changes state -->
<transition name="dialog">
<div v-if="dialogShowing" class="dialog">
<div class="dialog-header">
<div class="dialog-title">A Dialog</div>
<button class="icon-button" @click="hideDialog">
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"initialCols": 120,
"initialRows": 30,
@MatthewNichols
MatthewNichols / demo.coffee
Created March 2, 2012 16:28
Tree diagram with CoffeeScript and RaphaelJs
$ ->
data =
name: "Bob's Car Sales"
identifier: 1
selected: false
childrenOpen: true
children: [
{
name: "Bob's Car Parts"
identifier: 2