Skip to content

Instantly share code, notes, and snippets.

View modster's full-sized avatar
🧠

EM Greeff modster

🧠
View GitHub Profile
@hieptl
hieptl / header.js
Last active November 22, 2021 16:31
header.js - Instagram Clone React Node
import { useContext } from 'react';
import { useHistory } from 'react-router-dom';
import withModal from '../common/Modal';
import Create from '../create/Create';
import Context from '../../context';
import logo from '../../logo.png';
const Header = (props) => {
const { toggleModal } = props;
@modster
modster / base-octocat.md
Last active April 3, 2022 17:05
base-octocat.svg

This is an image

![This is an image](https://myoctocat.com/assets/images/base-octocat.svg)
@dimkoug
dimkoug / hadlebars-example.html
Last active June 15, 2022 14:32
Handlebars example
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js"></script>
<script type="text/javascript">
'use strict'
$(document).ready(function(){
@prof3ssorSt3v3
prof3ssorSt3v3 / README.md
Created September 26, 2021 20:58
Code from video about import-maps

Basic Setup

First turn your project into an npm one with npm init -y

Next install the package of your choice. In this video I used Luxon

npm install luxon
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Created May 9, 2021 22:47
Code from video about linking datalists
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="stylesheet" href="/css/main.css" />
<title>Linked Datalists</title>
</head>
<body>
@prof3ssorSt3v3
prof3ssorSt3v3 / index.html
Created April 3, 2021 21:30
Code from video about all the CSS Math functions - min, max, clamp, calc, and minmax
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>min, max, minmax, clamp, calc</title>
<link rel="stylesheet" href="main.css" />
</head>
<body>
@prof3ssorSt3v3
prof3ssorSt3v3 / app.js
Created March 12, 2021 14:29
Code for Service Workers 8 - Messaging between Clients and Workers
const APP = {
SW: null,
init() {
//called after DOMContentLoaded
//register our service worker
APP.registerSW();
document
.getElementById('colorForm')
.addEventListener('submit', APP.saveColor);
@modster
modster / index.md
Last active February 7, 2021 10:54
pinescript

plotchar(series, title, char, location, color, transp, offset, text, textcolor, editable, size, show_last, display) → void plotchar

@prof3ssorSt3v3
prof3ssorSt3v3 / autocomplete.html
Last active July 6, 2023 01:29
Code from Video about AutoFill with Forms
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Form Autocomplete</title>
<link rel="stylesheet" href="./main.css" />
</head>
<body>
<header>
@olygood
olygood / main.js
Last active November 11, 2022 21:33
Franks laboratory
const myImage = new Image();
myImage.src = 'data:image/jpeg;base64,/9j/4RmURXhpZgAATU0AKgAAAAgADAEAAAMAAAABAQAAAAEBAAMAAAABAQAAAAECAAMAAAADAAAAngEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEVAAMAAAABAAMAAAEaAAUAAAABAAAApAEbAAUAAAABAAAArAEoAAMAAAABAAIAAAExAAIAAAAiAAAAtAEyAAIAAAAUAAAA1odpAAQAAAABAAAA7AAAASQACAAIAAgACvyAAAAnEAAK/IAAACcQQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpADIwMjA6MTI6MzAgMDU6MzA6MzkAAAAABJAAAAcAAAAEMDIyMaABAAMAAAAB//8AAKACAAQAAAABAAABAKADAAQAAAABAAABAAAAAAAAAAAGAQMAAwAAAAEABgAAARoABQAAAAEAAAFyARsABQAAAAEAAAF6ASgAAwAAAAEAAgAAAgEABAAAAAEAAAGCAgIABAAAAAEAABgKAAAAAAAAAEgAAAABAAAASAAAAAH/2P/tAAxBZG9iZV9DTQAC/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAoACgAwEiAAIRAQMRAf/dAAQACv/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHxY3M1FqKyg