Skip to content

Instantly share code, notes, and snippets.

🤖

Alexey alkhachatryan

🤖
Block or report user

Report or block alkhachatryan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alkhachatryan
alkhachatryan / client.js
Last active Feb 4, 2019
Socket.io (server+client) and Express based Sample chat system
View client.js
/**
* Socket io client
* */
socket = require('socket.io-client')(window.location.hostname + ':9090');
/**
* Chat Functionalities
*/
chat = {
addMessageElement: (element) => {
@alkhachatryan
alkhachatryan / battery.sh
Last active Aug 11, 2018
LINUX | Check the battery power
View battery.sh
#!/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
You can’t perform that action at this time.