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 input = 'aaaabbbbccccpqesrt'; | |
var compressedString = ''; | |
var s = input.match(/([a-zA-Z])\1*/g) || []; | |
s.forEach(function(value) { | |
var k = ''; | |
if(value.length > 1) { | |
k = value.length; | |
} | |
compressedString += value.charAt(0) + k; |
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
pkill -f datetime |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* @author alexwebgr < https://github.com/alexwebgr > | |
* @desc the word 'Session' is used as a convention in order to avoid overriding | |
* the Storage or localStorage objects since localStorage is persisted in the browser | |
* even if the browser window closes or even the system restarts | |
* the only way to delete localStorage is manually | |
*/ | |
var Session = | |
{ |
NewerOlder