This file contains hidden or 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
| [ | |
| { | |
| "label": "Chrome", | |
| "packageName": "com.android.chrome", | |
| "visible": true, | |
| "enable": false | |
| }, | |
| { | |
| "label": "POS Steward", | |
| "packageName": "com.woyou.hardwarekeeper", |
This file contains hidden or 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
| val ByteArray.asHexLower inline get() = this.joinToString(separator = ""){ String.format("%02x",(it.toInt() and 0xFF))} | |
| val ByteArray.asHexUpper inline get() = this.joinToString(separator = ""){ String.format("%02X",(it.toInt() and 0xFF))} | |
| val String.hexAsByteArray inline get() = this.chunked(2).map { it.toUpperCase().toInt(16).toByte() }.toByteArray() | |
| val String.tryHexAsByteArray inline get() = try{this.chunked(2).map { it.toUpperCase().toInt(16).toByte() }.toByteArray()}catch(e:Throwable){null} | |
| fun encrypt3Des(data: String): String{ | |
| val dataBytes = data.hexAsByteArray | |
| var keyBytes = key.hexAsByteArray | |
| if (keyBytes.size == 16){ | |
| val tmpKey = ByteArray(24) |
This file contains hidden or 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
| abstract class GenericAdapter<T>(val items: List<T>, | |
| val layoutResId: Int, | |
| val bindHolder: View.(T) -> Unit) : | |
| RecyclerView.Adapter<GenericAdapter.Holder>() { | |
| override fun getItemCount(): Int = items.size | |
| override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): Holder { | |
| val view = LayoutInflater.from(parent.context).inflate(layoutResId, parent, false) | |
| return Holder(view) |
This file contains hidden or 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
| /** | |
| * The `fragment` is added to the container view with id `frameId`. The operation is | |
| * performed by the `fragmentManager`. | |
| */ | |
| fun AppCompatActivity.replaceFragmentInActivity(fragment: Fragment, @IdRes frameId: Int) { | |
| supportFragmentManager.transact { | |
| replace(frameId, fragment) | |
| } | |
| } |
This file contains hidden or 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 your.package.name | |
| import android.support.v7.util.DiffUtil | |
| import android.support.v7.widget.LinearLayoutManager | |
| import android.support.v7.widget.RecyclerView | |
| import android.view.LayoutInflater | |
| import android.view.View | |
| import android.view.ViewGroup | |
| /** |
This file contains hidden or 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
| My2c2pSDK sdk = new My2c2pSDK("MIAGCSqGSIb3DQEHA6CAMIACAQAxggGoMIIBpAIBADCBizB+MQswCQYDVQQGEwJTRzELMAkGA1UECBMCU0cxEjAQBgNVBAcTCVNpbmdhcG9yZTENMAsGA1UEChMEMmMycDENMAsGA1UECxMEMmMycDEPMA0GA1UEAxMGbXkyYzJwMR8wHQYJKoZIhvcNAQkBFhBsdXNpYW5hQDJjMnAuY29tAgkA6a0e/lQFe58wDQYJKoZIhvcNAQEBBQAEggEAGMdlepae0qiHnF+dUehI49PdsH2Wr3aHoSjBvPFzKVcGNjYHEGOb8dJ40jpIIruiVUpkusI0M5zJU5icBBnSN/A3HCCyiaR/XlxqmyyjWns/Zk9VgVUVP+ewjzhtxJJS49OwQU1VhUc/IFk+gpUQpsEJhaShMJ6Mb09Ei04lDnv5xxMkt0MjmOgIp7Jfz7xCTUXwg3AZ1eUUEoTAtpzjoMqxhXnohxxTeam3ssJZdM0+pLwmmDiltNAYkn47o7Rww1w9Lu0j6gL2ikMtlkaZ7QRwV9ItbmAnCmXKXb0gjz3dvTzPbuvvertwunjMd2TDPc/Sv839jkybv47UN0B65jCABgkqhkiG9w0BBwEwHQYJYIZIAWUDBAECBBBhkOu4ziTjJ+JLAf24bNs0oIAEggPochZHMOIhDUAz2XHl/J9QA1gueOLqd11315a5haiAUUOc6UfmSQpyvUh+CKRFp720RoYmx9bCDRa6wL65g8SX8Rcl2lzO45hQzGYHGB0Q5Rytnf8SbzENtj2BXujuDF0t7jn++JO0YVhqwB/dasW6maOeYnWqckv+kltTpILJ51sYbZV5gCbIVKzMyQmZef4rmVlbgCQe/CkBx7YCIVgO/GD47dedM53zKwlhjxvaOPhuYh+JaO/PYEHtcyfmEETslUoGAPdhxprmD6sKh23Jft26aapPA6vQx9AbbztUPURkI4c7oo4XRJqIddNoJdg+Xsuw9Gw9u |
This file contains hidden or 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://www.bignerdranch.com/blog/want-kotlin-on-the-server-do-ktor/ |
This file contains hidden or 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
| __________ | |
| Mobile App Architecture | |
| One of the first steps for development of an app in a mobile application development company is selecting the right client architecture. We assist selecting right client architecture amongst “Mobile Web App”, “Native App”, “Hybrid App” approaches considering several unique aspects like device form factor, sporadic connectivity, variable bandwidth, multi-platform support, and user experience. Also, we assess mobile client architecture approaches by comparing them along with key technical and business drivers like multi-platform support, access to device sensors, performance, native look and feel, app search, app distribution, app upgrades, connectivity and development/testing effort, time-to-market, budget, TCO, consumer perception and BYOD. | |
| Key Technical Criteria For Evaluating Mobile Architectures: | |
| Access To Mobile Hardware Sensors | |
| Performance | |
| Native Look And Feel |
This file contains hidden or 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
| nocturnal.ninja | |
| nocturnalfox.ninja | |
| nocturnalfox.net |
This file contains hidden or 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
| public class DateTimeUtil { | |
| private DateTimeUtil() { | |
| } | |
| private static final String APPLY_FORMAT_DATE = "yyyy-MM-dd"; | |
| private static final String APPLY_FORMAT_TIME = "HH:mm:ss"; | |
| //private static final String APPLY_FORMAT_FULL = APPLY_FORMAT_DATE + APPLY_FORMAT_T + APPLY_FORMAT_TIME; |
NewerOlder