Skip to content

Instantly share code, notes, and snippets.

View JessicaGreben's full-sized avatar

Jessica G JessicaGreben

View GitHub Profile
@JessicaGreben
JessicaGreben / dockercleanup.md
Created November 10, 2017 17:45
docker container cleanup

docker system cleanup

docker system prune -a Check out deets here

remove dangling volumes:

docker volume rm $(docker volume ls -f dangling=true -q) Check out some additional info here

remove untagged images

docker rmi $(docker images | grep none | awk '{ print $3}')

@JessicaGreben
JessicaGreben / anagramAndPalindrome.js
Created April 17, 2017 03:41
anagram and palindrome algorithms
// Problem 1 - Palindrome
// Write a function that takes a string as an input
// and returns true if the string is the same string forwards
// and backwards
String.prototype.reverse = function() {
return this.split("").reverse().join("");
}
const isPalindrome = function(str) {
@JessicaGreben
JessicaGreben / longest_concat_word.rb
Created February 28, 2017 19:47
Longest Concatenated Word algorithm
require 'trie'
class LongestConcatWord
def initialize(file)
@trie = Trie.new
@word_hash = Hash.new
@original_word = nil
@file = file
@concat_words = []
@count = 0