title: "Example Pandoc input file"
author: Ryan Frazier
date: June 9, 2019
mainfont: Lora
fontsize: 12pt
linkcolor: red
toc: true
geometry: "left=3cm,right=3cm,top=2cm,bottom=3cm"
---
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> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width" /> | |
| <link rel="stylesheet" href="style.css" type="text/css"> | |
| <title>Worksheets</title> | |
| </head> | |
| <body> | |
| <div id="images"></div> |
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
| use nannou::prelude::*; | |
| fn main() { | |
| nannou::app(model).update(update).run(); | |
| } | |
| struct Triangle { | |
| top: Point2<f32>, | |
| left: Point2<f32>, | |
| right: Point2<f32>, |
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
| <html lang="en"> | |
| <head> | |
| <title>Fancy HTML Table</title> | |
| <meta http-equiv="x-ua-compatible" content="ie=edge"> | |
| <meta charset="utf-8"> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width, initial-scale = 1.0, maximum-scale=1.0, user-scalable=no"> | |
| <link rel="stylesheet" href="main.css"> | |
| <style> | |
| body { |
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
| let w = 150; // width/height of the square | |
| let grid = [ | |
| ['','',''], | |
| ['','',''], | |
| ['','',''] | |
| ] | |
| let players = ['X','O'] | |
| let game_over = false; | |
| let turn = 0; |
+++ paginate_by = 2 sort_by = "date" +++
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
| const Typography = require('typography'); | |
| const theme = require('typography-theme-lincoln'); | |
| const typography = new Typography(theme); | |
| console.log(typography.toString()) |
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 xml.etree.ElementTree as ET | |
| import html | |
| def inspect_escape_characters(): | |
| filename = "products.xml" | |
| print(f'XML file: {filename}') | |
| tree = ET.parse(filename) | |
| root = tree.getroot() | |
| all_descriptions = [] | |
| count = 0 |
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
| fn main() { | |
| let x = String::from("hello"); // allocate from the heap | |
| let mut y = x; | |
| // let mut y = x.clone(); // clone if you want to use x again | |
| y.push_str(", world! "); | |
| append(&mut y); | |
| print(&y); | |
| append(&mut y); | |
| print(&y); |
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
| use std::cmp::Ordering; | |
| use std::io; | |
| const ONE: u64 = 1; | |
| fn main() { | |
| loop { | |
| let mut guess = String::new(); | |
| io::stdin() |
NewerOlder