Skip to content

Instantly share code, notes, and snippets.

View rey1024's full-sized avatar

I Ketut Resika Arthana rey1024

View GitHub Profile
@rey1024
rey1024 / Category.js
Last active May 6, 2019 22:25
Project list Category Wadaya : Category 1
import React, {Component} from 'react';
import { StyleSheet, Text, View, FlatList} from 'react-native';
import {ListItem } from 'react-native-elements'
import axios from 'axios';
type Props = {};
export default class Category extends Component<Props> {
constructor(props) {
super(props)
prefik_url = 'http://wadaya.rey1024.com/upload/kategori/';
@rey1024
rey1024 / App.js
Created May 6, 2019 22:19
Project list Category Wadaya
import React, {Component} from 'react';
import Category from './src/Category'
type Props = {};
export default class App extends Component<Props> {
render() {
return (
<Category />
);
}
@rey1024
rey1024 / PrediksiDO.py
Created April 5, 2019 14:56
Prediksi DO dengan Naive Bayesian
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import pickle
dataset = pd.read_excel('datav5.xlsx', error_bad_lines=False)
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 9].values
from sklearn.model_selection import train_test_split
import React from 'react';
import { StyleSheet, Text, View, TextInput, Button } from 'react-native';
export default class SiakSederhana extends React.Component {
constructor (props){
super(props)
this.state= {
tugas1:0,
tugas2:0,
na:100,
@rey1024
rey1024 / layoutVolBalok.js
Last active February 27, 2019 16:10
Layout VolBalok
import React from 'react';
import { StyleSheet, Text,TextInput, View, Button} from 'react-native';
export default class VolKelBalok extends React.Component {
render() {
return (
<View style={styles.vMain} >
<View style={styles.vHeader}>
<Text style={styles.txtHeader1}>Menghitung Volume Keliling Balok</Text>
@rey1024
rey1024 / app.js
Created February 26, 2019 01:09
Aplikasi kasir
import React from 'react';
import { StyleSheet, Text, View, TextInput, Button } from 'react-native';
export default class VolumeBalok extends React.Component {
constructor(props) {
super(props)
this.state = {
panjang: 0,
lebar: 0,
tinggi: 0,
@rey1024
rey1024 / app.js
Created February 18, 2019 02:16
React-Native Mencari Volume Balok
import React from 'react';
import { Text, View, TextInput, Button } from 'react-native';
export default class App extends React.Component {
constructor(props) {
super(props)
this.state = {
panjang: 0,
lebar: 0,
tinggi: 0,
@rey1024
rey1024 / app.js
Created February 17, 2019 16:14
Aplikasi Mobile dengan React-Native Mengirim WA ke Nomor Tidak Dalam Kontak
import React, {Component} from 'react';
import {Platform, StyleSheet, Text,TextInput, View, Button, Linking} from 'react-native';
type Props = {};
export default class App extends Component<Props> {
constructor(props) {
super(props);
this.state = {
noHP: ''
};