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
| <?php | |
| namespace App\Models\Traits\ModelHelpers; | |
| use Illuminate\Support\Str; | |
| trait SecureHelperTrait | |
| { | |
| /** | |
| * Mask user secret data. |
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
| package com.data.repositories.authentication | |
| import com.data.apis.Api | |
| import com.data.apis.endpoints.authentication.AuthenticationApi | |
| import com.data.apis.models.generic.LaravelValidationErrors | |
| import com.data.apis.models.requests.auth.LoginRequest | |
| import com.data.apis.models.requests.auth.LoginRequestErrors | |
| import com.data.apis.models.responses.auth.LoginResponse | |
| import com.data.helpers.Errors.* | |
| import com.data.helpers.Resource |
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
| package com.data.helpers | |
| sealed class Resource<T, Y>( | |
| val data: T? = null, | |
| val error: Errors<Y>? = null | |
| ) { | |
| class Success<T, Y>(data: T) : Resource<T, Y>(data) | |
| class Error<T, Y>(error: Errors<Y>) : Resource<T, Y>(error = error) | |
| } |
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
| oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\sim-web.omp.json" | Invoke-Expression | |
| Import-Module -Name Terminal-Icons | |
| Import-Module -Name PSReadLine | |
| Set-PSReadLineOption -PredictionSource History | |
| Set-PSReadLineOption -PredictionViewStyle ListView | |
| Set-PSReadLineOption -EditMode Windows | |
| # Import the Chocolatey Profile that contains the necessary code to enable | |
| # tab-completions to function for `choco`. |
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
| @BindingAdapter(value = ["android:fontFamilyByText"]) | |
| fun TextView.customFontFamilyByText(text: String?) { | |
| val isAscii = Charsets.US_ASCII.newEncoder().canEncode(text) | |
| val fontFamily = if (isAscii) { | |
| ResourcesCompat.getFont(context, R.font.inter_variable_font_slnt_wght); | |
| } else { | |
| ResourcesCompat.getFont(context, R.font.noto_sans_bengali_variable_font_wdth_wght); | |
| } |
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
| package com.***.data.apis | |
| import android.content.Context | |
| import com.****.data.apis.interceptor.ApiAcceptInterceptor | |
| import com.****.data.apis.interceptor.AuthorizationTokenInterceptor | |
| import okhttp3.OkHttpClient | |
| import retrofit2.Retrofit | |
| import retrofit2.converter.gson.GsonConverterFactory | |
| import java.util.concurrent.TimeUnit |
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
| RewriteEngine on | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME}\.html -f | |
| RewriteRule ^(.*)$ $1.html |
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
| {{-- Anchor tag --}} | |
| {{-- | |
| Usage Example:: | |
| <x-a class="nav-link" href="{{ route('dashboard') }}" exact>Dashboard</x-a> | |
| <x-a class="nav-link" :href="route('dashboard')">Dashboard</x-a> | |
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
| data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/7QCcUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAIAcAigAYkZCTUQwMTAwMGFhNTAxMDAwMDkxNjQwMDAwYjYwZjAxMDA1MTFmMDEwMDg2MzEwMTAwMjliMTAxMDBmNzliMDIwMDYxYWYwMjAwYWVjMzAyMDBhMmRhMDIwMGFlNGQwNDAwHAJnABQ1LUVvZ2pRbDJCYU55Vk9YUUlIav/bAEMABAIDAwMCBAMDAwQEBAQFCQYFBQUFCwgIBgkNCw0NDQsMDA4QFBEODxMPDAwSGBITFRYXFxcOERkbGRYaFBYXFv/bAEMBBAQEBQUFCgYGChYPDA8WFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFv/CABEIBRAFEAMAIgABEQECEQH/xAAcAAABBQEBAQAAAAAAAAAAAAADAAECBAUGBwj/xAAaAQADAQEBAQAAAAAAAAAAAAAAAQIDBAUG/8QAGgEAAwEBAQEAAAAAAAAAAAAAAAECAwQFBv/aAAwDAAABEQIRAAAB20lpik6BmkwMkzGSYbNJgipRBmlEIxnAGhKIRjKIQGSACgQTGg8pc5tKWfiO28lFzhg9FR6LcK9z5PbrXAxZukrnd8H3BXoWjnaac5NIbupjUkmSdOJ5xlJMwypkjN5Yea6DGk4LYyLUb+j5uthRzegSjIFKMgfmemw0vNtWlcOUxadqYvAgRONLXy7tbeFslbD1rfLgXJ1czbSVa7W2Ixr3szYzFQzWvpZmi4iz5OWgMeR+uxZWhV0dLcpamN5yScVpmA9Y6Veo6NYSIa5UuJysCnlpcG9HDmz9GsTLvJCdbHuvdXxnV3xGjOPt8sYyfpUU8URZ3CUmfGlBLjaAbIzdTPeBLCsY9oUxrc0D51iZtFydVg68KgGLSttGlAQhSGQZkCxOyeMl1Jopw0WVSOKghJLq5UkwSUUyU |
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
| <?php | |
| $recent_examinations = $examinationService->recentExaminationsResultByExamTypeId($user->exam_type_id, $user->id); |