Skip to content

Instantly share code, notes, and snippets.

Avatar

Kofi Obrasi Ocran Mupati

View GitHub Profile
@Mupati
Mupati / gist:58d7f2385d70be90ff411dcd5517ded6
Created Nov 7, 2017 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:58d7f2385d70be90ff411dcd5517ded6

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:
@Mupati
Mupati / composing-software.md
Created Dec 3, 2019 — forked from rosario/composing-software.md
Eric Elliott's Composing Software Series
@Mupati
Mupati / customer_info.csv
Created Mar 7, 2020
Sample CSV for my tutorial
View customer_info.csv
contractId AccountNumber CreatedAt Amount Count Duration
1307022 142325110 9/1/2017 15:54 100 0 5
1307374 92511041 9/2/2017 16:31 100 0 5
1307721 202399520 9/4/2017 11:08 100 0 5
1307764 676152506 9/4/2017 12:12 100 0 5
1307862 698858327 9/4/2017 15:00 100 0 5
1308371 850930502 9/5/2017 16:50 200 0 15
1308652 146483814 9/6/2017 14:48 250 0 29
1308741 258184267 9/6/2017 15:32 200 0 15
1309129 766122339 9/7/2017 12:53 100 0 5
@Mupati
Mupati / larger_than_right.py
Created Jul 28, 2020
Largest Number in a List Compared to All Elements on the right.
View larger_than_right.py
###
Write code to count how many integers are strictly larger than all the integers to their right.
Exclude the last digit since it doesn't have a number to its right. E.g. for [2,3,1] the answer should
be 1 while for [12,4,4,2,2,3] the answer is 2.
###
def larger_than_right(input_list):
count = 0
tracker = []
max_length = len(input_list) - 1
@Mupati
Mupati / helpers.js
Created Mar 23, 2021
Browser Compatible Helper Function to access Device Microphone and Camera
View helpers.js
export const getPermissions = () => {
// Older browsers might not implement mediaDevices at all, so we set an empty object first
if (navigator.mediaDevices === undefined) {
navigator.mediaDevices = {};
}
// Some browsers partially implement media devices. We can't just assign an object
// with getUserMedia as it would overwrite existing properties.
// Here, we will just add the getUserMedia property if it's missing.
if (navigator.mediaDevices.getUserMedia === undefined) {