A centralized API for dispatching notifications through Snackbars and Banners.
Triggers a Snackbar that is displayed to the user.
| import { Component } from '@angular/core'; | |
| import { Router, NavigationStart, Event as NavigationEvent } from '@angular/router'; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] | |
| }) | |
| export class AppComponent { | |
| constructor( |
| import React, { useEffect, useRef } from "react"; | |
| // import { BrowserRouter, Route, Switch, Redirect } from "react-router-dom"; | |
| // import PeoplePage from "./people-page/people-page.component.js"; | |
| export default function Root(props) { | |
| const iframeRef = useRef() | |
| useEffect(() => { | |
| setTimeout(() => { | |
| iframeRef.current.contentWindow.postMessage( | |
| { source: 'quicksilver', pathname: window.location.pathname.replace('/people/', '') }, |
| const alwaysClasses = 'px-4 rounded' | |
| const primaryAlways = `text-white` | |
| const secondaryAlways = `bg-transparent border` | |
| const buttonMachine = Machine( | |
| { | |
| id: 'button', | |
| initial: 'active', | |
| on: { | |
| CHOOSE_BTN_TYPE: { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width" /> | |
| <title></title> | |
| <script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/system.js'></script> | |
| <script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/extras/amd.js'></script> | |
| <script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/extras/named-exports.js'></script> | |
| <script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/extras/named-register.js'></script> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width" /> | |
| <title></title> | |
| <script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/system.js'></script> | |
| <script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/extras/amd.js'></script> | |
| <script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/extras/named-exports.js'></script> | |
| <script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/extras/named-register.js'></script> |
vim: https://github.com/dckesler/vimconfig https://vimcolors.com/467/deep-space/dark https://github.com/tonsky/FiraCode
mac: maybe I'll add some stuff here later
Ubuntu: remaping keys: https://askubuntu.com/questions/177824/remapping-caps-lock-to-control-and-escape-not-the-usual-way - https://github.com/alols/xcape
I hereby claim:
To claim this, I am signing this object:
| var data =[45, 10]; | |
| init(); | |
| //creating the svg so I can draw objects on it | |
| var svg = d3.select("body").append("svg") | |
| .attr("width", 500) | |
| .attr("height", 5000); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Nested Data example </title> | |
| </head> | |
| <body> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script> | |
| <script src="nested.js"></script> |