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
spring.datasource.url=jdbc:mysql://localhost/nomeDB | |
spring.datasource.username=root | |
spring.datasource.password=miaPassword | |
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver | |
spring.jpa.hibernate.ddl-auto=update | |
spring.jpa.generate-ddl=true | |
spring.datasource.tomcat.connection-properties=useUnicode=true | |
server.port=8080 |
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
Android and iOS videos |
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
package net.informaticalibera.cn1.simpleapi; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.net.Uri; | |
import android.provider.Settings; | |
public class AppSettingsUtilitiesImpl { | |
private static Context context() { |
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
public interface RunnableWithArg<T> { | |
/** | |
* Similar to the runnable interface but it accepts an argument | |
* | |
* @param arg any type of argument | |
*/ | |
public void run(T arg); | |
} |
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
package yourpackage.app; | |
import com.cloudinary.Cloudinary; | |
import com.cloudinary.SingletonManager; | |
import com.cloudinary.utils.ObjectUtils; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.scheduling.annotation.EnableScheduling; |
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 | |
################################################################################# | |
################### MyBACKUP SCRIPT #################### | |
################################################################################# | |
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
# This is free software: you are free to change and redistribute it. | |
# There is NO WARRANTY, to the extent permitted by law. | |
# Autori: Francesco Galgani |
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
Form hi = new Form("Test SpanMultiButton", BoxLayout.y()); | |
Image icon = FontImage.createMaterial(FontImage.MATERIAL_WARNING, "Button", 3.0f); | |
Image emblem = FontImage.createMaterial(FontImage.MATERIAL_ARROW_FORWARD, "Button", 3.0f); | |
SpanMultiButton twoLinesNoIcon = new SpanMultiButton("SpanMultiButton"); | |
twoLinesNoIcon.setTextLine2("Line 2 long - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); | |
SpanMultiButton oneLineIconEmblem = new SpanMultiButton("Icon + Emblem"); | |
oneLineIconEmblem.setIcon(icon); | |
oneLineIconEmblem.setEmblem(emblem); |
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
private static final EasyThread countTime = EasyThread.start("countTime"); | |
public void start() { | |
if (current != null) { | |
current.show(); | |
return; | |
} | |
Form hi = new Form("Recording audio", BoxLayout.y()); | |
hi.add(new SpanLabel("Example of recording and playback audio using the Media, MediaManager and MediaRecorderBuilder APIs")); | |
hi.add(recordAudio((String filePath) -> { |
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
package net.informaticalibera.test.imagescaling; | |
import com.codename1.capture.Capture; | |
import com.codename1.components.SpanLabel; | |
import com.codename1.io.FileSystemStorage; | |
import static com.codename1.ui.CN.*; | |
import com.codename1.ui.Form; | |
import com.codename1.ui.Dialog; | |
import com.codename1.ui.Label; | |
import com.codename1.ui.plaf.UIManager; |
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
Form hi = new Form("Hi World", BoxLayout.y()); | |
Button cameraBtn = new Button("Open Camera"); | |
Button galleryBtn = new Button("Open Gallery"); | |
Label imageLbl = new Label(); | |
hi.addAll(cameraBtn, galleryBtn, FlowLayout.encloseCenter(imageLbl)); | |
hi.show(); | |
SuccessCallback<String> callback = (String capturedPhoto) -> { | |
String rotatedPhoto = FileSystemStorage.getInstance().getAppHomePath() + "rotatedPhoto.jpg"; | |
if (capturedPhoto != null) { |
OlderNewer