Skip to content

Instantly share code, notes, and snippets.

View lisaMTayl's full-sized avatar
🔥
getting organized

Lisa McLeod Taylor lisaMTayl

🔥
getting organized
  • Great Falls, SC
View GitHub Profile
@lisaMTayl
lisaMTayl / regexCheatsheet.js
Created August 17, 2019 17:40 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@lisaMTayl
lisaMTayl / newsfeed-component.html
Created June 29, 2019 15:17
Newsfeed Tab Component
<style>
/* This line is importing the font 'Roboto'. DO NOT change line 2*/
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 400;
src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v19/KFOkCnqEu92Fr1Mu51xIIzc.ttf) format('truetype');
}
@font-face {
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.dropdown {
z-index: 2;
position: absolute;
left: 25px;
<!-- Navbar >
<nav class="navbar navbar-expand-lg navbar-inverse bg-dark">
<a class="navbar-brand" href="#">JEREMY'S TEN: A PEARL JAM TRIBUTE</a> <button aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-target="#navbarNavDropdown" data-toggle="collapse" type="button"><span class="navbar-toggler-icon"></span></button>
<div class="navbar-collapse collapse" id="navbarNavDropdown">
<ul class="navbar-nav mr-auto">
<li class="nav-item"></li>
</ul>
<ul class="navbar-nav">
<li class="nav-item">