Skip to content

Instantly share code, notes, and snippets.

View wilinz's full-sized avatar

wilinz wilinz

  • Guilin University of Electronic Technology School of Artificial Intelligence
  • China Guilin
View GitHub Profile
wilinz /
Created April 23, 2024 17:03 — forked from preethamhegdes/
OkHttp Client Ignore certificate
import okhttp3.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
okhttp version used 3.8.1
wilinz / selection_transformer.dart
Last active August 19, 2023 06:40 — forked from schultek/selection_transformer.dart
A widget that transforms the text selection when copied.
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.
wilinz / MyLifecycleOwner.kt
Created February 16, 2023 12:24 — forked from handstandsam/MyLifecycleOwner.kt
Jetpack Compose OverlayService. You have to have all the correct permissions granted and in your manifest, but if you do, this this will show a green box with "Hello" in it!
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)
git config --global https.proxy
git config --global https.proxy
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy