Skip to content

Instantly share code, notes, and snippets.

View rossjs's full-sized avatar

Ross Topol rossjs

  • Austin, TX
View GitHub Profile
@rossjs
rossjs / DynamicInlineFrame.jsx
Created February 5, 2020 13:13
Dynamically Resizing Inline Frame (React)
// WARNING: CAN ONLY BE USED FOR SAME-ORIGIN URLS
// THIS IS NOT CONFIGURED FOR CROSS-ORIGIN DOMAINS
import React, { useEffect } from 'react';
import onResize from './onResize';
import iFrameResizer from './iFrameResizer';
const DynamicInlineFrame = ({ src, title }) => {
// create callback to be called on an interval until height is actual height of iframe content
const resizeCallback = () => iFrameResizer({ triggerInterval: true });
@rossjs
rossjs / README.md
Last active June 9, 2019 21:20
Web Development: Learning Resources

Web Development Learning Resources

General HTML/CSS/JS Resources

Fair warning, these might be a little dated but I found them to be invaluable when I was first learning. They do an excellent job of giving visual representations of concepts. jQuery's good to know about, but also, no one really uses it anymore because pretty much everything it was used for is natively in JavaScript now.

FreeCodeCamp.com (amazing free interactive coding series)

@rossjs
rossjs / index.html
Created August 18, 2017 18:39
Materialize CSS form example
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s12">
<input placeholder="Event title" id="title" type="text" class="validate">
<label for="title">Title</label>
</div>
</div>
<div class="row">
<div class="input-field col s6">
@rossjs
rossjs / index.html
Created August 10, 2017 15:29
qndlK
<div id='calendar'></div>