Skip to content

Instantly share code, notes, and snippets.

View danke77's full-sized avatar
🙈
Focusing

慌不要慌 danke77

🙈
Focusing
View GitHub Profile
@danke77
danke77 / cloudSettings
Last active August 3, 2021 11:15
vscode settings
{"lastUpload":"2021-08-03T11:14:46.202Z","extensionVersion":"v3.4.3"}
@danke77
danke77 / crypto.ts
Last active August 13, 2019 09:13
crypto tools for ts
import CryptoJS = require("crypto-js");
const defaultOption = {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.NoPadding,
};
const arrayToHexString = (array: number[]): string => {
let s = '';
array.forEach((byte) => {
@danke77
danke77 / aes.js
Last active July 24, 2019 01:52
aes tools for js
const aesjs = require('aes-js');
const utf8ToBytes = aString => {
return aesjs.utils.utf8.toBytes(aString);
}
const bytesToUtf8 = aBytes => {
return aesjs.utils.utf8.fromBytes(aBytes);
}
@danke77
danke77 / .travis.yml
Created July 31, 2018 07:43
travis.yml for groovy
language: groovy
notifications:
# 关闭邮件通知
email: false
# set sudo required for non-container vm with more mem even though we don't need sudo
# https://docs.travis-ci.com/user/reference/overview/
sudo: required
dist: trusty
@danke77
danke77 / proguard-common.pro
Last active July 17, 2018 07:03
common proguard rules
# 指定外部模糊字典
# -obfuscationdictionary ./dictionary-pro.txt
# 指定 class 模糊字典
# -classobfuscationdictionary ./dictionary-pro.txt
# 指定 package 模糊字典
# -packageobfuscationdictionary ./dictionary-pro.txt
#############################################
#
# 对于一些基本指令的添加
@danke77
danke77 / bintray-android.gradle
Last active August 1, 2018 02:17
My bintray gradle for publishing Android, Java and Groovy library to jcenter and mavenCentral
// publish to bintray
//
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.3'
// classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.7.5'
// classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
//
// gradle clean build bintrayUpload
group = POM_GROUP
version = POM_VERSION_NAME
@danke77
danke77 / emojis.json
Created December 19, 2017 02:06 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👦‍👦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw