Skip to content

Instantly share code, notes, and snippets.

@RickCogley
RickCogley / materialize-modal-youtube.html
Last active July 2, 2018 13:16
Materialize modal youtube
<!-- Modal Trigger -->
<a class="waves-effect waves-light btn modal-trigger" href="#modal1">View Intro Video</a>
<!-- Modal Structure -->
<div id="modal1" class="modal green-text">
<div class="modal-content">
<h4>Modal Header</h4>
<p><div class="video-container">
<iframe width="1102" height="620" src="https://www.youtube.com/embed/VH26lrd6LSY?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
</div></p>
//THREE.hx r68
import js.html.*;
typedef HTMLElement = js.html.Element;
typedef HTMLCanvasElement = js.html.CanvasElement;
typedef HTMLImageElement = js.html.ImageElement;
typedef WebGLRenderingContext = js.html.webgl.RenderingContext;
/* Auto-generated using ts2hx */
@:enum @:native("THREE.CullFace") abstract CullFace(Int) {
@penk
penk / main.cpp
Last active June 29, 2021 23:25
minimal QtWebEngine example
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtWebEngine/qtwebengineglobal.h>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtWebEngine::initialize();
QQmlApplicationEngine appEngine;
appEngine.load(QUrl("main.qml"));