# ----------------------------------------------------------------
# Start and create vpn connection
# ----------------------------------------------------------------
# Download from https://www.softether-download.com/en.aspx?product=softether
# Select Software: SoftEther VPN (Freeware)
# Select Component: SoftEther VPN Client
# Select Platform: Linux
# Select CPU: Intel x64/AMD64 (64bit)
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
// Kotlin | |
val carousel: ImageCarousel = findViewById(R.id.carousel) | |
val list = mutableListOf<CarouselItem>() | |
list.add( | |
CarouselItem( | |
imageUrl = "https://images.unsplash.com/photo-1532581291347-9c39cf10a73c?w=1080", | |
caption = "Photo by Aaron Wu on Unsplash" | |
) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item | |
android:left="-10dp" | |
android:right="-10dp" | |
android:top="-10dp"> | |
<shape android:shape="rectangle"> | |
<solid android:color="@android:color/transparent" /> | |
<stroke | |
android:width="2dp" |
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
#--------------------------------------------------------------- | |
# Given an xxxhdpi image, this script | |
# creates different dpis resources and the necessary folders | |
# if they don't exist | |
# | |
# Place this script, as well as the source image, inside res | |
# folder and execute it passing the image filename as argument | |
# | |
# Example: | |
# ./drawables_dpis_creation.sh my_cool_xxhdpi_image.png |
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
[Desktop Entry] | |
Categories=Development;IDE; | |
Comment=Everything you need to build on Android | |
Exec="/mnt/SourceCode/Software/Android/android-studio-rc/bin/studio.sh" %f | |
Icon=/mnt/SourceCode/Software/Android/android-studio-rc/bin/studio.png | |
Name=Android Studio RC | |
StartupWMClass=android-studio-rc | |
Terminal=false | |
Type=Application | |
Version=1.0 |
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
private val appointmentEventList = mutableListOf<AppointmentEvent>() | |
/** | |
* Note: Time should be 24 hours. | |
**/ | |
fun main() { | |
appointmentEventList.add(AppointmentEvent(230, 300)) // 02:30 - 03:00 | |
appointmentEventList.add(AppointmentEvent(600, 700)) // 06:00 - 07:00 | |
appointmentEventList.add(AppointmentEvent(700, 800)) // 07:00 - 08:00 |
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
[Desktop Entry] | |
Type=Application | |
Encoding=UTF-8 | |
Name=Shutdown | |
Comment=Shutdown the System | |
Icon=system-shutdown | |
Exec=shutdown -P now | |
Terminal=false | |
Categories=Utility |
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
#!/bin/bash | |
# ================================================================================ | |
# This script will push source code to two repositories at a time to maintain the | |
# same commit history. | |
# Version: 1.0 | |
# | |
# Coded by: | |
# Md. Mahmudul Hasan Shohag | |
# imaginativeshohag@gmail.com |
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
/** | |
* Difference between with, run, let, also and apply in Kotlin. | |
* | |
* Official doc: https://kotlinlang.org/docs/scope-functions.html#functions | |
* | |
* Awesome blog posts: | |
* - https://www.journaldev.com/19467/kotlin-let-run-also-apply-with | |
* - https://medium.com/@fatihcoskun/kotlin-scoping-functions-apply-vs-with-let-also-run-816e4efb75f5 | |
* - https://medium.com/@elye.project/mastering-kotlin-standard-functions-run-with-let-also-and-apply-9cd334b0ef84 | |
*/ |