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
Atom Sync |
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
#!/bin/sh | |
set -eu | |
snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
sudo snap remove "$snapname" --revision="$revision" | |
done | |
#observation: I copied this script from another person but i don't remember where. |
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
active_model_serializers (0.9.5) | |
activemodel (>= 3.2) | |
knock (1.4.2) | |
bcrypt (~> 3.1) | |
jwt (~> 1.5) | |
rails (>= 4.2) |
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
2.1.6 :001 > fib = Hash.new{ |h,k| h[k] = k < 2 ? k : h[k-1]+h[k-2] } | |
=> {} | |
2.1.6 :002 > fib[1] | |
=> 1 | |
2.1.6 :003 > fib[10] | |
=> 55 | |
2.1.6 :004 > fib | |
=> {1=>1, 0=>0, 2=>1, 3=>2, 4=>3, 5=>5, 6=>8, 7=>13, 8=>21, 9=>34, 10=>55} |
NewerOlder