Skip to content

Instantly share code, notes, and snippets.

View VovaStelmashchuk's full-sized avatar
🇺🇦

Volodymyr Stelmashchuk VovaStelmashchuk

🇺🇦
View GitHub Profile
interface SomeViewInterface : MvpView {
...
@StateStrategyType(OneExecutionStateStrategy::class)
fun showSomeFragment(someArgumentIfYouNeed : Int)
}
interface SomeViewInterface : MvpView {
...
@StateStrategyType(SkipStrategy::class)
fun startSomeAnimation()
}
interface SomeViewInterface : MvpView {
...
@StateStrategyType(AddToEndStrategy::class)
fun startSomeAnimation()
}
public class MainView$$State extends MvpViewState implements MainView {
@Override
public void printLog(String message) {
PrintLogCommand printLogCommand = new PrintLogCommand(message);
viewCommands.beforeApply(printLogCommand);
if (hasNotView()) {
return;
}
file="releaseNote.txt"
if [ -f “$file” ]
then
echo "$file found."
message="We uploaded the new build"
for key in $(cat releaseNote.txt)
do
message=$"${message} n ${JIRA_URL}browse/$key"
done
curl -X POST -H 'Content-type: application/json' — data "{"text ":"$message"}" ${SLACK_HOOK}
curl -X POST -H "Content-type: application/json" — data "{"text":"Developers make something good:) please check Jira"}" ${SLACK_HOOK}
if [ -f "$file" ]
then
for key in $(cat releaseNote.txt)
do
curl -D- -u $JIRA_USERNAME:$JIRA_PASSWORD -X PUT --data "{"update":{"fixVersions":[{"set":[{"name":"${BUILD_NUMBER}"}]}]}}" -H "Content-Type:application/json" ${JIRA_URL}rest/api/2/issue/${key}
else
echo "$file not found."
fi
curl -D- -u $JIRA_USERNAME:$JIRA_PASSWORD -X POST --data "{"description": "***", "name": "${BUILD_NUMBER}", "archived": false, "released": false, "project": "${PROJECT_KEY}"}" -H "Content-Type:application/json" ${JIRA_URL}rest/api/2/version
KEYS=$(git shortlog -n ${GIT_PREVIOUS_SUCCESSFUL_COMMIT}..HEAD — oneline | cut -d ']' -f1 | cut -d '[' -f2 | grep "^IM")
echo ${KEYS} >> releaseNote.txt
with library without libary
path.moveTo(pointF) path.moveTo(pointF.x, pointF.y)
path.moveTo(point) path.moveTo(point.x.toFloat(), point.y.toFloat())
path.moveTo(xIntValue, yIntValue) path.moveTo(xIntValue.toFloat(), yIntValue.toFloat()
path.lineTo(pointF) path.lineTo(pointF.x, pointF.y)
path.lineTo(point) path.lineTo(point.x.toFloat(), point.y.toFloat())
path.lineTo(xIntValue, yIntValue) path.lineTo(xIntValue.toFloat(), yIntValue.toFloat()
path.setLastPoint(pointF) path.setLastPoint(pointF.x, pointF.y)
path.setLastPoint(point) path.setLastPoint(point.x.toFloat(), point.y.toFloat())