~/.gitconfig
[includeIf "gitdir:/"]
path = .gitconfig_person
[includeIf "gitdir:~/work-a/"]
path = .gitconfig_work_a
| # coding=utf-8 | |
| # | |
| # Usage: result = Differ(old_apk_path, new_apk_path).diff() | |
| # | |
| import os | |
| from argparse import ArgumentParser | |
| from zipfile import ZipFile | |
| KB = 1024.0 |
| #!/bin/sh | |
| echo "Push source to repo" | |
| echo "Cur: `pwd`" | |
| cd ../source/_posts | |
| git add . | |
| git commit -m "feat: update or create post" | |
| git push | |
| cd ../../.deploy_git |
~/.gitconfig
[includeIf "gitdir:/"]
path = .gitconfig_person
[includeIf "gitdir:~/work-a/"]
path = .gitconfig_work_a
| /** | |
| * <pre> | |
| * ClassFile { | |
| * u4 magic; | |
| * u2 minor_version; | |
| * u2 major_version; | |
| * u2 constant_pool_count; | |
| * cp_info constant_pool[constant_pool_count-1]; | |
| * u2 access_flags; | |
| * u2 this_class; |
| import java.net.Inet4Address | |
| import java.net.InetSocketAddress | |
| import java.net.Socket | |
| import java.nio.ByteBuffer | |
| import kotlin.random.Random | |
| fun main() { | |
| tlsHandshake() | |
| } |
| public void attachBaseContext(Context paramContext) { | |
| // Byte code: | |
| // 0: aconst_null | |
| // 1: astore_2 | |
| // 2: ldc 0 | |
| // 4: istore_3 | |
| // 5: aload_0 | |
| // 6: getfield mLauncherApplication : Lcom/x/mobile/y/LauncherApplication; | |
| // 9: getfield mCurrentProcessStartupTime : J | |
| // 12: lstore #4 |
| public void cancel() { | |
| if (isStarted()) { | |
| ArrayList<AnimatorListener> tmpListeners = null; | |
| if (mListeners != null) { | |
| tmpListeners = (ArrayList<AnimatorListener>) mListeners.clone(); | |
| int size = tmpListeners.size(); | |
| for (int i = 0; i < size; i++) { | |
| tmpListeners.get(i).onAnimationCancel(this); | |
| } | |
| } |
| public void cancel() { | |
| if (isStarted()) { | |
| ArrayList<AnimatorListener> tmpListeners = null; | |
| if (mListeners != null) { | |
| tmpListeners = (ArrayList<AnimatorListener>) mListeners.clone(); | |
| int size = tmpListeners.size(); | |
| for (int i = 0; i < size; i++) { | |
| tmpListeners.get(i).onAnimationCancel(this); | |
| } | |
| } |
| let images = document.querySelectorAll('.article-entry img'); | |
| images.forEach(function (i) { | |
| i.style.maxHeight = '450px' | |
| i.style.maxWidth = '600px'; | |
| i.style.boxShadow = '2px 2px 8px 0px #888888'; | |
| i.style.borderRadius = '8px'; | |
| let a = document.createElement("a"); | |
| a.setAttribute("data-fancybox", "gallery"); | |
| a.setAttribute("href", i.getAttribute("src")); | |
| a.setAttribute("data-caption", i.alt); |
| let images = document.querySelectorAll('.article-entry img'); | |
| images.forEach(function (i) { | |
| i.style.maxHeight = '450px' | |
| i.style.maxWidth = '600px'; | |
| i.style.boxShadow = '2px 2px 8px 0px #888888'; | |
| i.style.borderRadius = '8px'; | |
| let a = document.createElement("a"); | |
| a.setAttribute("data-fancybox", "gallery"); | |
| a.setAttribute("href", i.getAttribute("src")); | |
| a.setAttribute("data-caption", i.alt); |