This file contains 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
-- Show system hidden files | |
tell application "Finder" to quit | |
tell application "System Events" to do shell script "defaults write com.apple.finder AppleShowAllFiles -bool true" | |
tell application "Finder" to launch | |
-- copy file to clipboard | |
tell app "Finder" to set the clipboard to (POSIX file "/Users/zhangyongkang/Desktop/Markdown.md") | |
This file contains 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
import android.content.Context | |
import android.graphics.* | |
import android.graphics.Bitmap.CompressFormat | |
import android.graphics.drawable.Drawable | |
import android.renderscript.Allocation | |
import android.renderscript.Element | |
import android.renderscript.RenderScript | |
import android.renderscript.ScriptIntrinsicBlur | |
import android.text.TextUtils | |
import android.util.Log |