- Write a detailed README with contact info, info about the workshop itself, license etc
- Create a folder for each lesson so folks won’t have to struggle with switching git branches every 15 minutes
- Give everyone a minute to process what they’ve learned and to figure out whether they have questions
- Reference the docs so once the workshop concludes everyone knows where to find the resources to refresh what they’ve learned
- As with egghead lessons, guide their eyes - if you’re explaining something, then select it in your IDE (at least hover over it)
- Take a minute to go over the questions from the chat, read the question out loud
- Don’t be afraid to experiment when there’s an interesting question, we’re all nerds here who love to try out new stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Post @model | |
@auth(rules: [ | |
# Owner can create, update, delete | |
{ allow: owner }, | |
# Authorize group-based access control | |
{ allow: groups, groups: ["Admin"] } | |
]) { | |
id: ID! | |
title: String! | |
content: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Basic example of routerless store based routing. | |
* To understand what is going on check out | |
* https://svelte.dev/tutorial/writable-stores | |
* https://www.npmjs.com/package/feather-route-matcher | |
*/ | |
// stores.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($, window, undefined) { | |
var InfiniteScroll = function() { | |
this.initialize = function() { | |
this.setupEvents(); | |
}; | |
this.setupEvents = function() { | |
$(window).on( | |
'scroll', | |
this.handleScroll.bind(this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webpack = require('webpack'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const config = require('sapper/webpack/config.js'); | |
const { svelteMinifyHtml, sveltePostcss } = require('./utils.js'); | |
const mode = process.env.NODE_ENV; | |
const isDev = mode === 'development'; | |
module.exports = { | |
entry: config.client.entry(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (typeof window!=='undefined' && navigator.serviceWorker && navigator.serviceWorker.controller) { | |
let reloadOnNext = false; | |
let pushState = history.pushState; | |
history.pushState = function(state, title, url) { | |
pushState.call(this, state, title, url); | |
if (reloadOnNext===true) location.reload(true); | |
}; | |
navigator.serviceWorker.controller.addEventListener('statechange', e => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { h, Component } from 'preact'; | |
import { Router } from 'preact-router'; | |
import Header from './header'; | |
import Home from '../routes/home'; | |
import Profile from '../routes/profile'; | |
import NotifyChange from "./NotifyChange/index"; | |
// import Home from 'async!../routes/home'; | |
// import Profile from 'async!../routes/profile'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<label> | |
<input type='checkbox' bind:checked='visible'> visible | |
</label> | |
{{#if visible}} | |
<div transition:scale></div> | |
{{/if}} | |
<style> | |
div { |
NewerOlder