Skip to content

Instantly share code, notes, and snippets.

View FromSi's full-sized avatar
:octocat:

FromSi

:octocat:
  • @skycoach.gg
  • Nur-Sultan, Kazakhstan
  • 12:12 (UTC +05:00)
View GitHub Profile
@FromSi
FromSi / localhost.conf
Created July 2, 2022 12:19
proxy nginx to nginx simple
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;
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 \
<a
onClick="window.open('https://www.facebook.com/sharer.php?u=<?= Url::home(true) . substr(Yii::$app->request->url, 1); ?>','sharer','toolbar=0,status=0,width=700,height=400');"
href="javascript: void(0)" target="_blank"><img src="/images/icons/designer/facebook.svg" alt="facebook"></a>
<a
onClick="window.open('https://telegram.me/share/url?url=<?= Url::home(true) . substr(Yii::$app->request->url, 1); ?>','sharer','toolbar=0,status=0,width=700,height=400');"
href="javascript: void(0)" target="_blank"><img src="/images/icons/designer/telegram.svg" alt="telegram"></a>
<a
onClick="window.open('https://vk.com/share.php?url=<?= Url::home(true) . substr(Yii::$app->request->url, 1); ?>','sharer','toolbar=0,status=0,width=700,height=400');"
href="javascript: void(0)" target="_blank"><img src="/images/icons/designer/vk.svg" alt="vk"></a>
/// Получить объект с процентами текущей даты.
getDateNowInfoList() {
/// Ответ метода.
var answer = {};
/// Дата прям сецчас.
DateTime nowDate = new DateTime.now();
/// Добавить день.
answer['day'] = getPercentEnd(
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"
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'