Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Furiously Coding

Aashish Chaubey aashish-chaubey

💻
Furiously Coding
View GitHub Profile
View task_of_pairing.py
def taskOfPairing(freq):
count = 0
marker = False
for i in freq:
if i != 0:
count += i // 2
if i % 2 != 0 and marker:
count += 1
marker = False
elif i % 2 != 0:
@aashish-chaubey
aashish-chaubey / promise.js
Created Aug 20, 2019
Implementing and using the basic promise
View promise.js
/**
* @author Aashish Chaubey
* @link https://github.com/aashish-chaubey
*/
/**
* First Create a Promise my implementing it with a `new` keyword
* Do all the heavy weight operations in the promise
* Store the promise in a variable
*/
@MarcDiethelm
MarcDiethelm / Contributing.md
Last active Dec 4, 2022
How to contribute to a project on Github
View Contributing.md

This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.


Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.