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
[ | |
{ | |
"value": -12, | |
"text": "(GMT -12:00) Eniwetok, Kwajalein" | |
}, | |
{ | |
"value": -11, | |
"text": "(GMT -11:00) Midway Island, Samoa" | |
}, | |
{ |
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
sudo -i | |
cd | |
apt-get install build-essential checkinstall -y | |
apt-get build-dep imagemagick -y | |
apt-get install libwebp-dev -y | |
wget http://www.imagemagick.org/download/ImageMagick-6.9.5-8.tar.gz | |
tar xzvf ImageMagick-6.9.5-8.tar.gz | |
cd ImageMagick-6.9.5-8/ | |
./configure | |
make |
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
t = 236 # seconds | |
Time.at(t).utc.strftime("%H:%M:%S") | |
=> "00:03:56" | |
# Reference | |
# http://stackoverflow.com/questions/3963930/ruby-rails-how-to-convert-seconds-to-time |