Skip to content

Instantly share code, notes, and snippets.

View saeed-younus's full-sized avatar
🎯
Focusing

Muhammad Saeed saeed-younus

🎯
Focusing
View GitHub Profile
@saeed-younus
saeed-younus / AndroidManifest.xml
Created July 19, 2022 17:35
Fetch All docs files from local storage using media store api (Android 10+ also covered)
manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<application
@saeed-younus
saeed-younus / items_game_butterfly
Created December 3, 2021 17:55
Change cs go knife into butterfly
This file has been truncated, but you can view the full file.
"items_game"
{
"game_info"
{
"first_valid_class" "2"
"last_valid_class" "3"
"first_valid_item_slot" "0"
"last_valid_item_slot" "54"
"num_item_presets" "4"
}
@saeed-younus
saeed-younus / items_game_m9
Created December 3, 2021 17:54
Change cs go knife to m9 bayonet
This file has been truncated, but you can view the full file.
"items_game"
{
"game_info"
{
"first_valid_class" "2"
"last_valid_class" "3"
"first_valid_item_slot" "0"
"last_valid_item_slot" "54"
"num_item_presets" "4"
}
@saeed-younus
saeed-younus / ListState.kt
Created September 26, 2019 16:06
Selection Recyclerview List using live data, viewmodel and list adapter
enum class ListState(val state: Int) {
OPEN_SELECTION(0),
CLOSED_SELECTION(0),
SELECT_ALL(0)
}
@saeed-younus
saeed-younus / RecyclerviewDividerItem.kt
Created September 25, 2019 07:48
Vertical and Horizontal RecyclerView Divider Item
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import android.util.TypedValue
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
/**
* [RecyclerView] item decoration which adds horizontal divider between items.
*
* @author Muhammad Saeed
@saeed-younus
saeed-younus / main.dart
Last active January 6, 2019 19:41
Block async object
void main() async {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
BlockConstructor obj = new BlockConstructor();
await obj.ready;
print("After instantiate");
}
class BlockConstructor {