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
#!/bin/bash | |
#algorithm from jdf project(a calender convertor for php.) | |
#day,month,year and other english var used for miladi and sal mah rooz and ... used for jalali. | |
#-h (help) -f(farsi) -d(special date) -s (spliter character) and without option we use finglish and print curent date. | |
#default spliter(delimiter) character is "-" | |
#although -s suport string but recomended using a character. | |
date=$(date "+%Y-%m-%d") #set default date |
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
Framework | Path segment | http query parameter | |
---|---|---|---|
Jersey (JAX-RS) | @PathParam | @QueryParam | |
Spring RESTFul | @PathVariable | @RequestParam | |
example | http://xyz.ir/{segment} | http://xyz.ir/?param{param} |

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
Below are the Big O performance of common functions of different Java Collections. | |
List | Add | Remove | Get | Contains | Next | Data Structure | |
---------------------|------|--------|------|----------|------|--------------- | |
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array | |
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
travis setup releases --pro --force |
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
mail -s "Subject" -A attach.html [email protected] < messageBodyFile | |
mail -s "Subject" -A attach.html [email protected] < /dev/null |
NewerOlder