This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ast | |
| from cStringIO import StringIO | |
| import sys | |
| INFSTR = '1e308' | |
| def interleave(inter, f, seq): | |
| seq = iter(seq) | |
| try: | |
| f(next(seq)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {Component} from 'react'; | |
| import '../styles/Message.css'; | |
| export default class Message extends Component{ | |
| constructor(props){ | |
| super(props); | |
| this.state = { | |
| id: props.msg.id, | |
| title: props.msg.title, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {Component} from 'react'; | |
| import Message from './Message'; | |
| import '../styles/MessageList.css'; | |
| export default class MessageList extends Component{ | |
| constructor(){ | |
| super(); | |
| this.state = { | |
| messages: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>CSS Width vs Max-Width</title> | |
| <style> | |
| main{ | |
| background-color: lightskyblue; | |
| padding: 1rem; | |
| min-width: 800px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>CSS Grid Positioning</title> | |
| <style> | |
| main{ | |
| display:grid; | |
| grid-template-columns: 1fr 3fr 1fr 1fr; | |
| grid-template-rows: 15rem 12rem 5rem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import { Button, Container, Row, Col } from 'reactstrap'; | |
| import { Card, CardImg, CardText, CardBody, CardTitle, CardSubtitle } from 'reactstrap'; | |
| //import 'bootstrap/dist/css/bootstrap.css'; | |
| //only needed at top level | |
| import './Main.css'; | |
| export default class Main extends Component{ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>HTML Drop-Down Lists</title> | |
| <style> | |
| html{ | |
| box-sizing: border-box; | |
| font-size: 20px; | |
| line-height: 1.6; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>CSS opacity vs hsla vs rgba</title> | |
| <style> | |
| html, | |
| body{ | |
| background-color: coral; | |
| font-size: 20px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Angled Backgrounds</title> | |
| <style> | |
| :root{ | |
| --hue: 74deg; | |
| --mastC: hsl(74deg, 84%, 89%); | |
| --firstC: hsl(74deg, 34%, 59%); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Media Queries Beyond Width</title> | |
| <style> | |
| p{ | |
| color: orange; | |
| font-size: 1.5rem; | |
| padding: 1rem; |
NewerOlder