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
#Username | |
git config --global user.name "Marcin Kunicki" | |
git config --global user.email masel.popowo@gmail.com | |
# Color for ui | |
git config --global color.ui true | |
# Linux | |
git config --global core.autocrlf input |
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
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, | |
Uri.parse("geo:"+latitude+","+longitude+"?q="+latitude+","+longitude+"("+name+")")); | |
intent.setComponent(new ComponentName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity")); | |
startActivity(intent); |
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
//nowy obiekt LocalDate ze Stringu (np. z bazy danych) | |
DateTimeFormatter forrmater = DateTimeFormat.forPattern("YYYY-MM-dd"); | |
LocalDate ld = forrmater.parseLocalDate("2013-02-09"); | |
System.out.print("LocalDate ld: "); | |
System.out.println(ld.toString()); | |
//różnica miedzy dwoma datami w dniach | |
LocalDate startDate = forrmater.parseLocalDate("2013-02-09"); | |
LocalDate stopDate = forrmater.parseLocalDate("2013-02-12"); |