Skip to content

Instantly share code, notes, and snippets.

View passandscore's full-sized avatar

Jason Schwarz passandscore

View GitHub Profile
@passandscore
passandscore / unit-testing.js
Created April 25, 2021 01:26
Unit Testing Template (Mocha & Chai)
//Unit testing template
//Language: JavaScript
//Packages: Mocha, Chai
//Javascript file
module.exports = subSum;
//JavaScript test file
@passandscore
passandscore / fetch.js
Created April 25, 2021 00:36
Fetch API method( )
//FETCH API - DOM template
//Language: JavaScript
function loadRepos() {
const username = document.getElementById('username').value; //user input value
const repos = document.getElementById('repos'); //DOM element to display data
repos.innerHTML = '';
//construct the URL
const url = `https://api.github.com/users/${username}/repos`
@passandscore
passandscore / ajaxDomTemplate.js
Last active April 25, 2021 00:38
AJAX template for creating a basic API based HTTP request.
//AJAX - DOM template
//Language: JavaScript
document.getElementById('btn').addEventListener('click', loadData)
function loadData() {
//create an new request object
const req = new XMLHttpRequest()
@passandscore
passandscore / gist:d29ec8a4a9777ce1e8f95cca208c767a
Created April 22, 2021 22:51 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: