這篇文章旨在作為快速參考與展示。要更多完整的資訊,請見 John Gruber 原本的規格與 Github 偏好的 Markdown(Github-flavored Markdown,簡寫為GFM)資訊頁。
如果你正在找 Markdown Here 的小抄(Cheatsheet),這裡也有一篇。你也可以看看更多 Markdown 的工具。
譯註:可以參考這份中文版文件,有更詳盡的 Markdown 語法說明;如果需要可以練習的線上編輯器,可以試試看HackMD。
| (function($){ | |
| /** | |
| * Register ajax transports for blob send/recieve and array buffer send/receive via XMLHttpRequest Level 2 | |
| * within the comfortable framework of the jquery ajax request, with full support for promises. | |
| * | |
| * Notice the +* in the dataType string? The + indicates we want this transport to be prepended to the list | |
| * of potential transports (so it gets first dibs if the request passes the conditions within to provide the | |
| * ajax transport, preventing the standard transport from hogging the request), and the * indicates that | |
| * potentially any request with any dataType might want to use the transports provided herein. | |
| * |
| public static boolean isWifiConn(Context context) { | |
| ConnectivityManager connectivityManager = (ConnectivityManager) | |
| context.getSystemService(Context.CONNECTIVITY_SERVICE); | |
| NetworkInfo networkInfo = connectivityManager | |
| .getNetworkInfo(ConnectivityManager.TYPE_WIFI); | |
| return networkInfo.isConnected(); | |
| } | |
| public static boolean isMobileConn(Context context) { | |
| ConnectivityManager connectivityManager = (ConnectivityManager) |
| import java.util.*; | |
| import java.io.*; | |
| import java.security.*; | |
| public class ChangePassword | |
| { | |
| private final static JKS j = new JKS(); | |
| public static void main(String[] args) throws Exception | |
| { |
這篇文章旨在作為快速參考與展示。要更多完整的資訊,請見 John Gruber 原本的規格與 Github 偏好的 Markdown(Github-flavored Markdown,簡寫為GFM)資訊頁。
如果你正在找 Markdown Here 的小抄(Cheatsheet),這裡也有一篇。你也可以看看更多 Markdown 的工具。
譯註:可以參考這份中文版文件,有更詳盡的 Markdown 語法說明;如果需要可以練習的線上編輯器,可以試試看HackMD。
| /** | |
| _____ _____ _ | |
| | __ \ / ____| | | | |
| | | | | ___| | _ __ _ _ _ __ | |_ ___ _ __ | |
| | | | |/ _ \ | | '__| | | | '_ \| __/ _ \| '__| | |
| | |__| | __/ |____| | | |_| | |_) | || (_) | | | |
| |_____/ \___|\_____|_| \__, | .__/ \__\___/|_| | |
| __/ | | | |
| |___/|_| | |
| */ |
| /* | |
| MIT License | |
| Copyright (c) 2019 Erik Hellman | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
/System/framework/framework-res.apk 的副本到任意位置webview, 将 /android/string/config_webViewPackageName 的值改为 com.google.android.webview| // A couple of inlined utility functions: the first is just a syntax convenience, the second lets us use | |
| // Kotlin's string interpolation efficiently: the message is never calculated/concatenated together unless | |
| // logging at that level is enabled. | |
| inline fun <reified T : Any> loggerFor(): org.slf4j.Logger = LoggerFactory.getLogger(T::class.java) | |
| inline fun org.slf4j.Logger.trace(msg: () -> String) { | |
| if (isTraceEnabled) trace(msg()) | |
| } | |
| /** | |
| * A Java logging formatter that writes more compact output than the default. |
^3[47][0-9]{13}$^(6541|6556)[0-9]{12}$^389[0-9]{11}$^3(?:0[0-5]|[68][0-9])[0-9]{11}$^65[4-9][0-9]{13}|64[4-9][0-9]{13}|6011[0-9]{12}|(622(?:12[6-9]|1[3-9][0-9]|[2-8][0-9][0-9]|9[01][0-9]|92[0-5])[0-9]{10})$^63[7-9][0-9]{13}$^(?:2131|1800|35\d{3})\d{11}$^9[0-9]{15}$