git status -uno
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
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
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 android.content.res.Configuration.UI_MODE_NIGHT_YES | |
| import androidx.compose.animation.core.* | |
| import androidx.compose.foundation.isSystemInDarkTheme | |
| import androidx.compose.foundation.layout.* | |
| import androidx.compose.foundation.lazy.LazyColumn | |
| import androidx.compose.foundation.shape.RoundedCornerShape | |
| import androidx.compose.material.Surface | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.getValue | |
| import androidx.compose.ui.Modifier |
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
| /** | |
| * Composable function that aims to help the single event handing. | |
| * Use it only for SideEffect event (one shot) and not for handling UI state changes. | |
| * | |
| * @param sideEffectFlow Flow | |
| * @param lifeCycleState default [Lifecycle.State.STARTED] | |
| * @param collector | |
| */ | |
| @Composable | |
| fun <T : Any> SingleEventEffect( |
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
| # Reset Jetbrains 2020 Products | |
| import glob | |
| import os | |
| import winreg | |
| from os import path | |
| from os.path import expanduser | |
| home = expanduser("~") | |
| newJetbrainsHome = path.join(home, "AppData\Roaming\JetBrains") |
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
| /** | |
| * An [Observer] for [Event]s, simplifying the pattern of checking if the [Event]'s content has | |
| * already been handled. | |
| * | |
| * [onEventUnhandledContent] is *only* called if the [Event]'s contents has not been handled. | |
| */ | |
| class EventObserver<T>(private val onEventUnhandledContent: (T) -> Unit) : Observer<Event<T>> { | |
| override fun onChanged(event: Event<T>?) { | |
| event?.getContentIfNotHandled()?.let { value -> | |
| onEventUnhandledContent(value) |
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
| apply plugin: 'com.android.application' | |
| apply from: "$rootDir/coverage.gradle" | |
| //... | |
| android { | |
| //... | |
| buildTypes { | |
| //... | |
| debug { |
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 org.simpleframework.xml.Attribute; | |
| import org.simpleframework.xml.Element; | |
| import org.simpleframework.xml.ElementList; | |
| import org.simpleframework.xml.Namespace; | |
| import org.simpleframework.xml.NamespaceList; | |
| import org.simpleframework.xml.Root; | |
| import org.simpleframework.xml.Text; | |
| import java.util.List; |
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
| <select name="Sehir"> | |
| <option value="0">------</option> | |
| <option value="1">Adana</option> | |
| <option value="2">Adıyaman</option> | |
| <option value="3">Afyonkarahisar</option> | |
| <option value="4">Ağrı</option> | |
| <option value="5">Amasya</option> | |
| <option value="6">Ankara</option> | |
| <option value="7">Antalya</option> | |
| <option value="8">Artvin</option> |
NewerOlder