Skip to content

Instantly share code, notes, and snippets.

😃
I love my pet projects.

Volodymyr jordan1997

😃
I love my pet projects.
Block or report user

Report or block jordan1997

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View create_release_note.sh
KEYS=$(git shortlog -n ${GIT_PREVIOUS_SUCCESSFUL_COMMIT}..HEAD — oneline | cut -d ']' -f1 | cut -d '[' -f2 | grep "^IM")
echo ${KEYS} >> releaseNote.txt
View create_new_version_fix_version.sh
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
View update_fix_version.sh
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
View send_slack_message_by_curl.sh
curl -X POST -H "Content-type: application/json" — data "{"text":"Developers make something good:) please check Jira"}" ${SLACK_HOOK}
View ci_cd_final.bash
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}
View moxy_generate_code_sample.kt
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;
}
View moxy_AddToEndStrategy.kt
interface SomeViewInterface : MvpView {
...
@StateStrategyType(AddToEndStrategy::class)
fun startSomeAnimation()
}
View moxy_SkipStrategy.kt
interface SomeViewInterface : MvpView {
...
@StateStrategyType(SkipStrategy::class)
fun startSomeAnimation()
}
View moxy_OneExecutionStateStrategy.kt
interface SomeViewInterface : MvpView {
...
@StateStrategyType(OneExecutionStateStrategy::class)
fun showSomeFragment(someArgumentIfYouNeed : Int)
}
View moxy_AddToEndSingleStrategy.kt
interface SomeViewInterface : MvpView {
...
@StateStrategyType(AddToEndSingleStrategy::class)
fun showSomeData(someData : Foo)
}
You can’t perform that action at this time.