This file contains hidden or 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
| #Download Ubuntu LTS | |
| # create user | |
| adduser clem | |
| # add to shudders | |
| usermod -aG sudo clem | |
| # download git | |
| Sudo apt-get install git |
This file contains hidden or 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
| # Download iterm | |
| # install zsh | |
| sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| # install homebrew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” | |
| #create code folder | |
| mkdir -p code/dotfiles |
This file contains hidden or 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
| module Spotify | |
| class Tracks | |
| # Iterator provides useful methods such as: each, select, reject, uniq etc... | |
| include Iterator(Spotify::Track) | |
| # @playlist_id in constructor allows for instanciation of instance var | |
| # reducing boilerplate needed if you'd write this in ruby. | |
| def initialize(@playlist_id : String) | |
| @index = 0 | |
| @total_size = -1 |
This file contains hidden or 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
| Spotify::Tracks.new(playlist_id).each { |track| puts track.name } |
This file contains hidden or 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
| Playlist.new(playlist_id).tracks.each { |track| | |
| puts "Track name is #{track.name}" | |
| end |
This file contains hidden or 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
| class Tracks | |
| include Iterator(Spotify::Track) | |
| end |