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
| # ============================================ | |
| # Minimal zsh Configuration | |
| # ============================================ | |
| # --- Basic zsh settings --- | |
| setopt AUTO_CD # Type directory name to cd into it | |
| setopt HIST_IGNORE_DUPS # Don't save duplicate commands in history | |
| setopt SHARE_HISTORY # Share history across all terminals | |
| HISTFILE=~/.zsh_history | |
| HISTSIZE=10000 |
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 os | |
| import random | |
| import discord | |
| from discord.ext import commands | |
| from dotenv import load_dotenv | |
| # Load environment variables from .env file | |
| load_dotenv() | |
| # Replace this with your actual channel ID where you want welcome messages |
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 interface MixhaloError { | |
| String getMessage(); | |
| int getErrorCode(); | |
| } | |
| public enum ConnectionError implements MixhaloError { | |
| INVALID_WIFI_STATE("", 1000101), | |
| INVALID_CELLULAR_STATE("", 1000102), | |
| INVALID_VENUE_ID("", 1000300), | |
| INVALID_VENUE_PASSCODE("", 1000301), |
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 enum MixhaloError { | |
| /** | |
| * Problem: Mixhalo was unable to login to the backend server. | |
| * Solution: Check credentials. | |
| */ | |
| FAILED_AUTHENTICATION("Authentication failed", 1000400), | |
| /** | |
| * Problem: Failed to fetch venue list due to the required location services being disabled. | |
| * Solution: Turn on location services for the device. | |
| */ |
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
| dependencies { | |
| ... | |
| implementation 'com.google.android.play:core-common:2.0.0' | |
| ... | |
| } |
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
| dependencies { | |
| ... | |
| implementation 'com.google.android.play:app-update:2.0.0' | |
| // Kotlin users may also add the Kotlin extensions library | |
| implementation 'com.google.android.play:app-update-ktx:2.0.0' | |
| ... | |
| } |
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
| dependencies { | |
| ... | |
| implementation 'com.google.android.play:review:2.0.0' | |
| // Kotlin users may also add the Kotlin extensions | |
| implementation 'com.google.android.play:review-ktx:2.0.0' | |
| ... | |
| } |
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
| dependencies { | |
| ... | |
| implementation 'com.google.android.play:feature-delivery:2.0.0' | |
| // Kotlin users may also add the Kotlin extensions library | |
| implementation 'com.google.android.play:feature-delivery-ktx:2.0.0' | |
| ... | |
| } |
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
| dependencies { | |
| ... | |
| implementation 'com.google.android.play:asset-delivery:2.0.0' | |
| // Kotlin users may also add the Kotlin extensions library | |
| implementation 'com.google.android.play:asset-delivery-ktx:2.0.0' | |
| ... | |
| } |
NewerOlder
