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 | |
# Define the quality for compression | |
quality=80 | |
# Create the result directory if it doesn't exist | |
mkdir -p result | |
# Find all images in the current directory (you can change the path as needed) | |
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | while read -r file; do |
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
https://proandroiddev.com/android-full-screen-ui-with-transparent-status-bar-ef52f3adde63 | |
https://proandroiddev.com/kotlin-sealed-classes-enums-with-swag-d3c4b799bcd4 | |
https://link.medium.com/YKHMiRnqE4 | |
https://developer.android.com/guide/navigation/navigation-navigate#pop | |
https://androidexample365.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
WarSyndrome | |
4 months ago | |
Sub InsertQR() | |
Dim xHttp: Set xHttp = CreateObject("Microsoft.XMLHTTP") | |
Dim bStrm: Set bStrm = CreateObject("Adodb.Stream") | |
Dim Size: Size = 500 'dalam Pixels | |
Dim QR, Name, val, MyArray | |
Dim Invalid: Invalid = "\/:*?" & """" & "<>|" | |
For Each val In Selection |
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
// Tapping the Notification will open up MainActivity | |
Intent i = new Intent(this, MainActivity.class); | |
// an action to use later | |
// defined as an app constant: | |
// public static final String MESSAGE_CONSTANT = "com.example.myapp.notification"; | |
i.setAction(MainActivity.MESSAGE_CONSTANT); | |
// you can use extras as well | |
i.putExtra("some_extra", "testValue"); |
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
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v2.3.0 | |
hooks: | |
- id: check-yaml | |
- id: end-of-file-fixer | |
- id: trailing-whitespace | |
- repo: https://github.com/psf/black | |
rev: 19.3b0 |
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
ImageView iv = (ImageView) findViewById(R.id.my_imageview); | |
ObjectAnimator scaleDown = ObjectAnimator.ofPropertyValuesHolder( | |
iv, | |
PropertyValuesHolder.ofFloat("scaleX", 1.2f), | |
PropertyValuesHolder.ofFloat("scaleY", 1.2f)); | |
scaleDown.setDuration(310); | |
scaleDown.setRepeatCount(ObjectAnimator.INFINITE); | |
scaleDown.setRepeatMode(ObjectAnimator.REVERSE); |
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 android.os.SystemClock; | |
import android.view.View; | |
import java.util.Map; | |
import java.util.WeakHashMap; | |
/** | |
* A Debounced OnClickListener | |
* Rejects clicks that are too close together in time. | |
* This class is safe to use as an OnClickListener for multiple views, and will debounce each one separately. |
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
------------------------------- | |
Dear Ms. Wade, | |
Thank you for your consideration and the invitation to interview for the Social Media Manager role at XYZ Company. I am available this Wednesday at 1:30pm and can meet you at your office. | |
Please let me know if I can provide any additional information prior to our meeting. | |
I look forward to meeting with you to discuss this position in more detail. | |
Yours sincerely, |
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:fontFamily="sans-serif" // roboto regular | |
android:fontFamily="sans-serif-light" // roboto light | |
android:fontFamily="sans-serif-condensed" // roboto condensed | |
android:fontFamily="sans-serif-black" // roboto black | |
android:fontFamily="sans-serif-thin" // roboto thin (android 4.2) | |
android:fontFamily="sans-serif-medium" // roboto medium (android 5.0) | |
In the styles.xml file in the application I'm working on somebody listed this as the font family, and I'm pretty sure it's wrong: |
NewerOlder