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
<script> | |
var sound = new Howl({ | |
src: ['sound.mp3'] | |
}); | |
sound.play(); | |
</script> |
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
<script> | |
var ab = "hallo dunia"; | |
function test() { | |
ab = "hello world"; | |
alert(ab); | |
} | |
test(); | |
</script> |
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
<script> | |
function hay(){ | |
var hey = ""; | |
} | |
function ubah() { | |
hey = "hallo teman"; | |
} | |
ubah(); |
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
<script> | |
// contoh benar | |
let a = ""; | |
function aku(){ | |
a = "apa cuk"; | |
alert(a); | |
} | |
aku(); | |
// contoh benar dalam scope |
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
<script> | |
const ab = "iyalah"; | |
ab = "assa"; | |
function hayoloh(){ | |
ab = "assoo"; | |
alert(ab); | |
} |
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
<script> | |
const gebetan = { | |
"nama": "", | |
"status": "" | |
} | |
function siapaDia() { | |
gebetan.nama = "Nadia"; | |
gebetan.status = "pacar orang"; | |
alert(gebetan.nama + " " + gebetan.status); |
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.mail.host=smtp.gmail.com | |
[email protected] | |
spring.mail.password=kamudandia | |
spring.mail.properties.mail.transport.protocol=smtp | |
spring.mail.properties.mail.smtp.port=587 | |
spring.mail.properties.mail.smtp.auth=true | |
spring.mail.properties.mail.smtp.starttls.enable=true | |
spring.mail.properties.mail.smtp.starttls.required=true |
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 Spring --> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-mail</artifactId> | |
<version>2.0.1.RELEASE</version> | |
</dependency> |
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
@Controller | |
@RequestMapping(value="test") | |
public class TestController{ |
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
@Autowired | |
public JavaMailSender emailSender; | |
public void sendSimpleMessage( | |
String to, String subject, String text, String from) { | |
SimpleMailMessage message = new SimpleMailMessage(); | |
message.setTo(to); | |
message.setSubject(subject); | |
message.setText(text); | |
message.setFrom(from); |
OlderNewer