curl -fsSL https://openclaw.ai/install.sh | bash
curl -fsSL https://ollama.com/install.sh | sh
| import android.graphics.Rect | |
| import android.view.View | |
| import androidx.recyclerview.widget.GridLayoutManager | |
| import androidx.recyclerview.widget.LinearLayoutManager | |
| import androidx.recyclerview.widget.RecyclerView.ItemDecoration | |
| import androidx.recyclerview.widget.RecyclerView | |
| import androidx.recyclerview.widget.StaggeredGridLayoutManager | |
| /** | |
| * Give equal margin around each [RecyclerView] items, adaptively. Supports known direct subclasses of |
| # Prompt Theme | |
| Set-PoshPrompt -Theme R:\personal-environment\scripts\powershell\custom-theme.json | |
| Remove-Alias cd | |
| # Modules | |
| Import-Module npm-completion | |
| Import-Module Terminal-Icons | |
| Import-Module PSReadline -RequiredVersion 2.2.0 |
| module.exports = { | |
| root: true, | |
| env: { | |
| browser: true, | |
| node: true, | |
| }, | |
| parserOptions: { | |
| parser: '@babel/eslint-parser', | |
| requireConfigFile: false, | |
| }, |
| /** | |
| * Set the adapter and call [clearReference] extension function in one call. | |
| * Use this extension if the current Fragment is going to be REPLACED. (When using fragmentTransaction.add is not necessary) the back stack. | |
| */ | |
| fun <VH : RecyclerView.ViewHolder> RecyclerView.setNullableAdapter( | |
| adapter: RecyclerView.Adapter<VH> | |
| ) { | |
| this.adapter = adapter | |
| this.clearReference() |
| data class DownloadItem(val bytesDownloadedSoFar: Long = -1, val totalSizeBytes: Long = -1, val status: Int) | |
| class DownloadProgressLiveData(private val application: Application, private val requestId: Long) : LiveData<DownloadItem>(), CoroutineScope { | |
| private val downloadManager by lazy { | |
| application.getSystemService(Context.DOWNLOAD_SERVICE) as DownloadManager | |
| } | |
| private val job = Job() |
| Balsamiq Wireframes for Desktop full license key free | |
| This old name is Balsamiq Mockups now the company changing the name to Balsamiq Wireframes for Desktop insteed | |
| HOW TO: | |
| First download softwere here: https://balsamiq.com/wireframes/desktop/ | |
| Install and follow screen direction | |
| Use below serial: | |
| ===================================================================================== |
| package com.example.domain.api | |
| import retrofit2.Call | |
| import retrofit2.Callback | |
| import retrofit2.Response | |
| import retrofit2.Retrofit | |
| import retrofit2.converter.gson.GsonConverterFactory | |
| open class RetrofitRepo<out S>(clazz: Class<S>) { | |
| val service: S = Api.service(clazz) |
| find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && npm install" \; |