Skip to content

Instantly share code, notes, and snippets.

View anta40's full-sized avatar

Andre anta40

  • Jakarta, Indonesia
  • 04:08 (UTC +07:00)
View GitHub Profile
@anta40
anta40 / logindemo.go
Last active September 15, 2019 15:06
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"github.com/gorilla/mux"
"net/http"
@anta40
anta40 / dbtest1.go
Last active September 15, 2019 14:18
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"github.com/gorilla/mux"
"net/http"
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';
class ServicePetrolPage extends StatefulWidget {
@override
_ServicePetrolPage createState() => _ServicePetrolPage();
}
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';
class ServiceParkingPage extends StatefulWidget {
@override
_ServiceParkingPage createState() => _ServiceParkingPage();
}
import 'package:flutter/material.dart';
import 'package:good_driver_app/common/ExpandedButton.dart';
import 'package:good_driver_app/common/SmallExpandedButton.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';
class ServicePetrolPage extends StatefulWidget {
// HomePage({Key key, this.title}) : super(key: key);
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';
class ServicePetrolPage extends StatefulWidget {
// HomePage({Key key, this.title}) : super(key: key);
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
import 'package:flutter/material.dart';
import 'package:good_driver_app/common/ExpandedButton.dart';
class TestPage01 extends StatefulWidget {
// HomePage({Key key, this.title}) : super(key: key);
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
@anta40
anta40 / MainActivity.kt
Created April 25, 2019 07:29
Show current latitude & longitude in Kotlin
package com.anta40.app.locationtest
import android.Manifest
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.content.pm.PackageManager
import android.location.Location
import android.location.LocationManager
import android.support.v7.app.AppCompatActivity
@anta40
anta40 / MapsActivity.kt
Created April 21, 2019 10:09
Display marker on Google Maps (Kotlin)
import android.Manifest
import android.content.Context
import android.location.Location
import android.os.Build
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.app.ActivityCompat
import android.widget.Toast
import com.google.android.gms.maps.CameraUpdateFactory
import android.content.Intent;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.google.zxing.integration.android.IntentIntegrator;
import com.google.zxing.integration.android.IntentResult;
public class ScanActivity extends AppCompatActivity {