- user có thể đăng kí ( tên, email, sdt, giới tính, ngày sinh)
- user có thể đăng nhập
- user có thể quên mật khẩu
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 os | |
import subprocess | |
import glob | |
import sys | |
from os.path import basename | |
def myfunction(): | |
i = 0 | |
dem = 0 | |
directory_list = list() | |
for root, dirs, files in os.walk(str(sys.argv[1]), topdown=False): |
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
arr = Dir.entries('.').select { |elem| elem.include? ".mp4" } | |
arr.each { |elem| | |
puts "\nXu li file #{elem}" | |
system("autosub \"#{elem}\"") | |
} |
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
Rails.application.configure do | |
# Settings specified here will take precedence over those in config/application.rb. | |
# In the development environment your application's code is reloaded on | |
# every request. This slows down response time but is perfect for development | |
# since you don't have to restart the web server when you make code changes. | |
config.cache_classes = false | |
# Do not eager load code on boot. | |
config.eager_load = false |
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
- NUMBER_CHAR_HIDDEN = 300 | |
- if content.length < NUMBER_CHAR_HIDDEN | |
p = content | |
- else | |
p | |
= content[0..NUMBER_CHAR_HIDDEN] | |
a.read-more-show.hide href="#" = "Read More" | |
span.read-more-content | |
= content[NUMBER_CHAR_HIDDEN + 1..-1] | |
a.read-more-hide.hide href="#" = "Read Less" |
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
module Api::V1 | |
class ApiController < ApplicationController | |
include Concerns::Authenticator | |
include Concerns::ErrorHandler | |
include Concerns::VersionExpirationHandler | |
include Concerns::Internationalizator | |
end | |
end |
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
{"lastUpload":"2021-03-31T07:41:01.483Z","extensionVersion":"v3.4.3"} |
This repo is my experiment in deploying a basic Phoenix app using the
release
feature from elixir 1.9 (https://elixir-lang.org/blog/2019/06/24/elixir-v1-9-0-released/)
and docker, via a multi-stage Dockerfile (https://docs.docker.com/develop/develop-images/multistage-build/)
leveraging bitwalker's docker images for Elixir and Phoenix.
The simplest way to manage Elixir versions is to use asdf
.
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
FROM elasticsearch:7.7.1 | |
COPY elasticsearch-analysis-vietnamese-7.7.1.zip /usr/share/elasticsearch/ | |
RUN cd /usr/share/elasticsearch && \ | |
bin/elasticsearch-plugin install --batch file:///usr/share/elasticsearch/elasticsearch-analysis-vietnamese-7.7.1.zip && \ | |
bin/elasticsearch-plugin install --batch analysis-icu |
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
version: "3.9" | |
services: | |
db: | |
image: bitnami/postgresql:14.1.0 | |
ports: | |
- '5433:5432' | |
environment: | |
POSTGRESQL_USERNAME: postgres | |
POSTGRESQL_PASSWORD: 123123123 | |
POSTGRESQL_DATABASE: abc |
OlderNewer