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: