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
public class GenerateDimenTool { | |
public static void main(String[] args) { | |
StringBuilder sw400 = new StringBuilder(); | |
//添加xml开始的标签 | |
String xmlStart = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + | |
"<resources>\n"; | |
sw400.append(xmlStart); | |
//添加内容 | |
for (int i = 0; i <= 1920; i++) { | |
// 此处name后的标签名可以自定义"margin_"随意更改 |
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 |