Skip to content

Instantly share code, notes, and snippets.

View Katheesh's full-sized avatar
❤️
Efficiency consists in a resolute mind

кαтнєєѕкυмαɾ Katheesh

❤️
Efficiency consists in a resolute mind
  • Embedded Systems & Software Engineer at BinSofts Holdings
  • Sri Lanka ⇨ Batticaloa.
  • 22:01 (UTC +05:30)
View GitHub Profile
@Katheesh
Katheesh / Remove.sh
Created March 27, 2021 13:47
Remove Files Contain folder
sudo rm -rf DirectoryName
sudo apt-get install ubuntu-budgie-desktop
@prof3ssorSt3v3
prof3ssorSt3v3 / app.js
Created March 26, 2021 22:02
PWA 6 - Handling Install Events
const APP = {
deferredInstall: null,
init() {
if ('serviceWorker' in navigator) {
//register our service worker
navigator.serviceWorker
.register('/sw.js', {
updateViaCache: 'none',
scope: '/',
})
@divayprakash
divayprakash / arduino.ino
Created June 23, 2016 08:33
Remove whitespace (" ","\t","\v","\f","\r","\n") from String in Arduino
//REMOVE WHITESPACES FROM STRING IN ARDUINO
String message = "\n\tThis is one messed-up string \r\n";
message.trim();
/*
trim()
Description : Get a version of the String with any leading and trailing whitespace removed.
As of 1.0, trim() modifies the string in place rather than returning a new one.
Syntax : string.trim()
@SleepWalker
SleepWalker / swipe.js
Created September 30, 2015 04:59
A simple swipe detection on vanilla js
var touchstartX = 0;
var touchstartY = 0;
var touchendX = 0;
var touchendY = 0;
var gesuredZone = document.getElementById('gesuredZone');
gesuredZone.addEventListener('touchstart', function(event) {
touchstartX = event.screenX;
touchstartY = event.screenY;
@theskumar
theskumar / restricted_usernames.py
Created April 9, 2015 06:48
Restricted usernames
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
'''
List of reserved usernames (pre-defined list of special banned and reserved keywords in names,
such as "root", "www", "admin"). Useful when creating public systems, where users can choose
a login name or a sub-domain name.
__References:__
1. http://www.bannedwordlist.com/
2. http://blog.postbit.com/reserved-username-list.html