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
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
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.os.Bundle | |
import androidx.lifecycle.Lifecycle | |
import androidx.lifecycle.LifecycleRegistry | |
import androidx.savedstate.SavedStateRegistry | |
import androidx.savedstate.SavedStateRegistryController | |
import androidx.savedstate.SavedStateRegistryOwner | |
internal class MyLifecycleOwner : SavedStateRegistryOwner { | |
private var mLifecycleRegistry: LifecycleRegistry = LifecycleRegistry(this) | |
private var mSavedStateRegistryController: SavedStateRegistryController = SavedStateRegistryController.create(this) |
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
const googleTranslateTKK = "448487.932609646"; | |
function shiftLeftOrRightThenSumOrXor(num, optString) { | |
for (let i = 0; i < optString.length - 2; i += 3) { | |
let acc = optString.charAt(i + 2); | |
if ('a' <= acc) { | |
acc = acc.charCodeAt(0) - 87; | |
} else { | |
acc = Number(acc); | |
} |
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
sq=Albanian | |
ar=Arabic | |
am=Amharic | |
az=Azerbaijani | |
ga=Irish | |
et=Estonian | |
or=Oriya | |
eu=Basque | |
be=Belarusian | |
bg=Bulgarian |
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 'package:flutter/rendering.dart'; | |
import 'package:flutter/widgets.dart'; | |
typedef SelectionTransform = String Function(Iterable<String>); | |
/// A widget that transforms the text selection when copied. | |
/// | |
/// This uses the [SelectionContainer] with a custom [SelectionContainerDelegate] to override the | |
/// [getSelectedContent] method with a custom implementation. | |
/// |
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
Sub DeleteArtisticText() | |
Dim oShape As Shape | |
Dim toDelete As New Collection | |
Dim targetTexts() As Variant | |
' Specify the texts you want to delete | |
targetTexts = Array("Text1", "Text2", "Text3") ' Add your specific texts here | |
' First, find all shapes to delete and add them to the collection | |
For Each oShape In ActiveDocument.Shapes |
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 ptr | |
func ptr[T any](v T) *T { | |
return &v | |
} | |
func unptr[T any](ptr *T) T { | |
return *ptr | |
} |
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.wilinz.xxx | |
import androidx.compose.foundation.clickable | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.Row | |
import androidx.compose.foundation.layout.padding | |
import androidx.compose.foundation.shape.RoundedCornerShape | |
import androidx.compose.material3.Checkbox | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.mutableStateOf |
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
@Composable | |
fun Sample() { | |
val timePickerState = | |
rememberTimePickerState( | |
is24Hour = true, | |
initialHour = 12, | |
initialMinute = 0 | |
) | |
var isShowTimePicker by remember { | |
mutableStateOf(false) |
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 'package:flutter/material.dart'; | |
import 'package:fluttertoast/fluttertoast.dart'; | |
import 'package:get/get.dart'; | |
import 'package:xxx/generated/locales.g.dart'; | |
import 'package:xxx/ui/route.dart'; | |
final FToast fToast = FToast(); | |
bool _isInit = false; | |
void toast(dynamic message) { |
OlderNewer