Skip to content

Instantly share code, notes, and snippets.

View matgargano's full-sized avatar

Mat Gargano matgargano

View GitHub Profile
@matgargano
matgargano / index.js
Last active December 14, 2018 17:22
01-module
/**
* Block dependencies
*/
import icon from './icon';
import './style.scss';
import './editor.scss';
/**
* Internal block libraries
*/
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
@matgargano
matgargano / round1.html
Last active November 16, 2018 14:33
JavaScript + JSON
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<?php
function to_num($number) {
$alphabet = range('a','z');
return $alphabet[$number];
}
$array_of_numbers = [1,4,5,6];
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
</head>
@matgargano
matgargano / card-component.html
Created October 25, 2018 13:37
csc225 bootstrap card
<div class="card">
<img class="card-img-top" src="https://placehold.it/348x225" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of
the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
/*! Compiled Sass with Gulp.js via schools.scss */body{background:url() repeat-x #fff}.complete-action h1,h1{color:#272727}a{color:#0E5290!important;text-decoration:underline}a:active,a:focus,a:hover{color:tint(#0E5290,20%)!important}#container{background:url(images/logo-SuccessfulStudent-org.jpg) 0 1.7em no-repeat!important}#container,.complete-action #container,.form-controller #container,.index-action #container,.search-action #container{padding:7em 0 0}#drawer.open{margin:0}@media (max-width:600px){#container{background-position:50% 1.7em!important}#content{margin-top:0}}#content .error,.notice{background-color:#faecec;border-color:#d35656}#content .error h2,#content .error h3,#content .error legend,.notice h2,.notice h3,.notice legend{color:#d35656;text-align:left}#header #widget form{background:#478f99;border-top:3px solid #fff}#header #widget form h3{color:#fff}#header #widget form label,.school .last a{color:#fff!important}#header #attention{background:#e7e7e7}.school .last a{background:-webkit-linear
@matgargano
matgargano / index.html
Created September 28, 2018 01:32
9/27/2018 -- the HTML file references a relative directory for the style.css, so put the style.css relative to the HTML in a css directory
<!doctype html>
<html lang="en">
<head>
<link href="css/style.css" rel="stylesheet">
<title>Webpage</title>
</head>
<body>
<h1 class="text-center">Sign up</h1>