Skip to content

Instantly share code, notes, and snippets.

View sakukode's full-sized avatar

Rizqi Maulana sakukode

View GitHub Profile
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import './index.css';
class App extends Component {
render() {
return (
<div className="App">
<h1>Halo React!</h1>
</div>
/*!
* Primitive UI | MIT License
*
* A minimalist front-end design toolkit built with Sass for developing
* responsive, browser-consistent web apps.
*
* Author: Tania Rascia <tania@taniarascia.com>
* Source: https://github.com/taniarascia/primitive
* Documentation: https://taniarascia.github.io/primitive
*/
@sakukode
sakukode / index.html
Last active October 28, 2019 23:05
React untuk Pemula - Instalasi dan Setup
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Halo React</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.js"></script>
@sakukode
sakukode / fundamental_python_01.py
Last active July 30, 2019 01:26
Fundamental Python
# python doesn't know the data type
# variable naming cannot use space or minus(-) characters
# print text using cmd "print"
print('Hello World')
# print variable using cmd "print"
message = "Hello Python"
print(message)
<?php
$cities = [
['value' => 'Aceh', 'text' => 'Aceh'],
['value' => 'Bandung', 'text' => 'Bandung'],
['value' => 'Batam', 'text' => 'Batam'],
['value' => 'Cianjur', 'text' => 'Cianjur'],
['value' => 'Cilacap', 'text' => 'Cilacap'],
['value' => 'Jakarta', 'text' => 'Jakarta'],
['value' => 'Surabaya', 'text' => 'Surabaya'],
<!DOCTYPE html>
<html>
<head>
<title>Selectize - Demo</title>
<!-- Selectize.js CSS -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/css/selectize.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/css/selectize.default.min.css">
</head>
<body>
@sakukode
sakukode / toastr.php
Created January 14, 2019 12:56
File view
<!DOCTYPE html>
<html>
<head>
<title>Menampilkan pesan notifikasi dengan Toastr JS</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css">
<style type="text/css">
body {
@sakukode
sakukode / Toastr.php
Last active January 14, 2019 12:56
File Controller
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Toastr extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->library('session');
$this->load->helper('url');