Skip to content

Instantly share code, notes, and snippets.

Avatar
🏍️
Thinking

Moin Uddin moinism

🏍️
Thinking
View GitHub Profile
@moinism
moinism / Readme.md
Created Jan 17, 2021
A simple method to format/mask numbers or any text in JavaScript.
View Readme.md

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

https://codepen.io/moinism/pen/PoGXrdj?editors=1010

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
moinism / sample-push.js
Created Jan 16, 2021
A sample push message snippet to use with Electrolytic.app 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
moinism / README.md
Last active Jun 11, 2017
Tiny Slack Web API wrapper for Nodejs
View README.md

Usage

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

Use bot or user token for authentication.

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