Skip to content

Commit

Permalink
Initial slides for Rust Linz Jan 2024 talk.
Browse files Browse the repository at this point in the history
  • Loading branch information
massimiliano-mantione committed Jan 24, 2024
1 parent b7f490d commit b8c3a28
Show file tree
Hide file tree
Showing 48 changed files with 25,471 additions and 0 deletions.
27 changes: 27 additions & 0 deletions RustLinz2024-OO/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"presets": [
[ "es2015", { "loose": true, "modules" : false } ],
"stage-0",
"react"
],
"plugins": [
"transform-decorators-legacy",
],
"env": {
"production": {
"plugins": [
"transform-es2015-modules-commonjs",
"transform-react-remove-prop-types",
"transform-react-constant-elements",
"transform-react-inline-elements",
"transform-runtime",
"transform-decorators-legacy",
],
},
"test": {
"plugins": [
"transform-es2015-modules-commonjs"
]
}
}
}
22 changes: 22 additions & 0 deletions RustLinz2024-OO/.eslint-yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
"extends":
- "formidable/configurations/es6-react"
- "standard"

"rules":
"indent": [2, 2, {"SwitchCase": 1}]
"max-len": 0
"no-magic-numbers": 0
"react/prefer-es6-class": 0
"react/no-multi-comp": 0

"env":
"browser": true,
"node": true
"globals":
"afterEach": true,
"describe": true,
"expect": true,
"it": true,
"jest": true,
"test": true
1 change: 1 addition & 0 deletions RustLinz2024-OO/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
9 changes: 9 additions & 0 deletions RustLinz2024-OO/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": [
"formidable/configurations/es6-react",
"standard"
],
"rules": {
"react/no-multi-comp": "off"
}
}
4 changes: 4 additions & 0 deletions RustLinz2024-OO/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
node_modules
npm-debug.log
.vscode
20 changes: 20 additions & 0 deletions RustLinz2024-OO/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2013

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions RustLinz2024-OO/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
JsDay 2017 talk
Binary file added RustLinz2024-OO/assets/Monserrat-Bold.ttf
Binary file not shown.
Binary file added RustLinz2024-OO/assets/Monserrat-Regular.ttf
Binary file not shown.
12 changes: 12 additions & 0 deletions RustLinz2024-OO/assets/Montserrat.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
src: local('Montserrat Regular'), local('Montserrat-Regular'), url(Monserrat-Regular.ttf) format('truetype');
}
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 700;
src: local('Montserrat Bold'), local('Montserrat-Bold'), url(Monserrat-Bold.ttf) format('truetype');
}
Binary file added RustLinz2024-OO/assets/alan-kay.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RustLinz2024-OO/assets/assets/Monserrat-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file added RustLinz2024-OO/assets/city.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions RustLinz2024-OO/assets/deck.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
return (
<Deck transition={['zoom','slide']} transitionDuration={800}>
<Slide bgColor="primary">
<Heading size={1} fit caps>
React Presentations
</Heading>
<Heading size={2} fit caps>
Written In React
</Heading>
</Slide>
<Slide bgColor="black">
<Heading size={1} fit textColor="primary" textFont="secondary">
Wait What?
</Heading>
</Slide>
<Slide bgColor="primary" textColor="black" align="center top">
<Heading size={1} textColor="black" textFont="primary">
Thats right
</Heading>
<List>
<ListItem>Inline style based theme system</ListItem>
<ListItem>Autofit Text</ListItem>
<ListItem>react-router navigation</ListItem>
<ListItem>PDF Export</ListItem>
</List>
</Slide>
</Deck>
)
72 changes: 72 additions & 0 deletions RustLinz2024-OO/assets/formidable-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions RustLinz2024-OO/assets/interactive.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import React, { Component } from "react";
import { Heading } from "spectacle";

export default class Interactive extends Component {
constructor() {
super();
this.state = {
count: 0
};
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
this.setState({
count: this.state.count + 1
});
}
render() {
const styles = {
padding: 20,
background: "black",
minWidth: 300,
marginTop: 20,
textTransform: "uppercase",
border: "none",
color: "white",
outline: "none",
fontWeight: "bold",
fontSize: "2em"
};
return (
<div>
{this.state.count < 5 ?
<div>
<Heading fit size={5} textColor="black">
The button has been clicked {this.state.count} times
</Heading>
<button style={styles} type="button" onClick={this.handleClick}>Click Me</button>
</div> :
<Heading size={5} fit caps textColor="black">Easy there pal</Heading>
}
</div>
);
}
}
Binary file added RustLinz2024-OO/assets/joe-armstrong.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RustLinz2024-OO/assets/jsday-2017-oo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RustLinz2024-OO/assets/jsday.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RustLinz2024-OO/assets/kat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RustLinz2024-OO/assets/markdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RustLinz2024-OO/assets/michael-feathers.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added RustLinz2024-OO/assets/michael-feathers.webp
Binary file not shown.
1 change: 1 addition & 0 deletions RustLinz2024-OO/assets/prism-jsx.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

120 changes: 120 additions & 0 deletions RustLinz2024-OO/assets/prism-tomorrow.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/**
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/chriskempson/tomorrow-theme
* @author Rose Pritchard
*/

code[class*="language-"],
pre[class*="language-"] {
color: #ccc;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
direction: ltr;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;

-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;

-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;

}

/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #2d2d2d;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
}

.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #999;
}

.token.punctuation {
color: #ccc;
}

.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color: #e2777a;
}

.token.function-name {
color: #6196cc;
}

.token.boolean,
.token.number,
.token.function {
color: #f08d49;
}

.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: #f8c555;
}

.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
color: #cc99cd;
}

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
color: #7ec699;
}

.token.operator,
.token.entity,
.token.url {
color: #67cdcc;
}

.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}

.token.entity {
cursor: help;
}

.token.inserted {
color: green;
}
Loading

0 comments on commit b8c3a28

Please sign in to comment.