Skip to content

Instantly share code, notes, and snippets.

View BanHammerYKT's full-sized avatar
🏠
Working from home

Fedot Borisov BanHammerYKT

🏠
Working from home
  • JSB "Almazergienbank"
View GitHub Profile
@BanHammerYKT
BanHammerYKT / StartActivityForResultWithParam.kt
Last active February 10, 2023 16:31
StartActivityForResult but with parameter
/*
Example usage:
captureImageActivity.launch(IntentWithParam(Intent(MediaStore.ACTION_IMAGE_CAPTURE), SOME_PARAM))
private val captureImageActivity = registerForActivityResult(StartActivityForResultWithParam()) { result ->
if (result.resultCode == Activity.RESULT_OK) {
val SOME_PARAM = result.param
...
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http*://brontp-alpha.yandex.ru/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
https://youtu.be/coMi5gEnuKY
Apollo GraphQL
https://marketplace.visualstudio.com/items?itemName=apollographql.vscode-apollo
Auto Close Tag
https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag