Skip to content

Instantly share code, notes, and snippets.

View desawarna's full-sized avatar

Zae makhrus desawarna

View GitHub Profile
//Belajar Objek JS
Var HelloKity = {
nama : "Hello Kity",
sifat : "Manja",
warna : [ "pink" , "putih" ] ,
makanan : [ "wiskas" , "ikan" , "biskuit" ]
}
<!DOCTYPE html>
<html>
<head>
<title>Konstanta dan Variabel</title>
</head>
<body>
<script type="text/javascript">
// dengan 2 variabel
var vstr ="Assalamualaikum" , name="Saudaraku"
document.write("<h1>Variabel</h1><hr>")
<!DOCTYPE HTML>
<html>
<head>
<title>Inline</title>
</head>
<body onload="alert('Selamat Datang!')">
<button onclick="alert('Anda menekan tombol')">Klik di sini</button>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<title>Operator Aritmatika</title>
</head>
<body onload="kata()">
<script>
//Variabel
var A = 10, B = 4;
@desawarna
desawarna / CSS3 Media Queries Template
Created July 29, 2018 00:55
CSS3 Media Queries template
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
import React, { Component } from 'react';
//import logo from './logo.svg';
//import './App.css';
import Todo from './Component/Todo';
class App extends Component {
constructor() {
super();
import React, { Component } from 'react';
export default class Todo extends Component {
render() {
let { id, todo, onRemove } = this.props;
return (
<li>
{todo} <button onClick={() => onRemove(id)}>x</button>
</li>
);
@desawarna
desawarna / gist:24881e87bc4a112dd010fe404840633b
Created August 12, 2018 10:07 — forked from fnzainal/gist:6a58ca5c4d53cedeb75a697911370d17
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@desawarna
desawarna / api.json
Created August 14, 2018 09:44 — forked from kinlane/api.json
Sample api.json
{
"name": "API Evangelist",
"description": "This is an inventory of APIs available as part of the API Evangelist network.",
"image": "https://s3.amazonaws.com/kinlane-productions/api-evangelist/t-shirts/KL_InApiWeTrust-1000.png",
"tags": [
"application programming interface",
"API",
"News",
"Analysis"
],
@desawarna
desawarna / docx2md.md
Created August 14, 2018 10:36 — forked from vdavez/docx2md.md
Convert a Word Document into MD

Converting a Word Document to Markdown in Two Moves

The Problem

A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.

The Solution

As it turns out, there are several open-source tools that allow for conversion between file types. Pandoc is one of them, and it's powerful. In fact, pandoc's website says "If you need to convert files from one markup format into another, pandoc is your swiss-army knife." But, although pandoc can convert from markdown into .docx, it doesn't work in the other direction.