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
server { | |
listen 80; | |
server_name localhost; | |
access_log off; | |
location / { | |
proxy_pass http://127.0.0.1:3000; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-for $remote_addr; |
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 python:slim | |
RUN apt-get update \ | |
# -slim images strip man dirs, but java won't install unless this dir exists. | |
&& mkdir -p /usr/share/man/man1 \ | |
&& apt-get install -y \ | |
git \ | |
imagemagick \ | |
libreoffice-script-provider-python \ | |
libreoffice \ |
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
/// Получить объект с процентами текущей даты. | |
getDateNowInfoList() { | |
/// Ответ метода. | |
var answer = {}; | |
/// Дата прям сецчас. | |
DateTime nowDate = new DateTime.now(); | |
/// Добавить день. | |
answer['day'] = getPercentEnd( |
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
android:background="?android:attr/selectableItemBackground" - View | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" - RecyclerView (CoordinatorLayout) | |
// RecyclerView (Scroll padding) | |
android:clipToPadding="false" | |
android:paddingBottom="?attr/actionBarSize" |
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
implementation 'com.jakewharton:butterknife:8.8.1' | |
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' | |
implementation 'io.reactivex.rxjava2:rxjava:2.1.12' | |
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2' | |
implementation 'com.squareup.picasso:picasso:2.71828' | |
implementation 'com.android.support:design:27.1.1' | |
implementation 'com.android.support:cardview-v7:27.1.1' |