Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
RocketFirm

FromSi

🚀
RocketFirm
View GitHub Profile
View My lib list (Android)
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'
View Cool attr
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"
View Логика будущего виджета на Flutter
/// Получить объект с процентами текущей даты.
getDateNowInfoList() {
/// Ответ метода.
var answer = {};
/// Дата прям сецчас.
DateTime nowDate = new DateTime.now();
/// Добавить день.
answer['day'] = getPercentEnd(
View share_social.php
<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>
View Dockerfile-docx-to-pdf-libreoffice
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 \