Skip to content

Instantly share code, notes, and snippets.


Moin Uddin moinism

View GitHub Profile
moinism /
Created Jan 17, 2021
A simple method to format/mask numbers or any text in JavaScript.

Here's a demo if you wanna play with it:

P.S: It's just a simple and lazy implementation, could be made more generalized.

P.P.S: It does not mask the input. It's just a method which can be used anywhere.

moinism / sample-push.js
Created Jan 16, 2021
A sample push message snippet to use with for Electron push notifications.
View sample-push.js
"appKey": "<Your-App-Key>",
"appSecret": "<Your-Secret>",
"target": ["<Token of target user>"],
"payload": "whatever you want to send to that user"
moinism /
Last active Jun 11, 2017
Tiny Slack Web API wrapper for Nodejs


var Slack = require('./SlackAPI.js')

Use bot or user token for authentication.

var WebAPI = Slack(<TOKEN>)
moinism / scrollProgress.js
Last active Jun 12, 2018
Page Scroll Progress With JavaScript
View scrollProgress.js
// Read more about it here:
function scrollProgress (el, updateFunc, endFunc) {
document.addEventListener('DOMContentLoaded', function() {
var progress = 0,
end = false,
timeStart = null,
timeEnd = null,
height = 0,
elt = null;