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
Add-Type -AssemblyName System.Windows.Forms | |
# Add-Type -Name ConsoleUtils -Namespace WPIA -MemberDefinition @' | |
# [DllImport("Kernel32.dll")] | |
# public static extern IntPtr GetConsoleWindow(); | |
# [DllImport("user32.dll")] | |
# public static extern bool ShowWindow(IntPtr hWnd, Int32 nCmdShow); | |
# '@ | |
# # Hide Powershell window | |
# $hWnd = [WPIA.ConsoleUtils]::GetConsoleWindow() |
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 { ModuleMetadata, Type } from '@nestjs/common/interfaces' | |
/** | |
* Options that ultimately need to be provided to create a MongoDB connection | |
*/ | |
export interface MongoModuleOptions { | |
connectionName?: string | |
uri: string | |
dbName: string | |
clientOptions?: any |
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.annotation.SuppressLint; | |
import android.app.ActivityManager; | |
import android.content.Context; | |
import android.content.res.Configuration; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
import android.os.Build; | |
import android.provider.Settings; | |
import android.support.annotation.IntDef; | |
import android.telephony.TelephonyManager; |
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.support.annotation.NonNull; | |
import java.util.HashMap; | |
import java.util.Map; | |
import io.reactivex.Observable; | |
import io.reactivex.android.schedulers.AndroidSchedulers; | |
import io.reactivex.disposables.CompositeDisposable; | |
import io.reactivex.disposables.Disposable; | |
import io.reactivex.functions.Consumer; | |
import io.reactivex.functions.Predicate; | |
import io.reactivex.subjects.PublishSubject; |
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
public interface OnEventListener { | |
/** | |
* Invoked when new message received from websocket with {event, data} structure | |
* | |
* @param data Data string received | |
*/ | |
void onMessage(String data); | |
} |