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
user www-data; | |
pid /run/nginx.pid; | |
worker_processes auto; | |
worker_rlimit_nofile 65000; | |
events { | |
worker_connections 2048; | |
multi_accept on; | |
use epoll; | |
} |
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
class App | |
class << self | |
def animate(frames, seconds) | |
frame = 0; | |
advance = 1; | |
frames_per_second = frames.size * 2; | |
total_frames = frames_per_second * seconds; | |
total_frames.times do |