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
<div id="disqus_thread">Loading Comments...</div> | |
<script> | |
var disqus_config = function () { | |
this.page.url = "https://www.petanikode.com/flutter-web"; | |
this.page.identifier = "flutter-web"; | |
this.page.title = "Tutorial Membuat Web dengan Flutter"; | |
}; | |
</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
#!/usr/bin/env node | |
for(var i = 0; i < 10; i++){ | |
console.log("Hello World!"); | |
} |
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 | |
# | |
# This is a script to create a .bin image with corresponding .cue out of your | |
# PSX game discs as backup and/or for usage with emulators. | |
# | |
# Run-time requirements: cdrdao | |
# | |
# This script is partly based upon the "wesnoth-optipng" script from the | |
# Battle for Wesnoth team. | |
# |
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
import React from "react"; | |
import dateFns from "date-fns"; | |
class Calendar extends React.Component { | |
constructor(props){ | |
super(props); | |
this.state = { | |
currentMonth: new Date(), | |
selectedDate: new Date() |
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
<div id="search-app" class="container"> | |
<!-- Search form section --> | |
<section class="my-5 row justify-content-center"> | |
<div class="col-md-6"> | |
<div class="input-group mb-3"> | |
<input type="text" v-model="q" class="form-control" placeholder="Kata kunci..." aria-label="Recipient's username" aria-describedby="basic-addon2"> | |
<div class="input-group-append"> | |
<button class="btn btn-secondary" type="button" v-on:click="doSearch()">Cari</button> | |
</div> | |
</div> |
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
//The undocumented magic method override | |
//Eclipse will swear at you if you try to put @Override here | |
// For Android 3.0+ | |
public void openFileChooser(ValueCallback<Uri> uploadMsg) { | |
mUploadMessage = uploadMsg; | |
Intent i = new Intent(Intent.ACTION_GET_CONTENT); | |
i.addCategory(Intent.CATEGORY_OPENABLE); | |
i.setType("image/*"); | |
startActivityForResult(Intent.createChooser(i, "File Chooser"), |
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
<div class=""> | |
<video autoplay="true" id="video-webcam"> | |
Izinkan untuk Mengakses Webcam untuk Demo | |
</video> | |
<button onclick="takeSnapshot()">Ambil Gambar</button> | |
</div> | |
<script> | |
var video = document.querySelector("#video-webcam"); | |
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia || navigator.oGetUserMedia; |
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
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.INTERNET" /> |
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
{% include 'partial/head.html' %} | |
{% include 'partial/navbar.html' %} | |
<script src="https://maps.googleapis.com/maps/api/js?key=API_KEY"></script> | |
<script type="text/javascript"> | |
// variabel global marker | |
var marker; | |
function taruhMarker(peta, posisiTitik) { |
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
module['exports'] = function iyanChanBot(hook) { | |
var request = require('request'); | |
var simiUrl = 'http://sandbox.api.simsimi.com/request.p?key=0858369d-3d2d-4bcd-86b0-eaf9d523d259&lc=id&ft=1.0&text='+hook.params.message.text; | |
request(simiUrl, function (error, response, body) { | |
if (!error && response.statusCode == 200) { |