For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
public EdgeEffect(Context context) { | |
final Resources res = context.getResources(); | |
mEdge = res.getDrawable(R.drawable.overscroll_edge); | |
mGlow = res.getDrawable(R.drawable.overscroll_glow); |
/* | |
* Copyright 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
// in your android.applicationVariants.all { variant -> | |
// or in your android.libraryVariants.all { variant -> | |
// code block put this: | |
if (variant.productFlavors[0] == null){ | |
variant.outputs[0].outputFile = new File(variant.outputs[0].outputFile.parent, | |
project.ext.ourProjectName + "_" | |
+ variant.buildType.name + "_" | |
+ android.defaultConfig.versionCode + "_" | |
+ android.defaultConfig.versionName + ".apk") | |
}else{ |
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Copyright (C) 2015 The Android Open Source Project | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
#!/bin/bash | |
# remove old backups keeping only the latest one | |
# run this script only in your TitaniumBackup folder !!! | |
# create this folder first! | |
target=old | |
# pipe|separated|list | |
exclude="this.is.an.example.org.mozilla.firefox" | |
# | get app IDs |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
/** | |
* dic.txt 内每行类似 'a'ba 阿巴 | |
* 先组合声母韵母,然后再完整替换 | |
* 对于零声母音节,声母当作空字符 | |
**/ | |
const fs = require('fs') | |
// 声母 | |
const shengmu = { |