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
import Foundation | |
import UIKit | |
import PlaygroundSupport | |
// MARK: HttpMethod | |
enum HttpMethod<Body> { | |
case get | |
case post(Body) | |
} |
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
# Add ...@2x.png string end to those exported using Pixelmator | |
Dir.glob("./*2x.png").each do |old_path| | |
next if old_path =~ /@2x.png/ | |
ext = File.extname(old_path) | |
filename = File.basename(old_path, ext) | |
new_filename = filename.sub("2x", "@2x") + ext | |
File.rename(old_path, new_filename) | |
end |