Skip to content

Instantly share code, notes, and snippets.

@weblancaster
weblancaster / gist:6e7f43fc02725ce747e224b0c4290906
Last active May 25, 2020 12:53
Kill all container, remove all images and stop all containers
#stop all containers:
docker kill $(docker ps -q)
#remove all containers
docker rm $(docker ps -a -q)
#remove all docker images
docker rmi $(docker images -q)
@weblancaster
weblancaster / check-if-string-is-palindrome.js
Created October 27, 2016 15:44
Check if string is palindrome in Javascript.
function isPalindrome(str) {
str = str.replace(/\W/g).toLowerCase();
return str === str.split('').reverse().join('');
}
@weblancaster
weblancaster / cloudSettings
Last active August 17, 2018 15:28
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-08-17T15:28:31.220Z","extensionVersion":"v3.0.0"}