选择 File->New->Import Files... 然后选择android项目根目录.
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
#!/bin/bash | |
function actual_path() { | |
if [ [ -z "$1" ] -a [ -d $1 ] ]; then | |
echo $(cd $1 && test `pwd` = `pwd -P`) | |
return 0 | |
else | |
return 1 | |
fi | |
} |
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
null | |
java.lang.StackOverflowError | |
at com.intellij.openapi.application.impl.ApplicationImpl.isReadAccessAllowed(ApplicationImpl.java:1055) | |
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1024) | |
at com.intellij.psi.impl.source.tree.CompositeElement.textToCharArray(CompositeElement.java:282) | |
at com.intellij.psi.impl.source.tree.CompositeElement.getText(CompositeElement.java:253) | |
at com.intellij.extapi.psi.ASTDelegatePsiElement.getText(ASTDelegatePsiElement.java:133) | |
at ro.redeul.google.go.lang.psi.impl.toplevel.GoTypeNameDeclarationImpl.getName(GoTypeNameDeclarationImpl.java:48) | |
at ro.redeul.google.go.lang.psi.resolve.TypeNameResolver.checkReference(TypeNameResolver.java:38) | |
at ro.redeul.google.go.lang.psi.resolve.TypeNameResolver.visitTypeSpec(TypeNameResolver.java:24) |
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
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works | |
package main | |
import ( | |
"code.google.com/p/go.crypto/ssh" | |
"crypto" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/pem" | |
"fmt" |
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
{ | |
"007a3ae3f03fb18c2cab1e0c97c45a20": [ | |
"WinDivert-1.4.0-rc-A-MINGW.zip/WinDivert-1.4.0-rc-A-MINGW/x86_64/WinDivert64.sys", | |
"WinDivert-1.4.0-rc-A-MINGW.zip/WinDivert-1.4.0-rc-A-MINGW/x86/WinDivert64.sys", | |
"WinDivert-1.4.0-rc-A-WDDK.zip/WinDivert-1.4.0-rc-A-WDDK/x86_64/WinDivert64.sys", | |
"WinDivert-1.4.0-rc-A-WDDK.zip/WinDivert-1.4.0-rc-A-WDDK/x86/WinDivert64.sys", | |
"WinDivert-1.4.1-A-MINGW.zip/WinDivert-1.4.1-A-MINGW/x86_64/WinDivert64.sys", | |
"WinDivert-1.4.1-A-MINGW.zip/WinDivert-1.4.1-A-MINGW/x86/WinDivert64.sys", | |
"WinDivert-1.4.1-A-WDDK.zip/WinDivert-1.4.1-A-WDDK/x86_64/WinDivert64.sys", | |
"WinDivert-1.4.1-A-WDDK.zip/WinDivert-1.4.1-A-WDDK/x86/WinDivert64.sys", |
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
using System.Security.Cryptography; | |
using System.Diagnostics; | |
using System; | |
using System.Runtime.InteropServices.WindowsRuntime; | |
namespace abc { | |
public sealed class AesCtr { | |
public static void testRun() { | |
for (var i2 = 0; i2 < 3; i2++) { | |
var outputV = Encrypt(new byte[32], new byte[16], new byte[30]); |
base on https://pkg.go.dev/golang.org/x/mod/semver which base on https://semver.org/
-
I think smallest version is
v0.0.0-0
. No biggest version when string length is unlimited. -
valid (sort by smallest to biggest)
v0.0.0-0
v0.0.0-0+0
v0.0.0-2
v0.0.0-12
v0.0.0--0
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
ḻ͔̦͎̯͍̦͕̊̅ͦ͛͂̍͐̑̔͛̚̕͘k̨͎̳͈̫̫̤̙̪̞̦̳͙̭͓̜̙̞̄̽̊͐̍̓̋͊̎͘ͅa̩̮̘̗͈͙̠̲̠̹̹͚̣̜͖̳̞͇͂͊͒̈́̽̏ͮ̑́̉̾ͣ̽͆̀͘͟͢j̧̛͕̻̻̯̤̹̮̤ͬ̿ͮ͌̔ͧͤ͌ͤͭ͆ͤ̍͜͡fͭͨ̓͋̊҉̸̡̡̮̪͉̣͉̣͇͖̪͖̲͚l͌̎̑ͣͣ̏̀̈́̄͏̶̷̧͇̻̱̰́k̛̯̝͔̰̬̱͔̲̠̤̠̝͚͎͉ͭ͑ͫ̆̉̓;̷̸̨̀͒̏̃ͦ̈́̾̀́̎͢҉͚̼͉s̵͖̺̥͔͇̰̹̮͙͉̻̼̭̻͕̮͇ͨͬͪ͗̇̑̽͋̀j̶̋̊͌ͧͨͭ̓̅͐ͥ̂̔̊ͧ͊҉̶̵̞̩̦̳̺̳̬a̷̬̩̣̫͇̯̥ͯ̽͌̔ͪͯ́́͠l͖͍͕̠̦̼̗͋̍ͨ͘͜k̿̿̎͒ͤ̓̅̀͂ͧ͋̏ͫͣ̔͏̶̥̺͓̘̺͘ḑ̵͎̜̥͕͈̝̫͎̺̮̱̤̠̠͖̳ͮͧͫ͂͒ͤͣ̌̽ͨͪ͒̚͘͘͟j̸̧̻̥̣̪͍͕͇̮͙̹̪̄̄̉̒̊ͩ̅͆̚͟͝ͅf͈̼̩̯̒̎̇̆͆ͪ̈́͛̉̍̏́̄̈́̽̔̍̎̂͘͠n̸̸̡̛̪͕̯̫̹̥͔͚͙̦̩ͬ̆͗͌̔ͫ͆̀́͑̈́ͤ́ͯ̇ͧ͞s̶͚̭̥͉̰̝̺͍̭̤̹̘̮̪͖͖͉̲̾͂̐̋̉̊ͦͥ͘͢a̸̛̯͕̜̭̙̺̬̘ͫͧ͆ͨ͘͟͝ͅͅj̢͉̻͍̝̦͖̣̽̒̃͊̒̎͊̇͝͝ͅd̜͖̱͚̞̞̝̝̭̖͕͓͕͇̖̜̽̓̒ͬ̐̈́̀́́ṋ̠͖̼̯̼̍̈́̆̉ͭͪ̾ͭ̈́͛͑̽͐ͬ̈ͧ̕͟͝f̶̠̹͔̲͔̟͕̱̘̹̗͙̪̥̳͓ͧ̍̐̑̓ͥ̔̾͐́̎̎͛ͮ͑ͤ̃̉͟j̳͖̞ͦ̍͒ͩ̃̌̎͗͜j̡̻͉͈̮̯̲̘̱̱̞̜̖̞̣̱̈́̐̉͐͐͌̄̀̓͆͡ả̌̎͂ͨͩͬ̾̊͋ͪ̎̑̀͏͏̡̛̙̣͉̪̬̗̳̱̤̥s̡̪̮̮̟̥̠͚̼͉̥ͯ̓̂́͐̄̉̇ͣ́̚͜͟k̴̢ͪ̅̈̃̂ͯͭ͠͏̵͇̺͇̮̳̖̣͓̫̹͍͓͚͎̣͎͇;̨̡͇̲͙̞̺̪̯̯̗̯̯͔͖͖̞̤͗̊͐̋ͭ̇̒̔͐́̀f̵̛̹̩͍̹̼͚̯̞̤͔̟̦̱̯̃͆̾̑́͝ḑ̡̖̝͈̯̘͈̱̬̣̝͈͔͕͓̳̱̗̙̃͒̇ͪ̄ͥ̋̈ͬ̌͞ͅl̢͈̣̯̯̯̘̩̹̱̣̣ͦ̂ͣ̅̒ͪͤͮ͛͜j̛͆̃͗̑ͩ̏ͮ̋͐̾̆ͫͧ͌̓͏͡͏̸̩̻͇̙͎̞̭̪͚̩͖̪͔͓̰̣̳̰l͛ͯ̚ |
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
// copy and change from https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/src/main/java/com/blankj/utilcode/util/KeyboardUtils.java#L185C1-L207C6 | |
private var sDecorViewDelta = 0 | |
fun isSoftInputVisible(activity: Activity): Boolean { | |
val window = activity.window | |
val decorView = window.decorView | |
val outRect = Rect() | |
decorView.getWindowVisibleDisplayFrame(outRect) | |
val delta = Math.abs(decorView.bottom - outRect.bottom) | |
var NavBarHeight = 0 | |
val res = activity.application.resources |
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 isSoftInputVisibleInComposable():Boolean{ | |
@OptIn(ExperimentalLayoutApi::class) | |
return WindowInsets.isImeVisible | |
} |