This file contains hidden or 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
| def originalEstimate = issue.getOriginalEstimate(); | |
| def timeSpent = issue.getTimeSpent(); | |
| if (originalEstimate != null) { | |
| if (originalEstimate < timeSpent) { | |
| return timeSpent - originalEstimate; | |
| } else { | |
| return 0L; | |
| } | |
| } else { | |
| return 0L; |
This file contains hidden or 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
| //import java.time.Duration; | |
| def originalEstimate = issue.getOriginalEstimate(); | |
| def timeSpent = issue.getTimeSpent(); | |
| if (originalEstimate != null) { | |
| if (originalEstimate < timeSpent) { | |
| return timeSpent - originalEstimate; | |
| } else { | |
| return 0L; | |
| } | |
| } else { |
This file contains hidden or 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
| SET JAVA_HOME=n:\jdk11 | |
| SET PATH=%JAVA_HOME%\bin;%PATH% | |
| call mvn package | |
| pause |
This file contains hidden or 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
| curl --location --request GET 'https://jira.com/rest/api/2/comment/11945/properties/sd.public.comment' \ | |
| --header 'Authorization: Basic YA==' |
This file contains hidden or 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
| public class Test { | |
| public static void main(String[] args) { | |
| System.out.println(transliterate("жыра")); | |
| } | |
| public static String transliterate(String message){ | |
| char[] abcCyr = {' ','а','б','в','г','д','е','ё', 'ж','з','и','й','к','л','м','н','о','п','р','с','т','у','ф','х', 'ц','ч', 'ш','щ','ъ','ы','ь','э', 'ю','я','А','Б','В','Г','Д','Е','Ё', 'Ж','З','И','Й','К','Л','М','Н','О','П','Р','С','Т','У','Ф','Х', 'Ц', 'Ч','Ш', 'Щ','Ъ','Ы','Ь','Э','Ю','Я','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}; | |
| String[] abcLat = {" ","a","b","v","g","d","e","e","zh","z","i","y","k","l","m","n","o","p","r","s","t","u","f","h","ts","ch","sh","sch", "","i", "","e","ju","ja","A","B","V","G","D","E","E","Zh","Z","I","Y","K","L","M","N","O","P","R","S","T","U","F","H","Ts","Ch","Sh","Sch", "","I", "","E","Ju","Ja","a","b","c","d","e","f","g","h", |
This file contains hidden or 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
| import java.util.Scanner; | |
| public class Cmd { | |
| public static void main(String[] args) { | |
| System.out.println("для выхода введите exit"); | |
| Scanner scanner = new Scanner(System.in); | |
| String line = ""; | |
| line = readLine(scanner); | |
| while (!line.toLowerCase().equals("exit")) { |
This file contains hidden or 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
| git filter-branch -f --env-filter ' | |
| CORRECT_EMAIL="[email protected]" | |
| CORRECT_NAME="ZZZZ5555" | |
| OLD_EMAIL="[email protected]" | |
| OLD_AUTHOR="hodfv" | |
| if test "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" | |
| then | |
| GIT_AUTHOR_EMAIL="$CORRECT_EMAIL" | |
| export GIT_AUTHOR_EMAIL | |
| fi |
This file contains hidden or 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
| Recently, I use JMXterm to collect info about Java JVM via JMX and MBeans. Here is a short note. | |
| - Download JMXterm | |
| https://sourceforge.net/projects/cyclops-group/files/jmxterm/1.0.0/jmxterm-1.0.0-uber.jar/download | |
| - Run JMXterm | |
| java -jar jmxterm-1.0.0-uber.jar --url localhost:<jmx listen port> | |
| - All MBeans from java.lang | |
| $>domain java.lang |
This file contains hidden or 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
| /** @jsx React.DOM */ | |
| var RenderedDeck = React.createClass({ | |
| render: function() { | |
| return <div id={this.props.id} className="deck" dangerouslySetInnerHTML={{__html:this.props.contents}}></div>; | |
| } | |
| }); | |
| var Deck = React.createClass({ | |
| render: function() { |