Commands to get commit statistics for a Git repository from the command line -
using git log
, git shortlog
and friends.
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
FROM openjdk:11-jre-slim | |
EXPOSE 8080 | |
ENV TZ=Europe/Moscow | |
RUN adduser --system --group --home /opt/app appuser | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends curl jq \ |
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
@file:Suppress("unused", "FunctionName", "IllegalIdentifier") | |
import android.annotation.SuppressLint | |
import android.app.Activity | |
import android.content.Context | |
import android.content.Intent | |
import android.os.Bundle | |
/** | |
* The best way to launch yourself an activity. Your implementation should enable the following api: |
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
//Em Activity | |
Intent i = new Intent(MainActivity.this, Destino.java); | |
startActivity(i); | |
overridePendingTransition(R.anim.fadein, R.anim.fadeout); | |
// Em fragments (provavelmente já possúi um código parecido com este) | |
FragmentManager fragmentManager = getSupportFragmentManager(); | |
FragmentTransaction transaction = fragmentManager.beginTransaction(); | |
transaction.setCustomAnimations(R.anim.fadein, R.anim.fadeout); //animação aqui | |
transaction.commit(); |
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
# (C) Mathieu Blondel, November 2013 | |
# License: BSD 3 clause | |
import numpy as np | |
def ranking_precision_score(y_true, y_score, k=10): | |
"""Precision at rank k | |
Parameters |