This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf DirectoryName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install ubuntu-budgie-desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const APP = { | |
deferredInstall: null, | |
init() { | |
if ('serviceWorker' in navigator) { | |
//register our service worker | |
navigator.serviceWorker | |
.register('/sw.js', { | |
updateViaCache: 'none', | |
scope: '/', | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |