Skip to content

Instantly share code, notes, and snippets.

View lalitlogical's full-sized avatar
💭
I may be slow to respond.

Lalit Kumar Maury lalitlogical

💭
I may be slow to respond.
  • engineer.ai
  • Gurgaon, Haryana, India
View GitHub Profile
@shunchu
shunchu / convert-seconds-into-hh-mm-ss-in-ruby.rb
Created July 25, 2012 07:58
Convert seconds into HH:MM:SS in Ruby
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
@burnash
burnash / imagemagick-install-steps
Last active March 27, 2019 12:00 — forked from rodleviton/imagemagick-install-steps
Installing Image Magick on Ubuntu 14.04
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
@jaredreich
jaredreich / timezones.json
Last active December 4, 2023 16:37
JSON Timezone List
[
   {
      "value": -12,
      "text": "(GMT -12:00) Eniwetok, Kwajalein"
   },
   {
      "value": -11,
      "text": "(GMT -11:00) Midway Island, Samoa"
   },
   {