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
# all logging settins are here on top | |
$logFile = "log-$(gc env:computername).log" | |
$logLevel = "DEBUG" # ("DEBUG","INFO","WARN","ERROR","FATAL") | |
$logSize = 1mb # 30kb | |
$logCount = 10 | |
# end of settings | |
function Write-Log-Line ($line) { | |
Add-Content $logFile -Value $Line | |
Write-Host $Line |
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
constructor(props: object) { | |
super(props) | |
console.log(this.isISO8601('1')) | |
console.log(this.isISO8601('2020-08-01T00:00:00Z')) | |
console.log(this.isISO8601('2020-08-01T00:00:00.000345Z')) | |
console.log(this.isISO8601('2020-06-08T00:01:01+05:59')) | |
} |
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 forge from 'node-forge' | |
export class CPCard { | |
private static readonly _pubKey = '-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArBZ1NNjvszen6BNWsgyDUJvDUZDtvR4jKNQtEwW1iW7hqJr0TdD8hgTxw3DfH+Hi/7ZjSNdH5EfChvgVW9wtTxrvUXCOyJndReq7qNMo94lHpoSIVW82dp4rcDB4kU+q+ekh5rj9Oj6EReCTuXr3foLLBVpH0/z1vtgcCfQzsLlGkSTwgLqASTUsuzfI8viVUbxE1a+600hN0uBh/CYKoMnCp/EhxV8g7eUmNsWjZyiUrV8AA/5DgZUCB+jqGQT/Dhc8e21tAkQ3qan/jQ5i/QYocA/4jW3WQAldMLj0PA36kINEbuDKq8qRh25v+k4qyjb7Xp4W2DywmNtG3Q20MQIDAQAB\n-----END PUBLIC KEY-----' | |
private static readonly _keyVersion = '04' | |
private constructor( | |
private _number: string, |
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
declare module 'AndroidCommunicator' { | |
global { | |
interface Window { | |
Android: AndroidCommunicator | undefined; | |
} | |
type AndroidCommunicator = { | |
setCallbackExists: (v: boolean) => void; | |
reload: () => void; |
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 { useTheme } from '@material-ui/core'; | |
import { observer } from 'mobx-react'; | |
import * as React from 'react'; | |
import Select from 'react-select'; | |
import { ValueType } from 'react-select/src/types'; | |
import { SelectedOption, SelectorProps } from './Types'; | |
type Props = SelectorProps & { | |
required?: boolean; |
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
package com.nasladdin.partner.boilerplate | |
import android.util.Log | |
import androidx.lifecycle.Lifecycle | |
import androidx.lifecycle.LifecycleObserver | |
import androidx.lifecycle.LifecycleOwner | |
import androidx.lifecycle.OnLifecycleEvent | |
import kotlinx.coroutines.* | |
import java.lang.Exception | |
import kotlin.coroutines.CoroutineContext |
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
package com.my.program; // сначала пэкэдж | |
import java.util.*; // Потом глобальные импорты | |
import java.system.*; | |
import com.my.program.animals.Animal; // Через пустую строку локальные импорты | |
import com.my.program.animals.CanWalk; | |
class Cat extends Animal implements CanWalk { |
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
package com.nasladdin.partner.services; | |
import android.app.Service; | |
import android.bluetooth.BluetoothAdapter; | |
import android.bluetooth.BluetoothDevice; | |
import android.bluetooth.BluetoothGatt; | |
import android.bluetooth.BluetoothGattCallback; | |
import android.bluetooth.BluetoothGattCharacteristic; | |
import android.bluetooth.BluetoothGattDescriptor; | |
import android.bluetooth.BluetoothGattService; |
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
package com.nasladdin.partner.activities.login | |
import android.os.Bundle | |
import android.view.KeyEvent | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.lifecycle.Observer | |
import androidx.lifecycle.ViewModelProvider | |
import com.nasladdin.partner.R | |
import com.nasladdin.partner.helpers.SnackbarFacade |
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
namespace Persistence.Store.SqlRepositories | |
{ | |
public class RawMsSqlRepository : DbContextManipulator, IRawSqlRepository | |
{ | |
public RawMsSqlRepository(string connectionString) : base (connectionString) | |
{ | |
} | |
public T[] Query<T>(string sqlText, Dictionary<string, object> parametersDict) |
NewerOlder