This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Article extends Model | |
{ | |
protected $fillable = ['title','content','category_id','user_id']; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"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- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Category; | |
class CategoryController extends Controller | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { StyleSheet, Text, View } from 'react-native'; | |
import firebase from "firebase"; | |
import AuthLoadingScreen from "./components/AuthLoadingScreen"; | |
import SignInScreen from "./components/LoginPage"; | |
import HomeScreen from "./components/HomeScreen"; | |
import OtherScreen from "./components/OtherScreen"; | |
import { createSwitchNavigator, createStackNavigator, createAppContainer } from 'react-navigation'; | |
// Implementation of HomeScreen, OtherScreen, SignInScreen, AuthLoadingScreen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { Text, View, StyleSheet,Dimensions } from 'react-native'; | |
import { Constants, MapView, Location, Permissions } from 'expo'; | |
const window = Dimensions.get('window'); | |
const { width, height } = window; | |
export default class MapScreen extends Component { | |
constructor(props) { | |
super(props) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import {Alert, ImageBackground, SafeAreaView, Text, TouchableOpacity, View } from 'react-native'; | |
import { Camera, Permissions, FileSystem } from 'expo'; | |
import Ionicons from '@expo/vector-icons/Ionicons'; | |
export default class CameraScreen extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
hasCameraPermission: null, |