# git add
# git commit -m "comment"
# git push
# git push upstream master
// Get update from master :
# git pull upstream master
# git config --global alias.st 'status'
// Credentials
// Store credentials in cache :
# git config --global credential.helper "cache --timeout=3600"
// Store credentials permanently :
# git config credential.helper store
// remove credentials :
# git config --unset credential.helper
More on alias
More on credentials storage
Memento git
Posté par Clem | mardi 28 janvier 2014 à 15:44
bloc-notes , git
|
1
|
0
[Android] Configuration Proguard
Posté par Clem | lundi 30 mai 2011 à 21:24
Pour que les méthodes spécifiées de cette façon dans les onClick des fichiers xml de Layout puissent etre appelées :
Ex :
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/Button04"
android:text="@string/click"
android:onClick="clickOnPropos"/>
Insérer dans le fichier proguard.cfg :
-keepclassmembers class * extends android.app.Activity{
public void *(android.view.View);
}
Egalement, lorsqu'on utilise des noms de champs de la classe R dynamiquement (instruction class.getField()) :
ImageView flag = (ImageView) findViewById(R.id.class.getField("flag"+(i+1)).getInt(null));
Insérer dans le fichier proguard.cfg :
-keepclassmembers class **.R$* { public static <fields>; }
[Java] Effectuer une action lorsque une application java s'arrête
Posté par Clem | vendredi 13 mai 2011 à 15:15
Runtime.getRuntime().addShutdownHook(new Thread(){
@Override
public void run() {
/** Faire une action */
}
});
bloc-notes , code
, java
|
2
|
0