Skip to content

Instantly share code, notes, and snippets.

@profstein
profstein / Responsive Embedded Video iFrame.md
Last active October 3, 2016 21:49
Responsive Video iFrame Embed
@profstein
profstein / reset.css
Last active September 8, 2016 18:25
Typographic Hierarchy Schedule Start
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@profstein
profstein / candidates.html
Created September 8, 2016 14:11
Typographic Hierarchy Start
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Candidates for 2016 Elections</title>
</head>
<body>
Candidates for the 2016 Elections
This page lists candidates for state and federal elections for the districts that serve the part of Manhattan where the Borough of Manhattan Community College is located.
@profstein
profstein / index.html
Last active November 9, 2015 02:49
Drawing a grid using a for loop
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Window</title>
</head>
<body>
<h1>Assignment of window</h1>
<script src="p5.min.js"></script>
<script src="main.js"></script>
@profstein
profstein / p5.js Draw a Window.markdown
Last active October 12, 2015 17:38
p5.js Draw a Window
@profstein
profstein / p5.js Draw a Window with Vars.markdown
Created October 12, 2015 17:35
p5.js Draw a Window with Vars

p5.js Draw a Window with Vars

combining simple shapes to create a more complex one. This time using variables to make the drawing more understandable and flexible.

A Pen by Christopher Stein on CodePen.

License.

@profstein
profstein / SassMeister-input.scss
Created January 13, 2015 15:09
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
$bg-color: #ddd;
.box {
color: $bg-color;
border:1px solid darken($bg-color, 25%);
@profstein
profstein / SassMeister-input.scss
Created January 13, 2015 15:03
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
@profstein
profstein / SassMeister-input.scss
Created January 13, 2015 15:00
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
.container { width: 100%; }
article[role="main"] {
float: left;
width: 600px / 960px * 100%;
@profstein
profstein / SassMeister-input.scss
Last active August 29, 2015 14:13
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
nav {
ul {
margin: 0;
padding: 0;
list-style: none;