Skip to content

Instantly share code, notes, and snippets.

Avatar

meidikawardana

View GitHub Profile
@meidikawardana
meidikawardana / File.kt
Created Nov 22, 2020
code result from google kotlin codelabs
View File.kt
fun main() {
val age = 24
val layers = 5
printCakeCandles(age)
printCakeTop(age)
printCakeBottom(age, layers)
}
fun printCakeTop(age: Int){
repeat(age + 2){
@meidikawardana
meidikawardana / instagram_card.dart
Created Oct 11, 2019
file instagram_card.dart untuk aplikasi instagram_list
View instagram_card.dart
import 'package:flutter/material.dart';
class InstagramCard extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
Row(
// row #1
children: [
View main.dart
import 'package:flutter/material.dart';
void main() => runApp(AplikasiLikeInstagram());
class InstagramCards extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListView(
children: <Widget>[
Column(
@meidikawardana
meidikawardana / main.dart
Created Sep 13, 2019
like_app s/d row #3 selesai
View main.dart
import 'package:flutter/material.dart';
void main() => runApp(AplikasiLikeInstagram());
class InstagramCards extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListView(
children: <Widget>[
Column(
@meidikawardana
meidikawardana / main.dart
Created Sep 11, 2019
like_app s/d row #1 selesai
View main.dart
import 'package:flutter/material.dart';
void main() => runApp(AplikasiLikeInstagram());
class InstagramCards extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListView(
children: <Widget>[
Column(
@meidikawardana
meidikawardana / index.html
Created Sep 11, 2019
next gen js - using map function
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@meidikawardana
meidikawardana / index.html
Last active Sep 11, 2019
next gen js - copying by reference & real copy
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@meidikawardana
meidikawardana / index.html
Created Sep 11, 2019
next gen js - array destructuring
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@meidikawardana
meidikawardana / index.html
Created Sep 11, 2019
next gen js - spread & rest operator
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@meidikawardana
meidikawardana / index.html
Last active Sep 11, 2019
next gen js - javascript class ES6
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
You can’t perform that action at this time.