Skip to content

Instantly share code, notes, and snippets.

View alkhachatryan's full-sized avatar
🇦🇲

Alexey alkhachatryan

🇦🇲
View GitHub Profile
@alkhachatryan
alkhachatryan / client.js
Last active February 4, 2019 09:53
Socket.io (server+client) and Express based Sample chat system
/**
* Socket io client
* */
socket = require('socket.io-client')(window.location.hostname + ':9090');
/**
* Chat Functionalities
*/
chat = {
addMessageElement: (element) => {
@alkhachatryan
alkhachatryan / battery.sh
Last active November 29, 2020 20:07
LINUX | Check the battery power
#!/bin/bash
#IF statment will use this var to notify user about low battery
LESS_THAN=70
#Interval in sec
INTERVAL=30
while true;
do