├── AdamBernot-7Jobs1Year
├── 7Jobs1Year-slides.pdf
└── README.md
├── BenjiVesterby-SecureCodingInGo
└── README.md
├── DoniaChaiehloudj-TinyGo-UpperHen
└── README.md
├── DylanBourque-KrakenWranglingForDummies
├── README.md
└── slides.pdf
├── JeremyBrown-ParsingWithoutCodeGenerators
└── README.md
├── JesúsEspino-HelloWorldFromTheCodeToTheScreen
├── Hello World, from the code to the screen.pdf
└── README.md
├── JordanNeufeld-ExploringNetworkProgrammingByBuildingAToxiproxyClone
├── README.md
└── slides.pdf
├── JuanBrandao-GoTheDataEngineersMissingTool
├── README.md
└── slides.pdf
├── KatieHockman-FuzzTestingMadeEasy
├── FuzzTestingMadeEasy-slices.pdf
└── README.md
├── KyleConroy-PluginSystemWebAssembly
├── README.md
└── slides.pdf
├── MadhavJivrajani-GCPacerDeepDive
├── README.md
└── pacer_deep_dive_20221012.pdf
├── PatricioWhittingslow-AerospaceGo
└── README.md
├── README.md
├── RebeccaBilbro-HowtoBuildaDistributedSystem
├── README.md
└── slides.pdf
├── RobertBurke-HowApacheBeamMakesYourDataProcessingGo
├── MakeYourDataProcessingGo-slides.pdf
└── README.md
├── SamanthaCoyle-AJourneyThroughIntegrationTestingWithGo-WhatCouldGoWrong?
├── README.md
└── SamanthaCoyleGopherCon22.pdf
├── TakeshiYoneda-CGOlessForeignFunctionInterfaceWithWasm
├── README.md
└── slides.pdf
├── TomLyons-HowIWriteHTTPClientsAfter(almost)7Years
└── README.md
├── YolanRomailler-101Randomness
├── GopherConUSA_2022_Randomness_101_Yolan_Romailler.pdf
└── README.md
├── ZachMusgrave-PerformanceHighThroughputSQLDatabase
├── README.md
└── slides.pdf
└── vladimirvivien-RealtimeVideoCaptureLinux
├── LICENSE
├── README.md
├── css
├── layout.scss
├── print
│ ├── paper.scss
│ └── pdf.scss
├── reveal.scss
└── theme
│ ├── README.md
│ ├── source
│ ├── beige.scss
│ ├── black.scss
│ ├── blood.scss
│ ├── league.scss
│ ├── moon.scss
│ ├── night.scss
│ ├── serif.scss
│ ├── simple.scss
│ ├── sky.scss
│ ├── solarized.scss
│ └── white.scss
│ └── template
│ ├── exposer.scss
│ ├── mixins.scss
│ ├── settings.scss
│ └── theme.scss
├── dist
├── reset.css
├── reveal.css
├── reveal.esm.js
├── reveal.esm.js.map
├── reveal.js
├── reveal.js.map
└── theme
│ ├── beige.css
│ ├── black.css
│ ├── blood.css
│ ├── fonts
│ ├── league-gothic
│ │ ├── LICENSE
│ │ ├── league-gothic.css
│ │ ├── league-gothic.eot
│ │ ├── league-gothic.ttf
│ │ └── league-gothic.woff
│ └── source-sans-pro
│ │ ├── LICENSE
│ │ ├── source-sans-pro-italic.eot
│ │ ├── source-sans-pro-italic.ttf
│ │ ├── source-sans-pro-italic.woff
│ │ ├── source-sans-pro-regular.eot
│ │ ├── source-sans-pro-regular.ttf
│ │ ├── source-sans-pro-regular.woff
│ │ ├── source-sans-pro-semibold.eot
│ │ ├── source-sans-pro-semibold.ttf
│ │ ├── source-sans-pro-semibold.woff
│ │ ├── source-sans-pro-semibolditalic.eot
│ │ ├── source-sans-pro-semibolditalic.ttf
│ │ ├── source-sans-pro-semibolditalic.woff
│ │ └── source-sans-pro.css
│ ├── league.css
│ ├── moon.css
│ ├── night.css
│ ├── serif.css
│ ├── simple.css
│ ├── sky.css
│ ├── solarized.css
│ └── white.css
├── gulpfile.js
├── img
├── NOTES.md
├── book.png
├── cry.png
├── dance.gif
├── demo-setup.png
├── facebg.png
├── masks.png
├── nostream.png
├── picam-bg.png
├── picard-bg.png
├── picard-please.png
├── picard.png
├── road-to-v4l2.png
└── wp-cam-shortage.png
├── index.html
├── js
├── components
│ └── playback.js
├── config.js
├── controllers
│ ├── autoanimate.js
│ ├── backgrounds.js
│ ├── controls.js
│ ├── focus.js
│ ├── fragments.js
│ ├── keyboard.js
│ ├── location.js
│ ├── notes.js
│ ├── overview.js
│ ├── plugins.js
│ ├── pointer.js
│ ├── print.js
│ ├── progress.js
│ ├── slidecontent.js
│ ├── slidenumber.js
│ └── touch.js
├── index.js
├── reveal.js
└── utils
│ ├── color.js
│ ├── constants.js
│ ├── device.js
│ ├── loader.js
│ └── util.js
├── package-lock.json
├── package.json
├── plugin
├── highlight
│ ├── highlight.esm.js
│ ├── highlight.js
│ ├── monokai.css
│ ├── plugin.js
│ └── zenburn.css
├── markdown
│ ├── markdown.esm.js
│ ├── markdown.js
│ └── plugin.js
├── math
│ ├── katex.js
│ ├── math.esm.js
│ ├── math.js
│ ├── mathjax2.js
│ ├── mathjax3.js
│ └── plugin.js
├── notes
│ ├── notes.esm.js
│ ├── notes.js
│ ├── plugin.js
│ └── speaker-view.html
├── search
│ ├── plugin.js
│ ├── search.esm.js
│ └── search.js
└── zoom
│ ├── plugin.js
│ ├── zoom.esm.js
│ └── zoom.js
└── server.go
/AdamBernot-7Jobs1Year/7Jobs1Year-slides.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/AdamBernot-7Jobs1Year/7Jobs1Year-slides.pdf
--------------------------------------------------------------------------------
/AdamBernot-7Jobs1Year/README.md:
--------------------------------------------------------------------------------
1 | # 7 Jobs, 1 Year
2 |
3 | ## Using Go in Different Workplaces
4 |
5 | [Google Slides](https://docs.google.com/presentation/d/1MWUQ7Ikjbji5bwM6NrFGFPY3xaGJe2oCLSltCLeJvOM/edit?usp=sharing)
6 |
--------------------------------------------------------------------------------
/BenjiVesterby-SecureCodingInGo/README.md:
--------------------------------------------------------------------------------
1 | # Secure Coding in Go: Avoiding Common Vulnerabilities to Better Secure Your Code
2 |
3 | Benji Vesterby
4 |
5 | [Blog](https://benjiv.com) |
6 | [Github](https://github.com/benjivesterby) |
7 | [Twitter](https://twitter.com/benjivesterby)
8 |
9 | Secure coding practices are not intuitive for most engineers. This talk will
10 | cover the most common security missteps in developing secure code with Go.
11 | Leaning heavily on common application vulnerabilities (OWASP Top 10) and how
12 | they apply to Go, this tutorial session will guide attendees on how to avoid
13 | common security pitfalls.
14 |
15 | ### [Presentation](https://docs.google.com/presentation/d/e/2PACX-1vTSrz8uHqdKJdeiyRzpvcqCiOXAVQZdy7tTPpOjrLZwcv6ApcjVa0IEnkSHOIK_sMWl7GI5lbl2_CUt/pub?start=false&loop=false&delayms=3000)
16 |
17 | ### [Vulnerable Application](https://github.com/benjivesterby/gc22-secure-coding-in-go)
18 |
--------------------------------------------------------------------------------
/DoniaChaiehloudj-TinyGo-UpperHen/README.md:
--------------------------------------------------------------------------------
1 | # TinyGo: Getting the upper hen 🐓
2 |
3 | ## Abstract
4 |
5 | TinyGo is a Go compiler for small places such as microcontroller or web. Join Donia for a demo and see live henhouse
6 | temperature and humidity data displayed on dashboards.
7 |
8 | Starting from a basic understanding of what TinyGo is, you will learn how to:
9 |
10 | - Use the appropriate driver for your hardware
11 | - Retrieve data from a thermometer and humidity captor
12 | - Communicate with your microcontroller using WiFi
13 | - Build a dashboard with temperature and humidity data
14 | - Check that your hens are doing well, from your couch
15 |
16 | And, if you still do not want to adopt chickens, you can let your creativity flow by building your own project, using our favorite language.
17 |
18 | Talk/Attendee Level: All Attendees
19 |
20 | ## Slides
21 |
22 | The slides from the talk are on [SpeakerDeck](https://speakerdeck.com/doniacld/tinygo-getting-the-upper-hen-gophercon-2022).
23 | I invite you to check the video whenever it is available, so you can see the demo 😉
24 |
25 | ## Useful resources
26 |
27 | ### Code samples
28 |
29 | Link to the sample of codes in the github repositories:
30 | - [tiny-hen](https://github.com/doniacld/tiny-hen): holds the go web server, the deployment scripts and manifests.
31 | - [tinygo-discovery](https://github.com/doniacld/tinygo-discovery): holds the TinyGo code for the microcontroller and other explorations around TinyGo.
32 |
33 | ### To go further
34 |
35 | * [TinyGo documentation](https://tinygo.org)
36 | * [TinyGo Playground](https://play.tinygo.org)
37 |
38 | I invite you to join the #tinygo channel on [Gophers Slack](https://invite.slack.golangbridge.org/) to connect with the community, ask questions or even contribute.
39 |
40 |
41 | ## Speaker Details
42 |
43 | My name is Donia Chaiehloudj and my handle almost everywhere is `doniacld`.
44 | You can find me on social medias and slack:
45 | - Github: https://github.com/doniacld
46 | - Twitter: https://twitter.com/doniacld
47 | - LinkedIn: https://www.linkedin.com/in/donia-chaiehloudj/
48 | - Medium: https://doniacld.medium.com/
49 | - Gophers slack: https://invite.slack.golangbridge.org/
50 |
51 | I would love to connect with you and wish you a happy TinyGo hacking! 🧑🏽💻
52 |
--------------------------------------------------------------------------------
/DylanBourque-KrakenWranglingForDummies/README.md:
--------------------------------------------------------------------------------
1 | # Kraken Wrangling for Dummies
2 |
3 | Hello, Gophers
4 |
5 | These are the slides from my talk at GopherCon 2022, _Kraken Wrangling for Dummies: Go Modules Dependency Management at Scale_.
6 |
7 | The slides are [here](slides.pdf) and the [project source](https://github.com/CrowdStrike/perseus) is on GitHub under CrowdStrike's organization. Reach out to me on GitHub if you have questions or comments or would like to use Perseus or contribute.
8 |
9 | And best of luck defeating your own krakens!
10 |
--------------------------------------------------------------------------------
/DylanBourque-KrakenWranglingForDummies/slides.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/DylanBourque-KrakenWranglingForDummies/slides.pdf
--------------------------------------------------------------------------------
/JeremyBrown-ParsingWithoutCodeGenerators/README.md:
--------------------------------------------------------------------------------
1 | # Parsing Without Code Generators: Parser Combinators in Go with Generics
2 |
3 | For reasons too tedious to print here, I needed to write an extensible Markdown parser. (OK, since you asked, I needed it to implement the software project planning language for [DoomCheck](https://www.doomcheck.com/)). Just as I finished, the first beta release of Go with generics came out, so I did it all again!
4 |
5 | Now I’m here to take you on the same journey. Not the Markdown part – Markdown is a parsing nightmare – the parser combinators part.
6 |
7 | Parser combinators are a composable way of building parsers in code; they stand in contrast to traditional parser generators like goyacc. They work particularly well in Go now that Go has generics, and they are remarkably easy to implement from scratch. In this tutorial, I’ll do a quick introduction to parser combinators, show you how to use a few primitives to implement a parser for a microlanguage, and dive under the abstraction layer and show you how to implement all the primitives -- each in just a few lines of Go. I aim to give you an appreciation for both parser combinators as an approach to parsing, and for how much better Go generics have made life.
8 |
9 | Finally, while I have had a great experience with Go generics overall, there are some frustrating limits around how you can use generics, so in the wrap-up, I will briefly talk about how future versions of Go could increase generics usability for this sort of domain.
10 |
11 | ### [Presentation](https://docs.google.com/presentation/d/1PfFFXjguakJM13tHWkFxFcy4wee65B26T9Cij2TWC0w/edit#slide=id.g15a27a86b97_0_76)
12 |
13 | ### [Youtube Video](https://www.youtube.com/watch?v=x5p_SJNRB4U&t=442s)
--------------------------------------------------------------------------------
/JesúsEspino-HelloWorldFromTheCodeToTheScreen/Hello World, from the code to the screen.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/JesúsEspino-HelloWorldFromTheCodeToTheScreen/Hello World, from the code to the screen.pdf
--------------------------------------------------------------------------------
/JesúsEspino-HelloWorldFromTheCodeToTheScreen/README.md:
--------------------------------------------------------------------------------
1 | # Hello World, from the code to the screen
2 |
3 | Jesús Espino
4 |
5 | [Github](https://github.com/jespino) |
6 | [Twitter](https://twitter.com/jespinog)
7 |
8 | The Go compiler is a great tool, but sometimes it looks like magic. How does
9 | this software convert my source code into something that just works? In this
10 | tutorial, I will guide you through the whole process with the simplest possible
11 | example, a “Hello World”.
12 |
--------------------------------------------------------------------------------
/JordanNeufeld-ExploringNetworkProgrammingByBuildingAToxiproxyClone/README.md:
--------------------------------------------------------------------------------
1 | # Exploring Network Programming By Building A Toxiproxy Clone
2 |
3 | [Jordan Neufeld](https://www.linkedin.com/in/jordan-neufeld/)
4 |
5 | ## Abstract
6 |
7 | This tutorial is for Gophers who have written a command line or an API application, but have little to no experience in lower-level concepts like reading and writing to sockets, working with channels, and managing multiple goroutines. We’ll dig into these network programming concepts by exploring the architecture of the popular open source chaos testing tool Toxiproxy. Toxiproxy is a tool written in golang that Shopify uses to intercept, manipulate, and disrupt TCP streams in a controlled manner in order to test the resiliency of applications and analyze their failure modes. We’ll talk about why Go is a great choice for networking tools, and discuss what aspects of the language make it especially easy to be productive writing tools such as this. Finally, Jordan will demonstrate how simple it is to get started in network programming with a live demo where he’ll build a bare-minimum clone of Toxiproxy that can intercept and add latency to TCP streams between a client and server.
8 |
9 | ## Speaker
10 |
11 | ### Jordan Neufeld, Senior Site Reliability Engineer - Shopify
12 |
13 | Jordan Neufeld is a Senior Site Reliability Engineer with over 6 years' experience supporting a wide range of technologies. He has led many incident response efforts through all aspects of triage, troubleshooting, remediation, and retrospectives. When Jordan is not debugging production, collaborating with peers, or creating a morale-boosting meme, you might find him hacking on Go code or Kubernetes controllers. In his spare time, Jordan enjoys making music, BBQing, and hanging out with his wife and children.
--------------------------------------------------------------------------------
/JordanNeufeld-ExploringNetworkProgrammingByBuildingAToxiproxyClone/slides.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/JordanNeufeld-ExploringNetworkProgrammingByBuildingAToxiproxyClone/slides.pdf
--------------------------------------------------------------------------------
/JuanBrandao-GoTheDataEngineersMissingTool/README.md:
--------------------------------------------------------------------------------
1 | # Go, the Data Engineer's Missing Tool?
2 |
3 | Juan Brandao
4 |
5 | [Twitter](https://twitter.com/jbbassj)
6 |
7 | Go isn't the default language or an option for data engineering. Does it even have a role to play? Data engineering thrives on serialization, efficient data processing at scale, and reliability, best-in-class areas for Go.
8 |
9 | In this talk, we explore the journey of introducing Go to an established domain, including the challenges and learnings along the way, how Go is starting to help solve challenges at the periphery of the data engineer's stack, and how it's helping transform our organization.
10 |
--------------------------------------------------------------------------------
/JuanBrandao-GoTheDataEngineersMissingTool/slides.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/JuanBrandao-GoTheDataEngineersMissingTool/slides.pdf
--------------------------------------------------------------------------------
/KatieHockman-FuzzTestingMadeEasy/FuzzTestingMadeEasy-slices.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/KatieHockman-FuzzTestingMadeEasy/FuzzTestingMadeEasy-slices.pdf
--------------------------------------------------------------------------------
/KatieHockman-FuzzTestingMadeEasy/README.md:
--------------------------------------------------------------------------------
1 | # Fuzz Testing Made Easy
2 |
3 | Go now supports [fuzz testing](https://go.dev/security/fuzz/) natively as of Go 1.18, a tool that can be used to identify bugs and security vulnerabilities in your code. This talk will discuss how and why fuzzing can be used in Go, introduce differential fuzzing, and describe the mechanics of how fuzzing works under the hood. This talk will include a live code demo of a bug being found, fixed, and tested in real time using fuzzing.
4 |
5 | ## Speaker Details
6 |
7 | - Name: Katie Hockman
8 | - GitHub: [@katiehockman](https://github.com/katiehockman)
9 |
10 | ## Slides
11 |
12 | A PDF copy of the slides can be found [here](./FuzzTestingMadeEasy-slices.pdf).
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/KyleConroy-PluginSystemWebAssembly/README.md:
--------------------------------------------------------------------------------
1 | # Safe, Fast, and Easy: Building a Plugin System with WebAssembly
2 |
3 | Adding plugins to your Go program used to mean cross-compilation issues,
4 | security vulnerabilities, and slow speeds. Thanks to WebAssembly, this is no
5 | longer the case. In this tutorial, you will learn how to build a fast and
6 | secure plugin system powered by WebAssembly and WASI.
7 |
--------------------------------------------------------------------------------
/KyleConroy-PluginSystemWebAssembly/slides.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/KyleConroy-PluginSystemWebAssembly/slides.pdf
--------------------------------------------------------------------------------
/MadhavJivrajani-GCPacerDeepDive/README.md:
--------------------------------------------------------------------------------
1 | # Control Theory and Concurrent Garbage Collection: A Deep Dive Into The Go GC Pacer
2 |
3 | ## Abstract
4 |
5 | Go does concurrent garbage collection (GC), but what does that mean and what are its implications? Let’s explore how the runtime employs control theory to determine when GC should happen, what changes were made in Go 1.18 to the GC, and what it means for you as a user!
6 |
7 | ## Speaker Details
8 |
9 | - Name: Madhav Jivrajani
10 | - A Few Handles:
11 | - GitHub: [@MadhavJivrajani](https://github.com/MadhavJivrajani)
12 | - Twitter: [@MadhavJivrajani](https://twitter.com/MadhavJivrajani)
13 | - LinkedIn: [Madhav Jivrajani](https://www.linkedin.com/in/madhav-jivrajani/)
14 | - Different Slacks On Which You Can Get In Touch With Me (`@madhav`):
15 | - [Gophers Slack](https://invite.slack.golangbridge.org/)
16 | - [Kubernetes Slack](http://slack.k8s.io)
17 | - [CNCF Slack](https://slack.cncf.io/)
18 |
19 | ## Slides
20 |
21 | A PDF copy of the slides as of 12th Oct 2022 can be found [here](./pacer_deep_dive_20221012.pdf).
22 |
23 | Slides may be updated based on feedback, for an up-to-date version of the slides, please check Speaker Deck [here](https://speakerdeck.com/madhavjivrajani/control-theory-and-concurrent-garbage-collection-a-deep-dive-into-the-go-gc-pacer).
24 |
25 | Please note that embedded links are not clickable while viewing slides on Speaker Deck, you might have to download and view as a PDF in order to access any links that are embedded in the presentation.
26 |
--------------------------------------------------------------------------------
/MadhavJivrajani-GCPacerDeepDive/pacer_deep_dive_20221012.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/MadhavJivrajani-GCPacerDeepDive/pacer_deep_dive_20221012.pdf
--------------------------------------------------------------------------------
/PatricioWhittingslow-AerospaceGo/README.md:
--------------------------------------------------------------------------------
1 | # Aerospace Go
2 | *Patricio Whittingslow*
3 |
4 | [Github](https://github.com/soypat) |
5 | [Twitter](https://twitter.com/whittileaks)
6 |
7 |
8 |
9 | ### [Google Slides as presented w/ speaker notes](https://docs.google.com/presentation/d/1S-Z8solN-MsAmsB-vRsjldaGBxYZdMmHGc34eTrP7DU/edit?usp=sharing)
10 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 2022-talks
2 | Slides and Links for 2022 GopherCon talks sorted alphabetically:
3 |
4 | - Adam Bernot - [7 Jobs, 1 Year: Using Go in Different Workplaces](./AdamBernot-7Jobs1Year/README.md)
5 | - Benji Versterby - [Secure Coding in Go: Avoiding Common Vulnerabilities to Better Secure Your Code](./BenjiVesterby-SecureCodingInGo/README.md)
6 | - Donia Chaiehloudj - [TinyGo: Getting the Upper Hen](./DoniaChaiehloudj-TinyGo-UpperHen/README.md)
7 | - Dylan Bourque - [Kraken Wrangling for Dummies](./DylanBourque-KrakenWranglingForDummies/README.md)
8 | - Jeremy Brown - [Parsing Without Code Generators: Parser Combinators in Go with Generics](./JeremyBrown-ParsingWithoutCodeGenerators/README.md)
9 | - Jesús Espino - [Hello World, from the code to the screen](./JesúsEspino-HelloWorldFromTheCodeToTheScreen/README.md)
10 | - Jordan Neufeld - [Exploring Network Programming By Building A Toxiproxy Clone](./JordanNeufeld-ExploringNetworkProgrammingByBuildingAToxiproxyClone/README.md)
11 | - Juan Brandao - [Go, the Data Engineer's Missing Tool?](./JuanBrandao-GoTheDataEngineersMissingTool/README.md)
12 | - Katie Hockman - [Fuzz Testing Made Easy](./KatieHockman-FuzzTestingMadeEasy/README.md)
13 | - Kyle Conroy - [Safe, Fast, and Easy: Building a Plugin System with WebAssembly](./KyleConroy-PluginSystemWebAssembly/README.md)
14 | - Madhav Jivrajani - [Control Theory and Concurrent Garbage Collection: A Deep Dive Into The Go GC Pacer](./MadhavJivrajani-GCPacerDeepDive/README.md)
15 | - Patricio Whittingslow - [Aerospace Go](./PatricioWhittingslow-AerospaceGo/README.md)
16 | - Rebecca Bilbro - [How to Build a Distributed System](./RebeccaBilbro-HowtoBuildaDistributedSystem/README.md)
17 | - Samantha Coyle - [A Journey Through Integration Testing with Go - What Could Go Wrong?](./SamanthaCoyle-AJourneyThroughIntegrationTestingWithGo-WhatCouldGoWrong%3F/README.md)
18 | - Robert Burke - [How Apache Beam Makes Your Data Processing Go!](./RobertBurke-HowApacheBeamMakesYourDataProcessingGo/README.md)
19 | - Takeshi Yoneda - [CGO-less Foreign Function Interface with WebAssembly](./TakeshiYoneda-CGOlessForeignFunctionInterfaceWithWasm/README.md)
20 | - Tom Lyons - [How I Write HTTP Clients After (almost) 7 Years](./TomLyons-HowIWriteHTTPClientsAfter(almost)7Years/README.md)
21 | - Vladimir Vivien - [Realtime Video Capture on Linux with Go](./vladimirvivien-RealtimeVideoCaptureLinux/README.md)
22 | - Yolan Romailler - [101 Randomness](./YolanRomailler-101Randomness/README.md)
23 | - Zach Musgrave - [Performance in a High-throughput SQL Database: Real-world Profiler Tips](./ZachMusgrave-PerformanceHighThroughputSQLDatabase/README.md)
24 |
--------------------------------------------------------------------------------
/RebeccaBilbro-HowtoBuildaDistributedSystem/README.md:
--------------------------------------------------------------------------------
1 | # How to Build a Distributed System
2 |
3 | ## Abstract
4 |
5 | This talk tells the story of how we used Go to build our very own, eventually consistent, distributed system, currently deployed in production clusters across the US, Germany, and Singapore. As our system is described, key topics will be introduced that you’ll need, to understand distributed systems in practice (e.g. replication, consistency, and consensus). We will walk through how our team leveraged tools like gRPC, Kubernetes, LevelDB, and Prometheus to implement two new open source projects that serve as the heart of our system. Confessions of all the ways we messed up will also ensue — from struggling to debug protocol buffer errors, to tangling up send and receive goroutines, to reasoning about the phases of replication. Finally, Rebecca will explain why rolling out their own system made sense for their use case, and why it might also make sense for you. It won’t be the prettiest story, but we hope you’ll benefit from the lessons we learned, including the most important one — that you can build your own distributed system.
6 |
7 |
8 | ## Slides
9 |
10 | A PDF copy of the slides could be found [here](./slides.pdf)
11 |
--------------------------------------------------------------------------------
/RebeccaBilbro-HowtoBuildaDistributedSystem/slides.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/RebeccaBilbro-HowtoBuildaDistributedSystem/slides.pdf
--------------------------------------------------------------------------------
/RobertBurke-HowApacheBeamMakesYourDataProcessingGo/MakeYourDataProcessingGo-slides.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/RobertBurke-HowApacheBeamMakesYourDataProcessingGo/MakeYourDataProcessingGo-slides.pdf
--------------------------------------------------------------------------------
/RobertBurke-HowApacheBeamMakesYourDataProcessingGo/README.md:
--------------------------------------------------------------------------------
1 | # How Apache Beam Makes Your Data Processing Go!
2 |
3 | Learn how Apache Beam uses Go to execute your code against distributed datasets. As a language, Go brings unique challenges to designing a data processing framework. No inheritance, and no built-in serialization are just the start! This talk will cover how the Apache Beam Go SDK overcomes these challenges using reflection, interfaces, and generics to efficiently execute your data pipelines on arbitrary Beam Runners, like Apache Flink and Google Cloud Dataflow.
4 |
5 | ## Speaker Details
6 |
7 | - Name: Robert Burke
8 | - GitHub: [@lostluck](https://github.com/lostluck)
9 |
10 | ## Video
11 |
12 | A recording of the talk is available [here (youtube link)](https://www.youtube.com/watch?v=Z-GBHh6Kb-o).
13 |
14 | ## Slides
15 |
16 | A PDF copy of the slides can be found [here](./MakeYourDataProcessingGo-slides.pdf).
17 |
--------------------------------------------------------------------------------
/SamanthaCoyle-AJourneyThroughIntegrationTestingWithGo-WhatCouldGoWrong?/README.md:
--------------------------------------------------------------------------------
1 | # A Journey Through Integration Testing with Go - What Could Go Wrong?
2 |
3 | When our team set out to conquer the world and perform integration testing for our project, we arrived at an impasse. The typical flow we've experienced uses the Python Robot framework but being Go developers we chose to take a risk for our org in hopes that it would pay off.
4 |
5 | Our team's use of Testcontainers for Go and go-test-report helped us to spin up our services, do some exciting integration tests, and create a nice test report html page for a good UX. Everything was working honky-dory until it was noticed that the tests all passed, but the test report tool showed a red failing status for passing tests. Yes, you read that right - this seemed suspicious.
6 |
7 | This was the first of a few problems we encountered on our journey; from limitations with some open source pkgs we used to disagreements between developers and our validation engineer on when code should be deemed as passing our validation standards. Come along in our journey to find out what our issues were and how we went about alleviating them.
8 |
9 | ## Samantha Coyle
10 |
11 | [Personal Website](http://samcoyle.me/) |
12 | [Github](https://github.com/sicoyle) |
13 | [Twitter](https://twitter.com/thesamcoyle) |
14 | [LinkedIn](https://www.linkedin.com/in/sam-coyle/) |
15 | [Medium](https://medium.com/@samcoyle)
16 |
17 | ## Resources
18 |
19 | [PowerPoint](./SamanthaCoyleGopherCon22.pdf) |
20 | [Testcontainers for Go Github](https://github.com/testcontainers/testcontainers-go) |
21 | [Go Test Report Github](https://github.com/vakenbolt/go-test-report)
22 |
23 | See y'all at GopherCon 2023!
24 |
--------------------------------------------------------------------------------
/SamanthaCoyle-AJourneyThroughIntegrationTestingWithGo-WhatCouldGoWrong?/SamanthaCoyleGopherCon22.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/SamanthaCoyle-AJourneyThroughIntegrationTestingWithGo-WhatCouldGoWrong?/SamanthaCoyleGopherCon22.pdf
--------------------------------------------------------------------------------
/TakeshiYoneda-CGOlessForeignFunctionInterfaceWithWasm/README.md:
--------------------------------------------------------------------------------
1 | # CGO-less Foreign Function Interface with WebAssembly
2 |
3 | ## Abstract
4 |
5 | Foreign Function Interface(FFI) is a mechanism to invoke functions written in another language. In Go, there are only a few ways to achieve this, calling C functions via CGO, embedding Lua VM, etc. FFI is especially useful when we want to extend the existing Go projects by leveraging other programming languages’ ecosystems.
6 |
7 | WebAssembly(Wasm) is a relatively-new instruction format for a virtual machine, and numerous programming languages can be compiled down to Wasm binary format. Therefore, if there were a Wasm virtual machine that is embeddable in Go projects, executing Wasm binary in Go could be a way to achieve FFI in a secure and flexible way since Wasm is designed to be secure, and any programming language can have support for it.
8 |
9 | At Tetrate, we have open-sourced a WebAssembly runtime purely in Go called “wazero”. wazero is 100% compliant with the WebAssembly Core Specification 1.0 and 2.0. It has zero dependencies and doesn't rely on CGO. This means you can run applications in other languages and still keep cross-compilation, etc. The prime motivation behind wazero was to write a Wasm runtime purely in Go to avoid CGO usage since there was no pure Go Wasm runtime out there (except a few that are archived), therefore we were not able to achieve FFI via Wasm without CGO.
10 |
11 | This tutorial will cover the basics of WebAssembly, the state of the Go ecosystem around it, how CGO-less FFI with Wasm looks like through a live demo, a deep dive into the wazero’s WebAssembly to machine code compiler and the virtual machine implementation, and how Gophers can start leveraging CGO-less FFI in their project.
12 |
13 | ## Speaker Details
14 |
15 | - Name: Takeshi Yoneda
16 | - Twitter: https://twitter.com/mathetake
17 | - GitHub: https://github.com/mathetake
18 |
--------------------------------------------------------------------------------
/TakeshiYoneda-CGOlessForeignFunctionInterfaceWithWasm/slides.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/TakeshiYoneda-CGOlessForeignFunctionInterfaceWithWasm/slides.pdf
--------------------------------------------------------------------------------
/TomLyons-HowIWriteHTTPClientsAfter(almost)7Years/README.md:
--------------------------------------------------------------------------------
1 | # How I Write HTTP Clients After (almost) 7 Years
2 |
3 | ## Abstract
4 |
5 | HTTP Servers have middleware.
6 |
7 | HTTP Clients have… nothing?
8 |
9 | Inspired by the well-known article and previous GopherCon talk “How I Write HTTP Services After 7/8 Years” by Mat Ryer, Tom aims to provide a rival paradigm for HTTP clients. This talk introduces and describes using client decorators for building better HTTP clients with easier testing and greater maintainability.
10 |
11 | ## Speaker Details
12 |
13 | - Name: Tom Lyons
14 | - GitHub: [@tflyons](https://github.com/tflyons)
15 |
16 | ### [Slides as readme and sample codes](https://github.com/tflyons/httpx/tree/main/gophercon22)
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/YolanRomailler-101Randomness/GopherConUSA_2022_Randomness_101_Yolan_Romailler.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/YolanRomailler-101Randomness/GopherConUSA_2022_Randomness_101_Yolan_Romailler.pdf
--------------------------------------------------------------------------------
/YolanRomailler-101Randomness/README.md:
--------------------------------------------------------------------------------
1 | # Randomness 101
2 |
3 | Let us explore together what is randomness, what it means for cryptographic primitives such as TLS, signatures and encryption, and why it is more often than not a challenge to get right.
4 |
5 | In this tutorial we will walk through the different _flavours_ of randomness, from secret, local randomness to public, verifiable, distributed randomness. We will see a few bad-randomness examples, see how we can properly sample randomness in our code. We will learn about the infamous "modulo bias" and how to avoid it in Go.
6 |
7 | ## Speaker Details
8 |
9 | - Name: Yolan Romailler
10 | - A Few Handles:
11 | - GitHub: [@anomalroil](https://github.com/anomalroil)
12 | - Twitter: [@anomalroil](https://twitter.com/anomalroil)
13 |
14 | ## Links and ressources
15 | - [The definitive guide to modulo bias](https://research.kudelskisecurity.com/2020/07/28/the-definitive-guide-to-modulo-bias-and-how-to-avoid-it)
16 | - A few useful repos:
17 | - drand repo: https://github.com/drand/drand/
18 | - tlock repo: https://github.com/drand/tlock/
19 | - tlock-js repo: https://github.com/drand/tlock-js/
20 | - Test Timelock Encryption in your browser: https://timevault.drand.love/
21 | - Stay tuned for more info and blog posts around randomness or timelock encryption on drand's blog: https://drand.love/blog/
22 | - Wants to run a drand node and join the League of Entropy? Join us: https://drand.love/partner-with-us/
23 |
24 | Be sure to checkout my slides, they contain the Playground links to most of my code snippets!
25 |
--------------------------------------------------------------------------------
/ZachMusgrave-PerformanceHighThroughputSQLDatabase/README.md:
--------------------------------------------------------------------------------
1 | # Performance in a High-throughput SQL Database: Real-world Profiler Tips
2 |
3 | In this tutorial, Zach will show you how to profile your codebase to
4 | make it faster and share some performance-killing anti-patterns to
5 | avoid, all in the context of a novel SQL database written in golang.
6 |
7 | Zach and the team at DoltHub built Dolt, the world’s first SQL
8 | database that you can branch and merge, fork and clone, push and pull
9 | like a git repository. They wrote the storage and query engine from
10 | the ground up, then made it as fast as MySQL by using golang’s
11 | profiler. Join Zach as he shares what they learned on this journey.
12 | He will demo how to use golang’s profiler tools to uncover slowdowns
13 | in your code. He will also detail many examples of slow code from
14 | DoltHub’s own code base and show you how the team fixed them. Finally,
15 | Zach will discuss the architectural choices for their database’s tuple
16 | storage, and how they contribute to its performance.
17 |
18 | Watch slides online [here](https://docs.google.com/presentation/d/e/2PACX-1vR7HrSEoNYJuE9cS2Df_sPPli2vs2ZfzB-np2dtrTNZn-yLCq4ZXUjkEWm0CxtCLLnctr1KL2D2kmub/pub?start=false&loop=false&delayms=3000), or browse the PDF file in this directory.
19 |
20 | Additional info:
21 |
22 | * [Dolt on GitHub](https://github.com/dolthub/dolt)
23 | * [dolthub.com](https://dolthub.com)
24 | * [Dolt Discord server](https://discord.com/invite/RFwfYpu)
25 |
--------------------------------------------------------------------------------
/ZachMusgrave-PerformanceHighThroughputSQLDatabase/slides.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/ZachMusgrave-PerformanceHighThroughputSQLDatabase/slides.pdf
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2011-2022 Hakim El Hattab, http://hakim.se, and reveal.js contributors
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/README.md:
--------------------------------------------------------------------------------
1 | # Presentation - Realtime Video Capture on Linux with Go
2 |
3 | ## Vladimir Vivien, GopherCon 2022
4 |
5 | * See presentation [description](https://www.gophercon.com/agenda/speakers/1705583), for detail.
6 | * Project link - https://github.com/vladimirvivien/go4vl
7 |
8 | ## Running the presentation
9 |
10 | 1. Download files from project directory
11 | 2. From your web browser, file `index.html` (in project)
12 |
13 | Or, if you have Go installed:
14 |
15 | ```
16 | go run server.go
17 | ```
18 |
19 | Then browse to `localhost:5050` (or chosen port).
20 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/layout.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Layout helpers.
3 | */
4 |
5 | // Stretch an element vertically based on available space
6 | .reveal .stretch,
7 | .reveal .r-stretch {
8 | max-width: none;
9 | max-height: none;
10 | }
11 |
12 | .reveal pre.stretch code,
13 | .reveal pre.r-stretch code {
14 | height: 100%;
15 | max-height: 100%;
16 | box-sizing: border-box;
17 | }
18 |
19 | // Text that auto-fits its container
20 | .reveal .r-fit-text {
21 | display: inline-block; // https://github.com/rikschennink/fitty#performance
22 | white-space: nowrap;
23 | }
24 |
25 | // Stack multiple elements on top of each other
26 | .reveal .r-stack {
27 | display: grid;
28 | }
29 |
30 | .reveal .r-stack > * {
31 | grid-area: 1/1;
32 | margin: auto;
33 | }
34 |
35 | // Horizontal and vertical stacks
36 | .reveal .r-vstack,
37 | .reveal .r-hstack {
38 | display: flex;
39 |
40 | img, video {
41 | min-width: 0;
42 | min-height: 0;
43 | object-fit: contain;
44 | }
45 | }
46 |
47 | .reveal .r-vstack {
48 | flex-direction: column;
49 | align-items: center;
50 | justify-content: center;
51 | }
52 |
53 | .reveal .r-hstack {
54 | flex-direction: row;
55 | align-items: center;
56 | justify-content: center;
57 | }
58 |
59 | // Naming based on tailwindcss
60 | .reveal .items-stretch { align-items: stretch; }
61 | .reveal .items-start { align-items: flex-start; }
62 | .reveal .items-center { align-items: center; }
63 | .reveal .items-end { align-items: flex-end; }
64 |
65 | .reveal .justify-between { justify-content: space-between; }
66 | .reveal .justify-around { justify-content: space-around; }
67 | .reveal .justify-start { justify-content: flex-start; }
68 | .reveal .justify-center { justify-content: center; }
69 | .reveal .justify-end { justify-content: flex-end; }
70 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/print/paper.scss:
--------------------------------------------------------------------------------
1 | /* Default Print Stylesheet Template
2 | by Rob Glazebrook of CSSnewbie.com
3 | Last Updated: June 4, 2008
4 |
5 | Feel free (nay, compelled) to edit, append, and
6 | manipulate this file as you see fit. */
7 |
8 | @media print {
9 | html:not(.print-pdf) {
10 |
11 | background: #fff;
12 | width: auto;
13 | height: auto;
14 | overflow: visible;
15 |
16 | body {
17 | background: #fff;
18 | font-size: 20pt;
19 | width: auto;
20 | height: auto;
21 | border: 0;
22 | margin: 0 5%;
23 | padding: 0;
24 | overflow: visible;
25 | float: none !important;
26 | }
27 |
28 | .nestedarrow,
29 | .controls,
30 | .fork-reveal,
31 | .share-reveal,
32 | .state-background,
33 | .reveal .progress,
34 | .reveal .backgrounds,
35 | .reveal .slide-number {
36 | display: none !important;
37 | }
38 |
39 | body, p, td, li {
40 | font-size: 20pt!important;
41 | color: #000;
42 | }
43 |
44 | h1,h2,h3,h4,h5,h6 {
45 | color: #000!important;
46 | height: auto;
47 | line-height: normal;
48 | text-align: left;
49 | letter-spacing: normal;
50 | }
51 |
52 | /* Need to reduce the size of the fonts for printing */
53 | h1 { font-size: 28pt !important; }
54 | h2 { font-size: 24pt !important; }
55 | h3 { font-size: 22pt !important; }
56 | h4 { font-size: 22pt !important; font-variant: small-caps; }
57 | h5 { font-size: 21pt !important; }
58 | h6 { font-size: 20pt !important; font-style: italic; }
59 |
60 | a:link,
61 | a:visited {
62 | color: #000 !important;
63 | font-weight: bold;
64 | text-decoration: underline;
65 | }
66 |
67 | ul, ol, div, p {
68 | visibility: visible;
69 | position: static;
70 | width: auto;
71 | height: auto;
72 | display: block;
73 | overflow: visible;
74 | margin: 0;
75 | text-align: left !important;
76 | }
77 | .reveal pre,
78 | .reveal table {
79 | margin-left: 0;
80 | margin-right: 0;
81 | }
82 | .reveal pre code {
83 | padding: 20px;
84 | }
85 | .reveal blockquote {
86 | margin: 20px 0;
87 | }
88 | .reveal .slides {
89 | position: static !important;
90 | width: auto !important;
91 | height: auto !important;
92 |
93 | left: 0 !important;
94 | top: 0 !important;
95 | margin-left: 0 !important;
96 | margin-top: 0 !important;
97 | padding: 0 !important;
98 | zoom: 1 !important;
99 | transform: none !important;
100 |
101 | overflow: visible !important;
102 | display: block !important;
103 |
104 | text-align: left !important;
105 | perspective: none;
106 |
107 | perspective-origin: 50% 50%;
108 | }
109 | .reveal .slides section {
110 | visibility: visible !important;
111 | position: static !important;
112 | width: auto !important;
113 | height: auto !important;
114 | display: block !important;
115 | overflow: visible !important;
116 |
117 | left: 0 !important;
118 | top: 0 !important;
119 | margin-left: 0 !important;
120 | margin-top: 0 !important;
121 | padding: 60px 20px !important;
122 | z-index: auto !important;
123 |
124 | opacity: 1 !important;
125 |
126 | page-break-after: always !important;
127 |
128 | transform-style: flat !important;
129 | transform: none !important;
130 | transition: none !important;
131 | }
132 | .reveal .slides section.stack {
133 | padding: 0 !important;
134 | }
135 | .reveal section:last-of-type {
136 | page-break-after: avoid !important;
137 | }
138 | .reveal section .fragment {
139 | opacity: 1 !important;
140 | visibility: visible !important;
141 |
142 | transform: none !important;
143 | }
144 |
145 | .reveal .r-fit-text {
146 | white-space: normal !important;
147 | }
148 |
149 | .reveal section img {
150 | display: block;
151 | margin: 15px 0px;
152 | background: rgba(255,255,255,1);
153 | border: 1px solid #666;
154 | box-shadow: none;
155 | }
156 |
157 | .reveal section small {
158 | font-size: 0.8em;
159 | }
160 |
161 | .reveal .hljs {
162 | max-height: 100%;
163 | white-space: pre-wrap;
164 | word-wrap: break-word;
165 | word-break: break-word;
166 | font-size: 15pt;
167 | }
168 |
169 | .reveal .hljs .hljs-ln-numbers {
170 | white-space: nowrap;
171 | }
172 |
173 | .reveal .hljs td {
174 | font-size: inherit !important;
175 | color: inherit !important;
176 | }
177 | }
178 | }
179 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/print/pdf.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * This stylesheet is used to print reveal.js
3 | * presentations to PDF.
4 | *
5 | * https://revealjs.com/pdf-export/
6 | */
7 |
8 | html.print-pdf {
9 | * {
10 | -webkit-print-color-adjust: exact;
11 | }
12 |
13 | & {
14 | width: 100%;
15 | height: 100%;
16 | overflow: visible;
17 | }
18 |
19 | body {
20 | margin: 0 auto !important;
21 | border: 0;
22 | padding: 0;
23 | float: none !important;
24 | overflow: visible;
25 | }
26 |
27 | /* Remove any elements not needed in print. */
28 | .nestedarrow,
29 | .reveal .controls,
30 | .reveal .progress,
31 | .reveal .playback,
32 | .reveal.overview,
33 | .state-background {
34 | display: none !important;
35 | }
36 |
37 | .reveal pre code {
38 | overflow: hidden !important;
39 | font-family: Courier, 'Courier New', monospace !important;
40 | }
41 |
42 | .reveal {
43 | width: auto !important;
44 | height: auto !important;
45 | overflow: hidden !important;
46 | }
47 | .reveal .slides {
48 | position: static;
49 | width: 100% !important;
50 | height: auto !important;
51 | zoom: 1 !important;
52 | pointer-events: initial;
53 |
54 | left: auto;
55 | top: auto;
56 | margin: 0 !important;
57 | padding: 0 !important;
58 |
59 | overflow: visible;
60 | display: block;
61 |
62 | perspective: none;
63 | perspective-origin: 50% 50%;
64 | }
65 |
66 | .reveal .slides .pdf-page {
67 | position: relative;
68 | overflow: hidden;
69 | z-index: 1;
70 |
71 | page-break-after: always;
72 | }
73 |
74 | .reveal .slides section {
75 | visibility: visible !important;
76 | display: block !important;
77 | position: absolute !important;
78 |
79 | margin: 0 !important;
80 | padding: 0 !important;
81 | box-sizing: border-box !important;
82 | min-height: 1px;
83 |
84 | opacity: 1 !important;
85 |
86 | transform-style: flat !important;
87 | transform: none !important;
88 | }
89 |
90 | .reveal section.stack {
91 | position: relative !important;
92 | margin: 0 !important;
93 | padding: 0 !important;
94 | page-break-after: avoid !important;
95 | height: auto !important;
96 | min-height: auto !important;
97 | }
98 |
99 | .reveal img {
100 | box-shadow: none;
101 | }
102 |
103 | /* Slide backgrounds are placed inside of their slide when exporting to PDF */
104 | .reveal .backgrounds {
105 | display: none;
106 | }
107 | .reveal .slide-background {
108 | display: block !important;
109 | position: absolute;
110 | top: 0;
111 | left: 0;
112 | width: 100%;
113 | height: 100%;
114 | z-index: auto !important;
115 | }
116 |
117 | /* Display slide speaker notes when 'showNotes' is enabled */
118 | .reveal.show-notes {
119 | max-width: none;
120 | max-height: none;
121 | }
122 | .reveal .speaker-notes-pdf {
123 | display: block;
124 | width: 100%;
125 | height: auto;
126 | max-height: none;
127 | top: auto;
128 | right: auto;
129 | bottom: auto;
130 | left: auto;
131 | z-index: 100;
132 | }
133 |
134 | /* Layout option which makes notes appear on a separate page */
135 | .reveal .speaker-notes-pdf[data-layout="separate-page"] {
136 | position: relative;
137 | color: inherit;
138 | background-color: transparent;
139 | padding: 20px;
140 | page-break-after: always;
141 | border: 0;
142 | }
143 |
144 | /* Display slide numbers when 'slideNumber' is enabled */
145 | .reveal .slide-number-pdf {
146 | display: block;
147 | position: absolute;
148 | font-size: 14px;
149 | }
150 |
151 | /* This accessibility tool is not useful in PDF and breaks it visually */
152 | .aria-status {
153 | display: none;
154 | }
155 | }
156 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/README.md:
--------------------------------------------------------------------------------
1 | ## Dependencies
2 |
3 | Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment installed before proceeding: https://revealjs.com/installation/#full-setup
4 |
5 | ## Creating a Theme
6 |
7 | To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled from Sass to CSS (see the [gulpfile](https://github.com/hakimel/reveal.js/blob/master/gulpfile.js)) when you run `npm run build -- css-themes`.
8 |
9 | Each theme file does four things in the following order:
10 |
11 | 1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)**
12 | Shared utility functions.
13 |
14 | 2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)**
15 | Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3.
16 |
17 | 3. **Override**
18 | This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please.
19 |
20 | 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)**
21 | The template theme file which will generate final CSS output based on the currently defined variables.
22 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/beige.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Beige theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(./fonts/league-gothic/league-gothic.css);
17 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainColor: #333;
22 | $headingColor: #333;
23 | $headingTextShadow: none;
24 | $backgroundColor: #f7f3de;
25 | $linkColor: #8b743d;
26 | $linkColorHover: lighten( $linkColor, 20% );
27 | $selectionBackgroundColor: rgba(79, 64, 28, 0.99);
28 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
29 |
30 | // Background generator
31 | @mixin bodyBackground() {
32 | @include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) );
33 | }
34 |
35 | // Change text colors against dark slide backgrounds
36 | @include dark-bg-text-color(#fff);
37 |
38 |
39 | // Theme template ------------------------------
40 | @import "../template/theme";
41 | // ---------------------------------------------
42 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/black.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js. This is the opposite of the 'white' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(./fonts/source-sans-pro/source-sans-pro.css);
16 |
17 |
18 | // Override theme settings (see ../template/settings.scss)
19 | $backgroundColor: #191919;
20 |
21 | $mainColor: #fff;
22 | $headingColor: #fff;
23 |
24 | $mainFontSize: 42px;
25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27 | $headingTextShadow: none;
28 | $headingLetterSpacing: normal;
29 | $headingTextTransform: uppercase;
30 | $headingFontWeight: 600;
31 | $linkColor: #42affa;
32 | $linkColorHover: lighten( $linkColor, 15% );
33 | $selectionBackgroundColor: lighten( $linkColor, 25% );
34 |
35 | $heading1Size: 2.5em;
36 | $heading2Size: 1.6em;
37 | $heading3Size: 1.3em;
38 | $heading4Size: 1.0em;
39 |
40 | // Change text colors against light slide backgrounds
41 | @include light-bg-text-color(#222);
42 |
43 |
44 | // Theme template ------------------------------
45 | @import "../template/theme";
46 | // ---------------------------------------------
47 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/blood.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Blood theme for reveal.js
3 | * Author: Walther http://github.com/Walther
4 | *
5 | * Designed to be used with highlight.js theme
6 | * "monokai_sublime.css" available from
7 | * https://github.com/isagalaev/highlight.js/
8 | *
9 | * For other themes, change $codeBackground accordingly.
10 | *
11 | */
12 |
13 | // Default mixins and settings -----------------
14 | @import "../template/mixins";
15 | @import "../template/settings";
16 | // ---------------------------------------------
17 |
18 | // Include theme-specific fonts
19 |
20 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
21 |
22 | // Colors used in the theme
23 | $blood: #a23;
24 | $coal: #222;
25 | $codeBackground: #23241f;
26 |
27 | $backgroundColor: $coal;
28 |
29 | // Main text
30 | $mainFont: Ubuntu, 'sans-serif';
31 | $mainColor: #eee;
32 |
33 | // Headings
34 | $headingFont: Ubuntu, 'sans-serif';
35 | $headingTextShadow: 2px 2px 2px $coal;
36 |
37 | // h1 shadow, borrowed humbly from
38 | // (c) Default theme by Hakim El Hattab
39 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
40 |
41 | // Links
42 | $linkColor: $blood;
43 | $linkColorHover: lighten( $linkColor, 20% );
44 |
45 | // Text selection
46 | $selectionBackgroundColor: $blood;
47 | $selectionColor: #fff;
48 |
49 | // Change text colors against dark slide backgrounds
50 | @include light-bg-text-color(#222);
51 |
52 |
53 | // Theme template ------------------------------
54 | @import "../template/theme";
55 | // ---------------------------------------------
56 |
57 | // some overrides after theme template import
58 |
59 | .reveal p {
60 | font-weight: 300;
61 | text-shadow: 1px 1px $coal;
62 | }
63 |
64 | section.has-light-background {
65 | p, h1, h2, h3, h4 {
66 | text-shadow: none;
67 | }
68 | }
69 |
70 | .reveal h1,
71 | .reveal h2,
72 | .reveal h3,
73 | .reveal h4,
74 | .reveal h5,
75 | .reveal h6 {
76 | font-weight: 700;
77 | }
78 |
79 | .reveal p code {
80 | background-color: $codeBackground;
81 | display: inline-block;
82 | border-radius: 7px;
83 | }
84 |
85 | .reveal small code {
86 | vertical-align: baseline;
87 | }
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/league.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * League theme for reveal.js.
3 | *
4 | * This was the default theme pre-3.0.0.
5 | *
6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(./fonts/league-gothic/league-gothic.css);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 | // Override theme settings (see ../template/settings.scss)
22 | $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2);
23 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
24 |
25 | // Background generator
26 | @mixin bodyBackground() {
27 | @include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) );
28 | }
29 |
30 | // Change text colors against light slide backgrounds
31 | @include light-bg-text-color(#222);
32 |
33 |
34 | // Theme template ------------------------------
35 | @import "../template/theme";
36 | // ---------------------------------------------
37 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/moon.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Dark theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 |
6 |
7 | // Default mixins and settings -----------------
8 | @import "../template/mixins";
9 | @import "../template/settings";
10 | // ---------------------------------------------
11 |
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(./fonts/league-gothic/league-gothic.css);
16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17 |
18 | /**
19 | * Solarized colors by Ethan Schoonover
20 | */
21 | html * {
22 | color-profile: sRGB;
23 | rendering-intent: auto;
24 | }
25 |
26 | // Solarized colors
27 | $base03: #002b36;
28 | $base02: #073642;
29 | $base01: #586e75;
30 | $base00: #657b83;
31 | $base0: #839496;
32 | $base1: #93a1a1;
33 | $base2: #eee8d5;
34 | $base3: #fdf6e3;
35 | $yellow: #b58900;
36 | $orange: #cb4b16;
37 | $red: #dc322f;
38 | $magenta: #d33682;
39 | $violet: #6c71c4;
40 | $blue: #268bd2;
41 | $cyan: #2aa198;
42 | $green: #859900;
43 |
44 | // Override theme settings (see ../template/settings.scss)
45 | $mainColor: $base1;
46 | $headingColor: $base2;
47 | $headingTextShadow: none;
48 | $backgroundColor: $base03;
49 | $linkColor: $blue;
50 | $linkColorHover: lighten( $linkColor, 20% );
51 | $selectionBackgroundColor: $magenta;
52 |
53 | // Change text colors against light slide backgrounds
54 | @include light-bg-text-color(#222);
55 |
56 | // Theme template ------------------------------
57 | @import "../template/theme";
58 | // ---------------------------------------------
59 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/night.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
16 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
17 |
18 |
19 | // Override theme settings (see ../template/settings.scss)
20 | $backgroundColor: #111;
21 |
22 | $mainFont: 'Open Sans', sans-serif;
23 | $linkColor: #e7ad52;
24 | $linkColorHover: lighten( $linkColor, 20% );
25 | $headingFont: 'Montserrat', Impact, sans-serif;
26 | $headingTextShadow: none;
27 | $headingLetterSpacing: -0.03em;
28 | $headingTextTransform: none;
29 | $selectionBackgroundColor: #e7ad52;
30 |
31 | // Change text colors against light slide backgrounds
32 | @include light-bg-text-color(#222);
33 |
34 |
35 | // Theme template ------------------------------
36 | @import "../template/theme";
37 | // ---------------------------------------------
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/serif.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is brown.
4 | *
5 | * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
6 | */
7 |
8 |
9 | // Default mixins and settings -----------------
10 | @import "../template/mixins";
11 | @import "../template/settings";
12 | // ---------------------------------------------
13 |
14 |
15 |
16 | // Override theme settings (see ../template/settings.scss)
17 | $mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
18 | $mainColor: #000;
19 | $headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
20 | $headingColor: #383D3D;
21 | $headingTextShadow: none;
22 | $headingTextTransform: none;
23 | $backgroundColor: #F0F1EB;
24 | $linkColor: #51483D;
25 | $linkColorHover: lighten( $linkColor, 20% );
26 | $selectionBackgroundColor: #26351C;
27 |
28 | .reveal a {
29 | line-height: 1.3em;
30 | }
31 |
32 | // Change text colors against dark slide backgrounds
33 | @include dark-bg-text-color(#fff);
34 |
35 |
36 | // Theme template ------------------------------
37 | @import "../template/theme";
38 | // ---------------------------------------------
39 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/simple.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is darkblue.
4 | *
5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 |
22 | // Override theme settings (see ../template/settings.scss)
23 | $mainFont: 'Lato', sans-serif;
24 | $mainColor: #000;
25 | $headingFont: 'News Cycle', Impact, sans-serif;
26 | $headingColor: #000;
27 | $headingTextShadow: none;
28 | $headingTextTransform: none;
29 | $backgroundColor: #fff;
30 | $linkColor: #00008B;
31 | $linkColorHover: lighten( $linkColor, 20% );
32 | $selectionBackgroundColor: rgba(0, 0, 0, 0.99);
33 |
34 | // Change text colors against dark slide backgrounds
35 | @include dark-bg-text-color(#fff);
36 |
37 |
38 | // Theme template ------------------------------
39 | @import "../template/theme";
40 | // ---------------------------------------------
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/sky.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Sky theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
17 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainFont: 'Open Sans', sans-serif;
22 | $mainColor: #333;
23 | $headingFont: 'Quicksand', sans-serif;
24 | $headingColor: #333;
25 | $headingLetterSpacing: -0.08em;
26 | $headingTextShadow: none;
27 | $backgroundColor: #f7fbfc;
28 | $linkColor: #3b759e;
29 | $linkColorHover: lighten( $linkColor, 20% );
30 | $selectionBackgroundColor: #134674;
31 |
32 | // Fix links so they are not cut off
33 | .reveal a {
34 | line-height: 1.3em;
35 | }
36 |
37 | // Background generator
38 | @mixin bodyBackground() {
39 | @include radial-gradient( #add9e4, #f7fbfc );
40 | }
41 |
42 | // Change text colors against dark slide backgrounds
43 | @include dark-bg-text-color(#fff);
44 |
45 |
46 |
47 | // Theme template ------------------------------
48 | @import "../template/theme";
49 | // ---------------------------------------------
50 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/solarized.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Light theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 |
6 |
7 | // Default mixins and settings -----------------
8 | @import "../template/mixins";
9 | @import "../template/settings";
10 | // ---------------------------------------------
11 |
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(./fonts/league-gothic/league-gothic.css);
16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17 |
18 |
19 | /**
20 | * Solarized colors by Ethan Schoonover
21 | */
22 | html * {
23 | color-profile: sRGB;
24 | rendering-intent: auto;
25 | }
26 |
27 | // Solarized colors
28 | $base03: #002b36;
29 | $base02: #073642;
30 | $base01: #586e75;
31 | $base00: #657b83;
32 | $base0: #839496;
33 | $base1: #93a1a1;
34 | $base2: #eee8d5;
35 | $base3: #fdf6e3;
36 | $yellow: #b58900;
37 | $orange: #cb4b16;
38 | $red: #dc322f;
39 | $magenta: #d33682;
40 | $violet: #6c71c4;
41 | $blue: #268bd2;
42 | $cyan: #2aa198;
43 | $green: #859900;
44 |
45 | // Override theme settings (see ../template/settings.scss)
46 | $mainColor: $base00;
47 | $headingColor: $base01;
48 | $headingTextShadow: none;
49 | $backgroundColor: $base3;
50 | $linkColor: $blue;
51 | $linkColorHover: lighten( $linkColor, 20% );
52 | $selectionBackgroundColor: $magenta;
53 |
54 | // Background generator
55 | // @mixin bodyBackground() {
56 | // @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) );
57 | // }
58 |
59 |
60 |
61 | // Theme template ------------------------------
62 | @import "../template/theme";
63 | // ---------------------------------------------
64 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/source/white.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * White theme for reveal.js. This is the opposite of the 'black' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(./fonts/source-sans-pro/source-sans-pro.css);
16 |
17 |
18 | // Override theme settings (see ../template/settings.scss)
19 | $backgroundColor: #fff;
20 |
21 | $mainColor: #222;
22 | $headingColor: #222;
23 |
24 | $mainFontSize: 42px;
25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27 | $headingTextShadow: none;
28 | $headingLetterSpacing: normal;
29 | $headingTextTransform: uppercase;
30 | $headingFontWeight: 600;
31 | $linkColor: #2a76dd;
32 | $linkColorHover: lighten( $linkColor, 15% );
33 | $selectionBackgroundColor: lighten( $linkColor, 25% );
34 |
35 | $heading1Size: 2.5em;
36 | $heading2Size: 1.6em;
37 | $heading3Size: 1.3em;
38 | $heading4Size: 1.0em;
39 |
40 | // Change text colors against dark slide backgrounds
41 | @include dark-bg-text-color(#fff);
42 |
43 |
44 | // Theme template ------------------------------
45 | @import "../template/theme";
46 | // ---------------------------------------------
47 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/template/exposer.scss:
--------------------------------------------------------------------------------
1 | // Exposes theme's variables for easy re-use in CSS for plugin authors
2 |
3 | :root {
4 | --r-background-color: #{$backgroundColor};
5 | --r-main-font: #{$mainFont};
6 | --r-main-font-size: #{$mainFontSize};
7 | --r-main-color: #{$mainColor};
8 | --r-block-margin: #{$blockMargin};
9 | --r-heading-margin: #{$headingMargin};
10 | --r-heading-font: #{$headingFont};
11 | --r-heading-color: #{$headingColor};
12 | --r-heading-line-height: #{$headingLineHeight};
13 | --r-heading-letter-spacing: #{$headingLetterSpacing};
14 | --r-heading-text-transform: #{$headingTextTransform};
15 | --r-heading-text-shadow: #{$headingTextShadow};
16 | --r-heading-font-weight: #{$headingFontWeight};
17 | --r-heading1-text-shadow: #{$heading1TextShadow};
18 | --r-heading1-size: #{$heading1Size};
19 | --r-heading2-size: #{$heading2Size};
20 | --r-heading3-size: #{$heading3Size};
21 | --r-heading4-size: #{$heading4Size};
22 | --r-code-font: #{$codeFont};
23 | --r-link-color: #{$linkColor};
24 | --r-link-color-dark: #{darken($linkColor , 15% )};
25 | --r-link-color-hover: #{$linkColorHover};
26 | --r-selection-background-color: #{$selectionBackgroundColor};
27 | --r-selection-color: #{$selectionColor};
28 | }
29 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/template/mixins.scss:
--------------------------------------------------------------------------------
1 | @mixin vertical-gradient( $top, $bottom ) {
2 | background: $top;
3 | background: -moz-linear-gradient( top, $top 0%, $bottom 100% );
4 | background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) );
5 | background: -webkit-linear-gradient( top, $top 0%, $bottom 100% );
6 | background: -o-linear-gradient( top, $top 0%, $bottom 100% );
7 | background: -ms-linear-gradient( top, $top 0%, $bottom 100% );
8 | background: linear-gradient( top, $top 0%, $bottom 100% );
9 | }
10 |
11 | @mixin horizontal-gradient( $top, $bottom ) {
12 | background: $top;
13 | background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
14 | background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
15 | background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
16 | background: -o-linear-gradient( left, $top 0%, $bottom 100% );
17 | background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
18 | background: linear-gradient( left, $top 0%, $bottom 100% );
19 | }
20 |
21 | @mixin radial-gradient( $outer, $inner, $type: circle ) {
22 | background: $outer;
23 | background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
24 | background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
25 | background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
26 | background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
27 | background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
28 | background: radial-gradient( center, $type cover, $inner 0%, $outer 100% );
29 | }
30 |
31 | @mixin light-bg-text-color( $color ) {
32 | section.has-light-background {
33 | &, h1, h2, h3, h4, h5, h6 {
34 | color: $color;
35 | }
36 | }
37 | }
38 |
39 | @mixin dark-bg-text-color( $color ) {
40 | section.has-dark-background {
41 | &, h1, h2, h3, h4, h5, h6 {
42 | color: $color;
43 | }
44 | }
45 | }
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/template/settings.scss:
--------------------------------------------------------------------------------
1 | // Base settings for all themes that can optionally be
2 | // overridden by the super-theme
3 |
4 | // Background of the presentation
5 | $backgroundColor: #2b2b2b;
6 |
7 | // Primary/body text
8 | $mainFont: 'Lato', sans-serif;
9 | $mainFontSize: 40px;
10 | $mainColor: #eee;
11 |
12 | // Vertical spacing between blocks of text
13 | $blockMargin: 20px;
14 |
15 | // Headings
16 | $headingMargin: 0 0 $blockMargin 0;
17 | $headingFont: 'League Gothic', Impact, sans-serif;
18 | $headingColor: #eee;
19 | $headingLineHeight: 1.2;
20 | $headingLetterSpacing: normal;
21 | $headingTextTransform: uppercase;
22 | $headingTextShadow: none;
23 | $headingFontWeight: normal;
24 | $heading1TextShadow: $headingTextShadow;
25 |
26 | $heading1Size: 3.77em;
27 | $heading2Size: 2.11em;
28 | $heading3Size: 1.55em;
29 | $heading4Size: 1.00em;
30 |
31 | $codeFont: monospace;
32 |
33 | // Links and actions
34 | $linkColor: #13DAEC;
35 | $linkColorHover: lighten( $linkColor, 20% );
36 |
37 | // Text selection
38 | $selectionBackgroundColor: #FF5E99;
39 | $selectionColor: #fff;
40 |
41 | // Generates the presentation background, can be overridden
42 | // to return a background image or gradient
43 | @mixin bodyBackground() {
44 | background: $backgroundColor;
45 | }
46 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/css/theme/template/theme.scss:
--------------------------------------------------------------------------------
1 | // Base theme template for reveal.js
2 |
3 | /*********************************************
4 | * GLOBAL STYLES
5 | *********************************************/
6 |
7 | @import "./exposer";
8 |
9 | .reveal-viewport {
10 | @include bodyBackground();
11 | background-color: var(--r-background-color);
12 | }
13 |
14 | .reveal {
15 | font-family: var(--r-main-font);
16 | font-size: var(--r-main-font-size);
17 | font-weight: normal;
18 | color: var(--r-main-color);
19 | }
20 |
21 | .reveal ::selection {
22 | color: var(--r-selection-color);
23 | background: var(--r-selection-background-color);
24 | text-shadow: none;
25 | }
26 |
27 | .reveal ::-moz-selection {
28 | color: var(--r-selection-color);
29 | background: var(--r-selection-background-color);
30 | text-shadow: none;
31 | }
32 |
33 | .reveal .slides section,
34 | .reveal .slides section>section {
35 | line-height: 1.3;
36 | font-weight: inherit;
37 | }
38 |
39 | /*********************************************
40 | * HEADERS
41 | *********************************************/
42 |
43 | .reveal h1,
44 | .reveal h2,
45 | .reveal h3,
46 | .reveal h4,
47 | .reveal h5,
48 | .reveal h6 {
49 | margin: var(--r-heading-margin);
50 | color: var(--r-heading-color);
51 |
52 | font-family: var(--r-heading-font);
53 | font-weight: var(--r-heading-font-weight);
54 | line-height: var(--r-heading-line-height);
55 | letter-spacing: var(--r-heading-letter-spacing);
56 |
57 | text-transform: var(--r-heading-text-transform);
58 | text-shadow: var(--r-heading-text-shadow);
59 |
60 | word-wrap: break-word;
61 | }
62 |
63 | .reveal h1 {font-size: var(--r-heading1-size); }
64 | .reveal h2 {font-size: var(--r-heading2-size); }
65 | .reveal h3 {font-size: var(--r-heading3-size); }
66 | .reveal h4 {font-size: var(--r-heading4-size); }
67 |
68 | .reveal h1 {
69 | text-shadow: var(--r-heading1-text-shadow);
70 | }
71 |
72 |
73 | /*********************************************
74 | * OTHER
75 | *********************************************/
76 |
77 | .reveal p {
78 | margin: var(--r-block-margin) 0;
79 | line-height: 1.3;
80 | }
81 |
82 | /* Remove trailing margins after titles */
83 | .reveal h1:last-child,
84 | .reveal h2:last-child,
85 | .reveal h3:last-child,
86 | .reveal h4:last-child,
87 | .reveal h5:last-child,
88 | .reveal h6:last-child {
89 | margin-bottom: 0;
90 | }
91 |
92 | /* Ensure certain elements are never larger than the slide itself */
93 | .reveal img,
94 | .reveal video,
95 | .reveal iframe {
96 | max-width: 95%;
97 | max-height: 95%;
98 | }
99 | .reveal strong,
100 | .reveal b {
101 | font-weight: bold;
102 | }
103 |
104 | .reveal em {
105 | font-style: italic;
106 | }
107 |
108 | .reveal ol,
109 | .reveal dl,
110 | .reveal ul {
111 | display: inline-block;
112 |
113 | text-align: left;
114 | margin: 0 0 0 1em;
115 | }
116 |
117 | .reveal ol {
118 | list-style-type: decimal;
119 | }
120 |
121 | .reveal ul {
122 | list-style-type: disc;
123 | }
124 |
125 | .reveal ul ul {
126 | list-style-type: square;
127 | }
128 |
129 | .reveal ul ul ul {
130 | list-style-type: circle;
131 | }
132 |
133 | .reveal ul ul,
134 | .reveal ul ol,
135 | .reveal ol ol,
136 | .reveal ol ul {
137 | display: block;
138 | margin-left: 40px;
139 | }
140 |
141 | .reveal dt {
142 | font-weight: bold;
143 | }
144 |
145 | .reveal dd {
146 | margin-left: 40px;
147 | }
148 |
149 | .reveal blockquote {
150 | display: block;
151 | position: relative;
152 | width: 70%;
153 | margin: var(--r-block-margin) auto;
154 | padding: 5px;
155 |
156 | font-style: italic;
157 | background: rgba(255, 255, 255, 0.05);
158 | box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
159 | }
160 | .reveal blockquote p:first-child,
161 | .reveal blockquote p:last-child {
162 | display: inline-block;
163 | }
164 |
165 | .reveal q {
166 | font-style: italic;
167 | }
168 |
169 | .reveal pre {
170 | display: block;
171 | position: relative;
172 | width: 90%;
173 | margin: var(--r-block-margin) auto;
174 |
175 | text-align: left;
176 | font-size: 0.55em;
177 | font-family: var(--r-code-font);
178 | line-height: 1.2em;
179 |
180 | word-wrap: break-word;
181 |
182 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
183 | }
184 |
185 | .reveal code {
186 | font-family: var(--r-code-font);
187 | text-transform: none;
188 | tab-size: 2;
189 | }
190 |
191 | .reveal pre code {
192 | display: block;
193 | padding: 5px;
194 | overflow: auto;
195 | max-height: 400px;
196 | word-wrap: normal;
197 | }
198 |
199 | .reveal .code-wrapper {
200 | white-space: normal;
201 | }
202 |
203 | .reveal .code-wrapper code {
204 | white-space: pre;
205 | }
206 |
207 | .reveal table {
208 | margin: auto;
209 | border-collapse: collapse;
210 | border-spacing: 0;
211 | }
212 |
213 | .reveal table th {
214 | font-weight: bold;
215 | }
216 |
217 | .reveal table th,
218 | .reveal table td {
219 | text-align: left;
220 | padding: 0.2em 0.5em 0.2em 0.5em;
221 | border-bottom: 1px solid;
222 | }
223 |
224 | .reveal table th[align="center"],
225 | .reveal table td[align="center"] {
226 | text-align: center;
227 | }
228 |
229 | .reveal table th[align="right"],
230 | .reveal table td[align="right"] {
231 | text-align: right;
232 | }
233 |
234 | .reveal table tbody tr:last-child th,
235 | .reveal table tbody tr:last-child td {
236 | border-bottom: none;
237 | }
238 |
239 | .reveal sup {
240 | vertical-align: super;
241 | font-size: smaller;
242 | }
243 | .reveal sub {
244 | vertical-align: sub;
245 | font-size: smaller;
246 | }
247 |
248 | .reveal small {
249 | display: inline-block;
250 | font-size: 0.6em;
251 | line-height: 1.2em;
252 | vertical-align: top;
253 | }
254 |
255 | .reveal small * {
256 | vertical-align: top;
257 | }
258 |
259 | .reveal img {
260 | margin: var(--r-block-margin) 0;
261 | }
262 |
263 |
264 | /*********************************************
265 | * LINKS
266 | *********************************************/
267 |
268 | .reveal a {
269 | color: var(--r-link-color);
270 | text-decoration: none;
271 | transition: color .15s ease;
272 | }
273 | .reveal a:hover {
274 | color: var(--r-link-color-hover);
275 | text-shadow: none;
276 | border: none;
277 | }
278 |
279 | .reveal .roll span:after {
280 | color: #fff;
281 | // background: darken( var(--r-link-color), 15% );
282 | background: var(--r-link-color-dark);
283 |
284 | }
285 |
286 |
287 | /*********************************************
288 | * Frame helper
289 | *********************************************/
290 |
291 | .reveal .r-frame {
292 | border: 4px solid var(--r-main-color);
293 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
294 | }
295 |
296 | .reveal a .r-frame {
297 | transition: all .15s linear;
298 | }
299 |
300 | .reveal a:hover .r-frame {
301 | border-color: var(--r-link-color);
302 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
303 | }
304 |
305 |
306 | /*********************************************
307 | * NAVIGATION CONTROLS
308 | *********************************************/
309 |
310 | .reveal .controls {
311 | color: var(--r-link-color);
312 | }
313 |
314 |
315 | /*********************************************
316 | * PROGRESS BAR
317 | *********************************************/
318 |
319 | .reveal .progress {
320 | background: rgba(0,0,0,0.2);
321 | color: var(--r-link-color);
322 | }
323 |
324 | /*********************************************
325 | * PRINT BACKGROUND
326 | *********************************************/
327 | @media print {
328 | .backgrounds {
329 | background-color: var(--r-background-color);
330 | }
331 | }
332 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/reset.css:
--------------------------------------------------------------------------------
1 | /* http://meyerweb.com/eric/tools/css/reset/
2 | v4.0 | 20180602
3 | License: none (public domain)
4 | */
5 |
6 | html, body, div, span, applet, object, iframe,
7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8 | a, abbr, acronym, address, big, cite, code,
9 | del, dfn, em, img, ins, kbd, q, s, samp,
10 | small, strike, strong, sub, sup, tt, var,
11 | b, u, i, center,
12 | dl, dt, dd, ol, ul, li,
13 | fieldset, form, label, legend,
14 | table, caption, tbody, tfoot, thead, tr, th, td,
15 | article, aside, canvas, details, embed,
16 | figure, figcaption, footer, header, hgroup,
17 | main, menu, nav, output, ruby, section, summary,
18 | time, mark, audio, video {
19 | margin: 0;
20 | padding: 0;
21 | border: 0;
22 | font-size: 100%;
23 | font: inherit;
24 | vertical-align: baseline;
25 | }
26 | /* HTML5 display-role reset for older browsers */
27 | article, aside, details, figcaption, figure,
28 | footer, header, hgroup, main, menu, nav, section {
29 | display: block;
30 | }
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/league-gothic/LICENSE:
--------------------------------------------------------------------------------
1 | SIL Open Font License (OFL)
2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
3 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/league-gothic/league-gothic.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'League Gothic';
3 | src: url('./league-gothic.eot');
4 | src: url('./league-gothic.eot?#iefix') format('embedded-opentype'),
5 | url('./league-gothic.woff') format('woff'),
6 | url('./league-gothic.ttf') format('truetype');
7 |
8 | font-weight: normal;
9 | font-style: normal;
10 | }
11 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/league-gothic/league-gothic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/league-gothic/league-gothic.eot
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/league-gothic/league-gothic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/league-gothic/league-gothic.ttf
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/league-gothic/league-gothic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/league-gothic/league-gothic.woff
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/LICENSE:
--------------------------------------------------------------------------------
1 | SIL Open Font License
2 |
3 | Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
4 |
5 | This Font Software is licensed under the SIL Open Font License, Version 1.1.
6 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
7 |
8 | —————————————————————————————-
9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10 | —————————————————————————————-
11 |
12 | PREAMBLE
13 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
14 |
15 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
16 |
17 | DEFINITIONS
18 | “Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
19 |
20 | “Reserved Font Name” refers to any names specified as such after the copyright statement(s).
21 |
22 | “Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s).
23 |
24 | “Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
25 |
26 | “Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
27 |
28 | PERMISSION & CONDITIONS
29 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
30 |
31 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
32 |
33 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
34 |
35 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
36 |
37 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
38 |
39 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
40 |
41 | TERMINATION
42 | This license becomes null and void if any of the above conditions are not met.
43 |
44 | DISCLAIMER
45 | THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.eot
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.woff
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.eot
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.woff
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/fonts/source-sans-pro/source-sans-pro.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'Source Sans Pro';
3 | src: url('./source-sans-pro-regular.eot');
4 | src: url('./source-sans-pro-regular.eot?#iefix') format('embedded-opentype'),
5 | url('./source-sans-pro-regular.woff') format('woff'),
6 | url('./source-sans-pro-regular.ttf') format('truetype');
7 | font-weight: normal;
8 | font-style: normal;
9 | }
10 |
11 | @font-face {
12 | font-family: 'Source Sans Pro';
13 | src: url('./source-sans-pro-italic.eot');
14 | src: url('./source-sans-pro-italic.eot?#iefix') format('embedded-opentype'),
15 | url('./source-sans-pro-italic.woff') format('woff'),
16 | url('./source-sans-pro-italic.ttf') format('truetype');
17 | font-weight: normal;
18 | font-style: italic;
19 | }
20 |
21 | @font-face {
22 | font-family: 'Source Sans Pro';
23 | src: url('./source-sans-pro-semibold.eot');
24 | src: url('./source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'),
25 | url('./source-sans-pro-semibold.woff') format('woff'),
26 | url('./source-sans-pro-semibold.ttf') format('truetype');
27 | font-weight: 600;
28 | font-style: normal;
29 | }
30 |
31 | @font-face {
32 | font-family: 'Source Sans Pro';
33 | src: url('./source-sans-pro-semibolditalic.eot');
34 | src: url('./source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'),
35 | url('./source-sans-pro-semibolditalic.woff') format('woff'),
36 | url('./source-sans-pro-semibolditalic.ttf') format('truetype');
37 | font-weight: 600;
38 | font-style: italic;
39 | }
40 |
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/dist/theme/solarized.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Light theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 | @import url(./fonts/league-gothic/league-gothic.css);
6 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
7 | /**
8 | * Solarized colors by Ethan Schoonover
9 | */
10 | html * {
11 | color-profile: sRGB;
12 | rendering-intent: auto;
13 | }
14 |
15 | /*********************************************
16 | * GLOBAL STYLES
17 | *********************************************/
18 | :root {
19 | --r-background-color: #fdf6e3;
20 | --r-main-font: Lato, sans-serif;
21 | --r-main-font-size: 40px;
22 | --r-main-color: #657b83;
23 | --r-block-margin: 20px;
24 | --r-heading-margin: 0 0 20px 0;
25 | --r-heading-font: League Gothic, Impact, sans-serif;
26 | --r-heading-color: #586e75;
27 | --r-heading-line-height: 1.2;
28 | --r-heading-letter-spacing: normal;
29 | --r-heading-text-transform: uppercase;
30 | --r-heading-text-shadow: none;
31 | --r-heading-font-weight: normal;
32 | --r-heading1-text-shadow: none;
33 | --r-heading1-size: 3.77em;
34 | --r-heading2-size: 2.11em;
35 | --r-heading3-size: 1.55em;
36 | --r-heading4-size: 1em;
37 | --r-code-font: monospace;
38 | --r-link-color: #268bd2;
39 | --r-link-color-dark: #1a6091;
40 | --r-link-color-hover: #78b9e6;
41 | --r-selection-background-color: #d33682;
42 | --r-selection-color: #fff;
43 | }
44 |
45 | .reveal-viewport {
46 | background: #fdf6e3;
47 | background-color: var(--r-background-color);
48 | }
49 |
50 | .reveal {
51 | font-family: var(--r-main-font);
52 | font-size: var(--r-main-font-size);
53 | font-weight: normal;
54 | color: var(--r-main-color);
55 | }
56 |
57 | .reveal ::selection {
58 | color: var(--r-selection-color);
59 | background: var(--r-selection-background-color);
60 | text-shadow: none;
61 | }
62 |
63 | .reveal ::-moz-selection {
64 | color: var(--r-selection-color);
65 | background: var(--r-selection-background-color);
66 | text-shadow: none;
67 | }
68 |
69 | .reveal .slides section,
70 | .reveal .slides section > section {
71 | line-height: 1.3;
72 | font-weight: inherit;
73 | }
74 |
75 | /*********************************************
76 | * HEADERS
77 | *********************************************/
78 | .reveal h1,
79 | .reveal h2,
80 | .reveal h3,
81 | .reveal h4,
82 | .reveal h5,
83 | .reveal h6 {
84 | margin: var(--r-heading-margin);
85 | color: var(--r-heading-color);
86 | font-family: var(--r-heading-font);
87 | font-weight: var(--r-heading-font-weight);
88 | line-height: var(--r-heading-line-height);
89 | letter-spacing: var(--r-heading-letter-spacing);
90 | text-transform: var(--r-heading-text-transform);
91 | text-shadow: var(--r-heading-text-shadow);
92 | word-wrap: break-word;
93 | }
94 |
95 | .reveal h1 {
96 | font-size: var(--r-heading1-size);
97 | }
98 |
99 | .reveal h2 {
100 | font-size: var(--r-heading2-size);
101 | }
102 |
103 | .reveal h3 {
104 | font-size: var(--r-heading3-size);
105 | }
106 |
107 | .reveal h4 {
108 | font-size: var(--r-heading4-size);
109 | }
110 |
111 | .reveal h1 {
112 | text-shadow: var(--r-heading1-text-shadow);
113 | }
114 |
115 | /*********************************************
116 | * OTHER
117 | *********************************************/
118 | .reveal p {
119 | margin: var(--r-block-margin) 0;
120 | line-height: 1.3;
121 | }
122 |
123 | /* Remove trailing margins after titles */
124 | .reveal h1:last-child,
125 | .reveal h2:last-child,
126 | .reveal h3:last-child,
127 | .reveal h4:last-child,
128 | .reveal h5:last-child,
129 | .reveal h6:last-child {
130 | margin-bottom: 0;
131 | }
132 |
133 | /* Ensure certain elements are never larger than the slide itself */
134 | .reveal img,
135 | .reveal video,
136 | .reveal iframe {
137 | max-width: 95%;
138 | max-height: 95%;
139 | }
140 |
141 | .reveal strong,
142 | .reveal b {
143 | font-weight: bold;
144 | }
145 |
146 | .reveal em {
147 | font-style: italic;
148 | }
149 |
150 | .reveal ol,
151 | .reveal dl,
152 | .reveal ul {
153 | display: inline-block;
154 | text-align: left;
155 | margin: 0 0 0 1em;
156 | }
157 |
158 | .reveal ol {
159 | list-style-type: decimal;
160 | }
161 |
162 | .reveal ul {
163 | list-style-type: disc;
164 | }
165 |
166 | .reveal ul ul {
167 | list-style-type: square;
168 | }
169 |
170 | .reveal ul ul ul {
171 | list-style-type: circle;
172 | }
173 |
174 | .reveal ul ul,
175 | .reveal ul ol,
176 | .reveal ol ol,
177 | .reveal ol ul {
178 | display: block;
179 | margin-left: 40px;
180 | }
181 |
182 | .reveal dt {
183 | font-weight: bold;
184 | }
185 |
186 | .reveal dd {
187 | margin-left: 40px;
188 | }
189 |
190 | .reveal blockquote {
191 | display: block;
192 | position: relative;
193 | width: 70%;
194 | margin: var(--r-block-margin) auto;
195 | padding: 5px;
196 | font-style: italic;
197 | background: rgba(255, 255, 255, 0.05);
198 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
199 | }
200 |
201 | .reveal blockquote p:first-child,
202 | .reveal blockquote p:last-child {
203 | display: inline-block;
204 | }
205 |
206 | .reveal q {
207 | font-style: italic;
208 | }
209 |
210 | .reveal pre {
211 | display: block;
212 | position: relative;
213 | width: 90%;
214 | margin: var(--r-block-margin) auto;
215 | text-align: left;
216 | font-size: 0.55em;
217 | font-family: var(--r-code-font);
218 | line-height: 1.2em;
219 | word-wrap: break-word;
220 | box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
221 | }
222 |
223 | .reveal code {
224 | font-family: var(--r-code-font);
225 | text-transform: none;
226 | tab-size: 2;
227 | }
228 |
229 | .reveal pre code {
230 | display: block;
231 | padding: 5px;
232 | overflow: auto;
233 | max-height: 400px;
234 | word-wrap: normal;
235 | }
236 |
237 | .reveal .code-wrapper {
238 | white-space: normal;
239 | }
240 |
241 | .reveal .code-wrapper code {
242 | white-space: pre;
243 | }
244 |
245 | .reveal table {
246 | margin: auto;
247 | border-collapse: collapse;
248 | border-spacing: 0;
249 | }
250 |
251 | .reveal table th {
252 | font-weight: bold;
253 | }
254 |
255 | .reveal table th,
256 | .reveal table td {
257 | text-align: left;
258 | padding: 0.2em 0.5em 0.2em 0.5em;
259 | border-bottom: 1px solid;
260 | }
261 |
262 | .reveal table th[align=center],
263 | .reveal table td[align=center] {
264 | text-align: center;
265 | }
266 |
267 | .reveal table th[align=right],
268 | .reveal table td[align=right] {
269 | text-align: right;
270 | }
271 |
272 | .reveal table tbody tr:last-child th,
273 | .reveal table tbody tr:last-child td {
274 | border-bottom: none;
275 | }
276 |
277 | .reveal sup {
278 | vertical-align: super;
279 | font-size: smaller;
280 | }
281 |
282 | .reveal sub {
283 | vertical-align: sub;
284 | font-size: smaller;
285 | }
286 |
287 | .reveal small {
288 | display: inline-block;
289 | font-size: 0.6em;
290 | line-height: 1.2em;
291 | vertical-align: top;
292 | }
293 |
294 | .reveal small * {
295 | vertical-align: top;
296 | }
297 |
298 | .reveal img {
299 | margin: var(--r-block-margin) 0;
300 | }
301 |
302 | /*********************************************
303 | * LINKS
304 | *********************************************/
305 | .reveal a {
306 | color: var(--r-link-color);
307 | text-decoration: none;
308 | transition: color 0.15s ease;
309 | }
310 |
311 | .reveal a:hover {
312 | color: var(--r-link-color-hover);
313 | text-shadow: none;
314 | border: none;
315 | }
316 |
317 | .reveal .roll span:after {
318 | color: #fff;
319 | background: var(--r-link-color-dark);
320 | }
321 |
322 | /*********************************************
323 | * Frame helper
324 | *********************************************/
325 | .reveal .r-frame {
326 | border: 4px solid var(--r-main-color);
327 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
328 | }
329 |
330 | .reveal a .r-frame {
331 | transition: all 0.15s linear;
332 | }
333 |
334 | .reveal a:hover .r-frame {
335 | border-color: var(--r-link-color);
336 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
337 | }
338 |
339 | /*********************************************
340 | * NAVIGATION CONTROLS
341 | *********************************************/
342 | .reveal .controls {
343 | color: var(--r-link-color);
344 | }
345 |
346 | /*********************************************
347 | * PROGRESS BAR
348 | *********************************************/
349 | .reveal .progress {
350 | background: rgba(0, 0, 0, 0.2);
351 | color: var(--r-link-color);
352 | }
353 |
354 | /*********************************************
355 | * PRINT BACKGROUND
356 | *********************************************/
357 | @media print {
358 | .backgrounds {
359 | background-color: var(--r-background-color);
360 | }
361 | }
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/NOTES.md:
--------------------------------------------------------------------------------
1 | # Presentation notes
2 |
3 | ## Computer setup
4 | 1. Disable login and power sleep
5 | 1. Close all windows
6 | 2. Copy presentation on USB
7 |
8 | ## Setup equipments
9 | - Power on router - Admin - http://192.168.8.1/#/login
10 | - Wait for all lights to be on
11 | - Plugin raspberry pi LAN wire
12 | - Power on Raspberry Pi 3
13 | - Power on Raspberry W
14 |
15 | ## Start fileserver
16 | - Terminal window 1
17 | - ssh pi@rasberrypi.lan
18 | - Start examples/fileserver
19 | - New terminal (split)
20 | - ssh pi@rasberrypi.an
21 | - ssh pi@picam.lan
22 |
23 | ## Setup laptop
24 |
25 | - Close all applications
26 | - Presentation browser in screen 2
27 | - Terminal in screen 3
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/book.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/book.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/cry.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/cry.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/dance.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/dance.gif
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/demo-setup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/demo-setup.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/facebg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/facebg.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/masks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/masks.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/nostream.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/nostream.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/picam-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/picam-bg.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/picard-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/picard-bg.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/picard-please.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/picard-please.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/picard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/picard.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/road-to-v4l2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/road-to-v4l2.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/img/wp-cam-shortage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gophercon/2022-talks/4f40cabec7e2e045d083d0884cda56125ebf5d3d/vladimirvivien-RealtimeVideoCaptureLinux/img/wp-cam-shortage.png
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/js/components/playback.js:
--------------------------------------------------------------------------------
1 | /**
2 | * UI component that lets the use control auto-slide
3 | * playback via play/pause.
4 | */
5 | export default class Playback {
6 |
7 | /**
8 | * @param {HTMLElement} container The component will append
9 | * itself to this
10 | * @param {function} progressCheck A method which will be
11 | * called frequently to get the current playback progress on
12 | * a range of 0-1
13 | */
14 | constructor( container, progressCheck ) {
15 |
16 | // Cosmetics
17 | this.diameter = 100;
18 | this.diameter2 = this.diameter/2;
19 | this.thickness = 6;
20 |
21 | // Flags if we are currently playing
22 | this.playing = false;
23 |
24 | // Current progress on a 0-1 range
25 | this.progress = 0;
26 |
27 | // Used to loop the animation smoothly
28 | this.progressOffset = 1;
29 |
30 | this.container = container;
31 | this.progressCheck = progressCheck;
32 |
33 | this.canvas = document.createElement( 'canvas' );
34 | this.canvas.className = 'playback';
35 | this.canvas.width = this.diameter;
36 | this.canvas.height = this.diameter;
37 | this.canvas.style.width = this.diameter2 + 'px';
38 | this.canvas.style.height = this.diameter2 + 'px';
39 | this.context = this.canvas.getContext( '2d' );
40 |
41 | this.container.appendChild( this.canvas );
42 |
43 | this.render();
44 |
45 | }
46 |
47 | setPlaying( value ) {
48 |
49 | const wasPlaying = this.playing;
50 |
51 | this.playing = value;
52 |
53 | // Start repainting if we weren't already
54 | if( !wasPlaying && this.playing ) {
55 | this.animate();
56 | }
57 | else {
58 | this.render();
59 | }
60 |
61 | }
62 |
63 | animate() {
64 |
65 | const progressBefore = this.progress;
66 |
67 | this.progress = this.progressCheck();
68 |
69 | // When we loop, offset the progress so that it eases
70 | // smoothly rather than immediately resetting
71 | if( progressBefore > 0.8 && this.progress < 0.2 ) {
72 | this.progressOffset = this.progress;
73 | }
74 |
75 | this.render();
76 |
77 | if( this.playing ) {
78 | requestAnimationFrame( this.animate.bind( this ) );
79 | }
80 |
81 | }
82 |
83 | /**
84 | * Renders the current progress and playback state.
85 | */
86 | render() {
87 |
88 | let progress = this.playing ? this.progress : 0,
89 | radius = ( this.diameter2 ) - this.thickness,
90 | x = this.diameter2,
91 | y = this.diameter2,
92 | iconSize = 28;
93 |
94 | // Ease towards 1
95 | this.progressOffset += ( 1 - this.progressOffset ) * 0.1;
96 |
97 | const endAngle = ( - Math.PI / 2 ) + ( progress * ( Math.PI * 2 ) );
98 | const startAngle = ( - Math.PI / 2 ) + ( this.progressOffset * ( Math.PI * 2 ) );
99 |
100 | this.context.save();
101 | this.context.clearRect( 0, 0, this.diameter, this.diameter );
102 |
103 | // Solid background color
104 | this.context.beginPath();
105 | this.context.arc( x, y, radius + 4, 0, Math.PI * 2, false );
106 | this.context.fillStyle = 'rgba( 0, 0, 0, 0.4 )';
107 | this.context.fill();
108 |
109 | // Draw progress track
110 | this.context.beginPath();
111 | this.context.arc( x, y, radius, 0, Math.PI * 2, false );
112 | this.context.lineWidth = this.thickness;
113 | this.context.strokeStyle = 'rgba( 255, 255, 255, 0.2 )';
114 | this.context.stroke();
115 |
116 | if( this.playing ) {
117 | // Draw progress on top of track
118 | this.context.beginPath();
119 | this.context.arc( x, y, radius, startAngle, endAngle, false );
120 | this.context.lineWidth = this.thickness;
121 | this.context.strokeStyle = '#fff';
122 | this.context.stroke();
123 | }
124 |
125 | this.context.translate( x - ( iconSize / 2 ), y - ( iconSize / 2 ) );
126 |
127 | // Draw play/pause icons
128 | if( this.playing ) {
129 | this.context.fillStyle = '#fff';
130 | this.context.fillRect( 0, 0, iconSize / 2 - 4, iconSize );
131 | this.context.fillRect( iconSize / 2 + 4, 0, iconSize / 2 - 4, iconSize );
132 | }
133 | else {
134 | this.context.beginPath();
135 | this.context.translate( 4, 0 );
136 | this.context.moveTo( 0, 0 );
137 | this.context.lineTo( iconSize - 4, iconSize / 2 );
138 | this.context.lineTo( 0, iconSize );
139 | this.context.fillStyle = '#fff';
140 | this.context.fill();
141 | }
142 |
143 | this.context.restore();
144 |
145 | }
146 |
147 | on( type, listener ) {
148 | this.canvas.addEventListener( type, listener, false );
149 | }
150 |
151 | off( type, listener ) {
152 | this.canvas.removeEventListener( type, listener, false );
153 | }
154 |
155 | destroy() {
156 |
157 | this.playing = false;
158 |
159 | if( this.canvas.parentNode ) {
160 | this.container.removeChild( this.canvas );
161 | }
162 |
163 | }
164 |
165 | }
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/js/controllers/focus.js:
--------------------------------------------------------------------------------
1 | import { closest } from '../utils/util.js'
2 |
3 | /**
4 | * Manages focus when a presentation is embedded. This
5 | * helps us only capture keyboard from the presentation
6 | * a user is currently interacting with in a page where
7 | * multiple presentations are embedded.
8 | */
9 |
10 | const STATE_FOCUS = 'focus';
11 | const STATE_BLUR = 'blur';
12 |
13 | export default class Focus {
14 |
15 | constructor( Reveal ) {
16 |
17 | this.Reveal = Reveal;
18 |
19 | this.onRevealPointerDown = this.onRevealPointerDown.bind( this );
20 | this.onDocumentPointerDown = this.onDocumentPointerDown.bind( this );
21 |
22 | }
23 |
24 | /**
25 | * Called when the reveal.js config is updated.
26 | */
27 | configure( config, oldConfig ) {
28 |
29 | if( config.embedded ) {
30 | this.blur();
31 | }
32 | else {
33 | this.focus();
34 | this.unbind();
35 | }
36 |
37 | }
38 |
39 | bind() {
40 |
41 | if( this.Reveal.getConfig().embedded ) {
42 | this.Reveal.getRevealElement().addEventListener( 'pointerdown', this.onRevealPointerDown, false );
43 | }
44 |
45 | }
46 |
47 | unbind() {
48 |
49 | this.Reveal.getRevealElement().removeEventListener( 'pointerdown', this.onRevealPointerDown, false );
50 | document.removeEventListener( 'pointerdown', this.onDocumentPointerDown, false );
51 |
52 | }
53 |
54 | focus() {
55 |
56 | if( this.state !== STATE_FOCUS ) {
57 | this.Reveal.getRevealElement().classList.add( 'focused' );
58 | document.addEventListener( 'pointerdown', this.onDocumentPointerDown, false );
59 | }
60 |
61 | this.state = STATE_FOCUS;
62 |
63 | }
64 |
65 | blur() {
66 |
67 | if( this.state !== STATE_BLUR ) {
68 | this.Reveal.getRevealElement().classList.remove( 'focused' );
69 | document.removeEventListener( 'pointerdown', this.onDocumentPointerDown, false );
70 | }
71 |
72 | this.state = STATE_BLUR;
73 |
74 | }
75 |
76 | isFocused() {
77 |
78 | return this.state === STATE_FOCUS;
79 |
80 | }
81 |
82 | destroy() {
83 |
84 | this.Reveal.getRevealElement().classList.remove( 'focused' );
85 |
86 | }
87 |
88 | onRevealPointerDown( event ) {
89 |
90 | this.focus();
91 |
92 | }
93 |
94 | onDocumentPointerDown( event ) {
95 |
96 | let revealElement = closest( event.target, '.reveal' );
97 | if( !revealElement || revealElement !== this.Reveal.getRevealElement() ) {
98 | this.blur();
99 | }
100 |
101 | }
102 |
103 | }
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/js/controllers/location.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Reads and writes the URL based on reveal.js' current state.
3 | */
4 | export default class Location {
5 |
6 | // The minimum number of milliseconds that must pass between
7 | // calls to history.replaceState
8 | MAX_REPLACE_STATE_FREQUENCY = 1000
9 |
10 | constructor( Reveal ) {
11 |
12 | this.Reveal = Reveal;
13 |
14 | // Delays updates to the URL due to a Chrome thumbnailer bug
15 | this.writeURLTimeout = 0;
16 |
17 | this.replaceStateTimestamp = 0;
18 |
19 | this.onWindowHashChange = this.onWindowHashChange.bind( this );
20 |
21 | }
22 |
23 | bind() {
24 |
25 | window.addEventListener( 'hashchange', this.onWindowHashChange, false );
26 |
27 | }
28 |
29 | unbind() {
30 |
31 | window.removeEventListener( 'hashchange', this.onWindowHashChange, false );
32 |
33 | }
34 |
35 | /**
36 | * Returns the slide indices for the given hash link.
37 | *
38 | * @param {string} [hash] the hash string that we want to
39 | * find the indices for
40 | *
41 | * @returns slide indices or null
42 | */
43 | getIndicesFromHash( hash=window.location.hash ) {
44 |
45 | // Attempt to parse the hash as either an index or name
46 | let name = hash.replace( /^#\/?/, '' );
47 | let bits = name.split( '/' );
48 |
49 | // If the first bit is not fully numeric and there is a name we
50 | // can assume that this is a named link
51 | if( !/^[0-9]*$/.test( bits[0] ) && name.length ) {
52 | let element;
53 |
54 | let f;
55 |
56 | // Parse named links with fragments (#/named-link/2)
57 | if( /\/[-\d]+$/g.test( name ) ) {
58 | f = parseInt( name.split( '/' ).pop(), 10 );
59 | f = isNaN(f) ? undefined : f;
60 | name = name.split( '/' ).shift();
61 | }
62 |
63 | // Ensure the named link is a valid HTML ID attribute
64 | try {
65 | element = document.getElementById( decodeURIComponent( name ) );
66 | }
67 | catch ( error ) { }
68 |
69 | if( element ) {
70 | return { ...this.Reveal.getIndices( element ), f };
71 | }
72 | }
73 | else {
74 | const config = this.Reveal.getConfig();
75 | let hashIndexBase = config.hashOneBasedIndex ? 1 : 0;
76 |
77 | // Read the index components of the hash
78 | let h = ( parseInt( bits[0], 10 ) - hashIndexBase ) || 0,
79 | v = ( parseInt( bits[1], 10 ) - hashIndexBase ) || 0,
80 | f;
81 |
82 | if( config.fragmentInURL ) {
83 | f = parseInt( bits[2], 10 );
84 | if( isNaN( f ) ) {
85 | f = undefined;
86 | }
87 | }
88 |
89 | return { h, v, f };
90 | }
91 |
92 | // The hash couldn't be parsed or no matching named link was found
93 | return null
94 |
95 | }
96 |
97 | /**
98 | * Reads the current URL (hash) and navigates accordingly.
99 | */
100 | readURL() {
101 |
102 | const currentIndices = this.Reveal.getIndices();
103 | const newIndices = this.getIndicesFromHash();
104 |
105 | if( newIndices ) {
106 | if( ( newIndices.h !== currentIndices.h || newIndices.v !== currentIndices.v || newIndices.f !== undefined ) ) {
107 | this.Reveal.slide( newIndices.h, newIndices.v, newIndices.f );
108 | }
109 | }
110 | // If no new indices are available, we're trying to navigate to
111 | // a slide hash that does not exist
112 | else {
113 | this.Reveal.slide( currentIndices.h || 0, currentIndices.v || 0 );
114 | }
115 |
116 | }
117 |
118 | /**
119 | * Updates the page URL (hash) to reflect the current
120 | * state.
121 | *
122 | * @param {number} delay The time in ms to wait before
123 | * writing the hash
124 | */
125 | writeURL( delay ) {
126 |
127 | let config = this.Reveal.getConfig();
128 | let currentSlide = this.Reveal.getCurrentSlide();
129 |
130 | // Make sure there's never more than one timeout running
131 | clearTimeout( this.writeURLTimeout );
132 |
133 | // If a delay is specified, timeout this call
134 | if( typeof delay === 'number' ) {
135 | this.writeURLTimeout = setTimeout( this.writeURL, delay );
136 | }
137 | else if( currentSlide ) {
138 |
139 | let hash = this.getHash();
140 |
141 | // If we're configured to push to history OR the history
142 | // API is not avaialble.
143 | if( config.history ) {
144 | window.location.hash = hash;
145 | }
146 | // If we're configured to reflect the current slide in the
147 | // URL without pushing to history.
148 | else if( config.hash ) {
149 | // If the hash is empty, don't add it to the URL
150 | if( hash === '/' ) {
151 | this.debouncedReplaceState( window.location.pathname + window.location.search );
152 | }
153 | else {
154 | this.debouncedReplaceState( '#' + hash );
155 | }
156 | }
157 | // UPDATE: The below nuking of all hash changes breaks
158 | // anchors on pages where reveal.js is running. Removed
159 | // in 4.0. Why was it here in the first place? ¯\_(ツ)_/¯
160 | //
161 | // If history and hash are both disabled, a hash may still
162 | // be added to the URL by clicking on a href with a hash
163 | // target. Counter this by always removing the hash.
164 | // else {
165 | // window.history.replaceState( null, null, window.location.pathname + window.location.search );
166 | // }
167 |
168 | }
169 |
170 | }
171 |
172 | replaceState( url ) {
173 |
174 | window.history.replaceState( null, null, url );
175 | this.replaceStateTimestamp = Date.now();
176 |
177 | }
178 |
179 | debouncedReplaceState( url ) {
180 |
181 | clearTimeout( this.replaceStateTimeout );
182 |
183 | if( Date.now() - this.replaceStateTimestamp > this.MAX_REPLACE_STATE_FREQUENCY ) {
184 | this.replaceState( url );
185 | }
186 | else {
187 | this.replaceStateTimeout = setTimeout( () => this.replaceState( url ), this.MAX_REPLACE_STATE_FREQUENCY );
188 | }
189 |
190 | }
191 |
192 | /**
193 | * Return a hash URL that will resolve to the given slide location.
194 | *
195 | * @param {HTMLElement} [slide=currentSlide] The slide to link to
196 | */
197 | getHash( slide ) {
198 |
199 | let url = '/';
200 |
201 | // Attempt to create a named link based on the slide's ID
202 | let s = slide || this.Reveal.getCurrentSlide();
203 | let id = s ? s.getAttribute( 'id' ) : null;
204 | if( id ) {
205 | id = encodeURIComponent( id );
206 | }
207 |
208 | let index = this.Reveal.getIndices( slide );
209 | if( !this.Reveal.getConfig().fragmentInURL ) {
210 | index.f = undefined;
211 | }
212 |
213 | // If the current slide has an ID, use that as a named link,
214 | // but we don't support named links with a fragment index
215 | if( typeof id === 'string' && id.length ) {
216 | url = '/' + id;
217 |
218 | // If there is also a fragment, append that at the end
219 | // of the named link, like: #/named-link/2
220 | if( index.f >= 0 ) url += '/' + index.f;
221 | }
222 | // Otherwise use the /h/v index
223 | else {
224 | let hashIndexBase = this.Reveal.getConfig().hashOneBasedIndex ? 1 : 0;
225 | if( index.h > 0 || index.v > 0 || index.f >= 0 ) url += index.h + hashIndexBase;
226 | if( index.v > 0 || index.f >= 0 ) url += '/' + (index.v + hashIndexBase );
227 | if( index.f >= 0 ) url += '/' + index.f;
228 | }
229 |
230 | return url;
231 |
232 | }
233 |
234 | /**
235 | * Handler for the window level 'hashchange' event.
236 | *
237 | * @param {object} [event]
238 | */
239 | onWindowHashChange( event ) {
240 |
241 | this.readURL();
242 |
243 | }
244 |
245 | }
--------------------------------------------------------------------------------
/vladimirvivien-RealtimeVideoCaptureLinux/js/controllers/notes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Handles the showing of speaker notes
3 | */
4 | export default class Notes {
5 |
6 | constructor( Reveal ) {
7 |
8 | this.Reveal = Reveal;
9 |
10 | }
11 |
12 | render() {
13 |
14 | this.element = document.createElement( 'div' );
15 | this.element.className = 'speaker-notes';
16 | this.element.setAttribute( 'data-prevent-swipe', '' );
17 | this.element.setAttribute( 'tabindex', '0' );
18 | this.Reveal.getRevealElement().appendChild( this.element );
19 |
20 | }
21 |
22 | /**
23 | * Called when the reveal.js config is updated.
24 | */
25 | configure( config, oldConfig ) {
26 |
27 | if( config.showNotes ) {
28 | this.element.setAttribute( 'data-layout', typeof config.showNotes === 'string' ? config.showNotes : 'inline' );
29 | }
30 |
31 | }
32 |
33 | /**
34 | * Pick up notes from the current slide and display them
35 | * to the viewer.
36 | *
37 | * @see {@link config.showNotes}
38 | */
39 | update() {
40 |
41 | if( this.Reveal.getConfig().showNotes && this.element && this.Reveal.getCurrentSlide() && !this.Reveal.print.isPrintingPDF() ) {
42 |
43 | this.element.innerHTML = this.getSlideNotes() || 'No notes on this slide.';
44 |
45 | }
46 |
47 | }
48 |
49 | /**
50 | * Updates the visibility of the speaker notes sidebar that
51 | * is used to share annotated slides. The notes sidebar is
52 | * only visible if showNotes is true and there are notes on
53 | * one or more slides in the deck.
54 | */
55 | updateVisibility() {
56 |
57 | if( this.Reveal.getConfig().showNotes && this.hasNotes() && !this.Reveal.print.isPrintingPDF() ) {
58 | this.Reveal.getRevealElement().classList.add( 'show-notes' );
59 | }
60 | else {
61 | this.Reveal.getRevealElement().classList.remove( 'show-notes' );
62 | }
63 |
64 | }
65 |
66 | /**
67 | * Checks if there are speaker notes for ANY slide in the
68 | * presentation.
69 | */
70 | hasNotes() {
71 |
72 | return this.Reveal.getSlidesElement().querySelectorAll( '[data-notes], aside.notes' ).length > 0;
73 |
74 | }
75 |
76 | /**
77 | * Checks if this presentation is running inside of the
78 | * speaker notes window.
79 | *
80 | * @return {boolean}
81 | */
82 | isSpeakerNotesWindow() {
83 |
84 | return !!window.location.search.match( /receiver/gi );
85 |
86 | }
87 |
88 | /**
89 | * Retrieves the speaker notes from a slide. Notes can be
90 | * defined in two ways:
91 | * 1. As a data-notes attribute on the slide
92 | * 2. With