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 BangunDatar { | |
void gambarBangun(); //abstract | |
} |
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 class AdapterClient { | |
public static void main(String[] args) { | |
Sparrow sparrow = new Sparrow(); | |
PlasticToyDuck toyDuck = new PlasticToyDuck(); | |
// Bungkus bird dengan birdAdapter sehingga bertingkah laku seperti toy duck | |
ToyDuck birdAdapter = new BirdAdapter(sparrow); | |
System.out.println("Sparrow..."); | |
sparrow.fly(); |
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 class Acer implements LaptopShop { | |
@Override | |
public void modelNo() { | |
System.out.println("Acer Aspire ES1"); | |
} | |
@Override | |
public void price() { | |
System.out.println("Rp. 3.000.000"); | |
} |
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
img{ | |
width: 100%; | |
} | |
#hero { | |
background-image: url('../img/Imagery/pexels-photo-58997.jpeg'); | |
background-size: cover; | |
height: 700px; | |
text-align: center; | |
padding-top: 250px; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>PetAdopter</title><!-- CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="assets/css/main.css"> | |
</head> |
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
var express = require('express'); | |
var Xray = require('x-ray'); | |
var x = Xray(); | |
var app = express(); | |
app.get('/new-movie-soon', function(req, res){ | |
x('http://www.imdb.com/movies-coming-soon/?ref_=nv_mv_cs_4','div .list_item', [{ | |
title: 'tbody h4', | |
description: 'tbody .outline', | |
director: 'tbody .txt-block', |
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
{ | |
"name": "webPWA", | |
"short_name": "PWAweb", | |
"start_url": ".", | |
"display": "standalone", | |
"background_color": "#fff", | |
"description": "A simply PWA app.", | |
"icons": [{ | |
"src": "images/touch/homescreen1.png", | |
"sizes": "48x48", |
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
if ('serviceWorker' in navigator) { | |
window.addEventListener('load', function() { | |
navigator.serviceWorker.register('/sw.js') | |
.then(function(registration) { | |
// Registration was successful | |
console.log('ServiceWorker registration successful '); | |
}).catch(function(err) { | |
// registration failed :( | |
console.log('ServiceWorker registration failed: ', err); | |
}); |
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
if ('serviceWorker' in navigator) { | |
window.addEventListener('load', function() { | |
navigator.serviceWorker.register('/sw.js') | |
.then(function(registration) { | |
// Registration was successful | |
console.log('ServiceWorker registration successful '); | |
}).catch(function(err) { | |
// registration failed :( | |
console.log('ServiceWorker registration failed: ', err); | |
}); |
NewerOlder