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
#!/bin/bash | |
<< //// | |
The script creates 'licenses' under '$ANDROID_HOME' and creates a file which proves | |
that the SDK license was accepted by the user. | |
Please copy this to your own account/gist/server. Every time there's an updated license, update the file with the new | |
license hash. | |
Legally if you run this script (or your own version of it), it means YOU accepted the license - don't trust someone else. | |
The hashes below are supposed to be taken from $ANDROID_HOME/licenses/android-sdk-license on YOUR machine, after you |
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
{ | |
"audio.dispose": { | |
"body": "audio.dispose( ${1:audioHandle} )", | |
"description": "Releases audio memory associated with the handle.", | |
"prefix": "audio.dispose" | |
}, | |
"audio.fade": { | |
"body": "audio.fade( ${1:[ { [channel=c] [, time=t] [, volume=v ] } ]} )", | |
"description": "This fades a playing sound in a specified amount to a specified volume. The audio will continue playing after the fade completes.", | |
"prefix": "audio.fade" |
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
第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo: | |
cd /etc/yum.repos.d/ | |
vim nginx.repo | |
填写如下内容: | |
[nginx] | |
name=nginx repo |
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
package com.sjl.util; | |
import android.app.Activity; | |
import android.app.Application; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.util.Log; | |
import java.util.List; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<rotate xmlns:android="http://schemas.android.com/apk/res/android" | |
android:fromDegrees="0" | |
android:pivotX="50%" | |
android:pivotY="50%" | |
android:duration="1" <!-- Duration = 1 means that the rotation will be done in 1 second--> | |
android:toDegrees="360" <!--increase duration if you want to speed up the rotation--> | |
> | |
<shape |