Skip to content

Instantly share code, notes, and snippets.

View hiendinhngoc's full-sized avatar
🐉
Focusing

Dinh Ngoc Hien hiendinhngoc

🐉
Focusing
View GitHub Profile
def download_all_post_contents
posts = @campaign.posts
if posts.present?
folder = "/tmp"
file = "/tmp/archive#{Time.now.to_i}_.zip"
urls = []
posts.each do |post|
urls << post.filestack_image_url if post.filestack_image_url.present?
urls << post.photo_attributes('original')['url'] if post.photo.present?
19-02:
11h-1h: `check the business, show company field for business staff`
20-02:
10h30-12h30: `show the business form when editing user`
23-02:
9h-15h:
```
2. Cho hiển thị trong parttime charges module
3. Xử lý Login giống với Parttime users
4. Xử lý bookings, payments, mailer khi book tương tự parttime

#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;