This file contains hidden or 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 Necessary Libraries List // | |
// Put them in the app build.gradle file // | |
// Material Design | |
implementation 'com.google.android.material:material:1.3.0-alpha02' | |
// Architectural Components | |
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0" | |
// Lifecycle |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
;USE AT YOUR OWN RISK! | |
;USE AT YOUR OWN RISK! | |
;USE AT YOUR OWN RISK! | |
;Improves system responsiveness and network speed. | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile] | |
"SystemResponsiveness"=dword:00000001 |
This file contains hidden or 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 | |
# https://www.gnu.org/licenses/old-licenses/gpl-2.0.html, who cares | |
# assuming you run as root | |
pamac install trizen | |
pacman -Qq | grep pamac | xargs pacman -Rs --noconfirm manjaro-application-utility | |
pacman -Rdd manjaro-release bashrc-manjaro manjaro-keyring | |
pacman -U https://www.archlinux.org/packages/core/x86_64/pacman/download/ https://www.archlinux.org/packages/core/any/pacman-mirrorlist/download/ https://www.archlinux.org/packages/community/any/lsb-release/download/ | |
mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist | |
mv /etc/pacman.conf.pacnew /etc/pacman.conf | |
# following line enables multilib repository |
This file contains hidden or 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
[ | |
{ | |
"city": "Tokyo", | |
"lat": 35.685, | |
"lng": 139.7514, | |
"country": "Japan", | |
"population": 35676000 | |
}, | |
{ | |
"city": "New York", |
This file contains hidden or 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 'package:freezed_annotation/freezed_annotation.dart'; | |
import 'dart:io'; | |
part 'NetworkRequestBody.freezed.dart'; | |
part 'NetworkResponse.freezed.dart'; | |
class AccessTokenResponse { | |
String? accessToken; | |
AccessTokenResponse.fromJson(Map<String, dynamic> json) { | |
accessToken = json['access_token']; |
This file contains hidden or 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 | |
show_loading() { | |
local description="$1" | |
local process_id="$2" | |
local spinner_list='⡿⣟⣯⣷⣾⣽⣻⢿' | |
local spinner_index=0 | |
echo -n "$description" |
This file contains hidden or 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
!*.xcodeproj/project.pbxproj | |
!*.xcodeproj/project.xcworkspace/ | |
!*.xcodeproj/xcshareddata/ | |
!*.xcworkspace/contents.xcworkspacedata | |
!/gradle/wrapper/gradle-wrapper.jar | |
!default.mode1v3 | |
!default.mode2v3 | |
!default.pbxuser | |
!default.perspectivev3 | |
!src/**/build/ |
This file contains hidden or 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
public inline fun <K, V> lruCacheOf(capacity: Int): LRUCache<K, V> = LRUCache(capacity = capacity) | |
class LRUCache<K, V>(private val capacity: Int) { | |
private val cache = LinkedHashMap<K, V>(initialCapacity = capacity, loadFactor = 0.75F) | |
fun get(key: K): V? { | |
if (!containsKey(key)) return null | |
val value = remove(key)!! |
This file contains hidden or 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 com.android.build.gradle.internal.api.BaseVariantOutputImpl | |
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | |
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType | |
applicationVariants.all { | |
outputs.all { | |
(this as BaseVariantOutputImpl).outputFileName = | |
"AppName-${buildType.name}-${versionName}.apk" | |
} | |
} |
This file contains hidden or 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
command_exists() { | |
command -v "$1" &>/dev/null | |
} | |
error_exit() { | |
gum style --foreground 1 "$1" | |
exit 1 | |
} | |
validate_url() { |
OlderNewer