Skip to content

Instantly share code, notes, and snippets.

View desawarna's full-sized avatar

Zae makhrus desawarna

View GitHub Profile
@desawarna
desawarna / custom.css
Created May 18, 2019 14:39
desain css untuk arteri 1.2.1 warna kuning , hover biru tua
/* latin */
@font-face {
font-family: 'Actor';
font-style: normal;
font-weight: 400;
src: local('Actor-Regular'), local('Actor-Regular'), url(./fonts/Actor-Regular.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
body
{
@desawarna
desawarna / print-seting.txt
Created January 21, 2019 03:07
Copas Code nya ya
/// Desain kartu 4 ambil seting disini
// by Jushadi Arman Saz
/* measurement in cm*/
$sysconf['print']['membercard_5']['factor'] = "37.795275591"; //cm to px
// Items Settings
// change to 0 if dont want to use selected items
$sysconf['print']['membercard_5']['include_id_label'] = 1; // no anggota
$sysconf['print']['membercard_5']['include_birth_date'] = 1; // birth_date / tanggal lahir
$sysconf['print']['membercard_5']['include_name_label'] = 1; // nama anggota
@desawarna
desawarna / visitor.inc.php
Created November 29, 2018 10:56
Visitor Slims yg Bisa Bicara
<?php
/**
*
* Visitor Counter
* Copyright (C) 2010 Arie Nugraha (dicarve@yahoo.com)
* Modified By Eddy Subratha (eddy.subratha@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@desawarna
desawarna / css-exsternal.html
Created October 24, 2018 14:41
Yaitu penulisan CSS dimana skrip CSS disimpan dalam file tersendiri dengan extensi .css dan terpisah dengan file HTML.
<!DOCTYPE HTML>
<html>
<head>
<title>Internal</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p> Tulisan ini berwarna merah </p>
<p> Tulisan ini dicetak tebal </p>
</body>
@desawarna
desawarna / css-inline.html
Created October 24, 2018 14:38
Yaitu menuliskan CSS dengan menggunkan atribut style yang langsung dituliskan di dalam tag HTML.
<!DOCTYPE HTML>
<html>
<head>
<title>Inline</title>
</head>
<body>
<p style="color: red"> Tulisan ini berwarna merah </p>
<p style="font-weight: bold"> Tulisan ini dicetak tebal </p>
</body>
</html>
@desawarna
desawarna / css-internal.html
Created October 24, 2018 14:36
Yaitu penulisan CSS menggunakan tag <style> ... </style> yang ditulis di dalam tag <head> ... </head>
<!DOCTYPE HTML>
<html>
<head>
<title>CSS Internal</title>
<style type="text/css">
p{
color: red;
font-weight: bold;
}
</style>
@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.

@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 / 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:
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>
);