Skip to content

Instantly share code, notes, and snippets.

Dwi Wijonarko dwijonarko

Block or report user

Report or block dwijonarko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dwijonarko
dwijonarko / HomeActivity.java
Created Nov 11, 2019
Firebase Email-Password Auth
View HomeActivity.java
package com.vokasi.firebaseauthexample;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
View MainActivity.java
package com.vokasi.firebase_a;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.google.firebase.database.DataSnapshot;
View form.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AJAX - 1</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<script src="jquery-3.4.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
View Biodata.java
package com.vokasi.projectuts;
public class Biodata {
private int id;
private String nim;
private String nama;
private String alamat;
private String email;
private String agama;
private String jenis_kelamin;
@dwijonarko
dwijonarko / DBHandler.java
Created Sep 30, 2019
Android CRUD + ListView
View DBHandler.java
package com.vokasi.basisdatamobile;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
import java.util.HashMap;
View admin.php
<?php
session_start();
if (isset($_SESSION['login'])) {
$username = $_SESSION['nama'];
$nim = $_SESSION['nim'];
include "connection.php";
$result = $mysqli->query("SELECT * FROM users");
} else {
echo "Anda harus login dulu";
header("Refresh:1;url=index.php");
View DBHandler.java
package com.vokasi.basisdatamobile;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DBHandler extends SQLiteOpenHelper {
@dwijonarko
dwijonarko / HomeScreen.js
Created May 8, 2019
Upload image to firebase
View HomeScreen.js
import React from "react";
import { KeyboardAvoidingView, View, Button, Text, TextInput, Alert, Image,TouchableOpacity } from 'react-native'
import firebase from "firebase";
import Spinner from "./Spinner";
import { ImagePicker,Permissions } from "expo";
import uuid from 'uuid';
export default class HomeScreen extends React.Component {
constructor(props) {
super(props)
this.state = {
@dwijonarko
dwijonarko / Article.php
Last active May 10, 2019
CRUD Laravel - Articles
View Article.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Article extends Model
{
protected $fillable = ['title','content','category_id','user_id'];
}
View tk.json
[
{"id":82,"name":"TK Muslimat NU 15","address":"Jalan Brigjen Slamet Riadi 6 Nomor 714, Oro-oro Dowo, Klojen","category_id":2,"level_id":4,"latitude":"-7.970744","longitude":"112.628372","created_at":"2019-01-14 07:50:59","updated_at":"2019-01-14 07:50:59","deleted_at":null},
{"id":83,"name":"TK Muslimat NU 38","address":"Jl. Pahlawan Trip No.5, Oro-oro Dowo, Klojen","category_id":2,"level_id":4,"latitude":"-7.968318","longitude":"112.623151","created_at":"2019-01-14 07:51:50","updated_at":"2019-01-14 07:51:50","deleted_at":null},
{"id":84,"name":"TK Muslimat NU 17 Nur Rokhmat","address":"Jl. Gading No.54, Gading Kasri, Klojen","category_id":2,"level_id":4,"latitude":"-7.970347","longitude":"112.614682","created_at":"2019-01-14 07:52:51","updated_at":"2019-01-14 07:52:51","deleted_at":null},
{"id":85,"name":"TK. Kartika IV-79","address":"Jl. Kesatrian No.74, Kesatrian, Blimbing","category_id":2,"level_id":4,"latitude":"-7.975457","longitude":"112.644429","created_at":"2019-01-14 08:25:06","updated_at":"2019-
You can’t perform that action at this time.