Skip to content

Instantly share code, notes, and snippets.

View anta40's full-sized avatar

Andre anta40

  • Jakarta, Indonesia
  • 00:46 (UTC +07:00)
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ImageView
android:id="@+id/imgLogo"
<?php
error_reporting(E_ALL);
$db = new mysqli("localhost","wpdev2019","test2019","wpblog1");
if ($db->connect_errno) {
echo "Failed to connect to MySQL: " . $db-> connect_error;
exit();
}
class Besar {
public static void main(String args[]){
Long num1 = new Long(123456789123456L);
System.out.println(num1);
}
}
import androidx.appcompat.app.AppCompatActivity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.text.Html;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import org.json.JSONArray;
import org.json.JSONException;
package com.drp.app.testapp01;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;
import androidx.viewpager.widget.ViewPager;
import android.content.Context;
import android.graphics.Color;
(C:/Users/OCIN/Codes/Go/gormtest1.go:24)
[2019-10-30 10:48:18] duplicate column name: id
(C:/Users/OCIN/Codes/Go/gormtest1.go:24)
[2019-10-30 10:48:18] [4.33ms] CREATE TABLE "employees" ("id" integer primary key autoincrement,"created_at" datetime,"updated_at" datetime,"deleted_at" datetime,"id" integer,"name" varchar(255),"email" varchar(255),"department" varchar(255) )
[0 rows affected or returned ]
(C:/Users/OCIN/Codes/Go/gormtest1.go:24)
[2019-10-30 10:48:18] [0.00ms] CREATE INDEX idx_employees_deleted_at ON "employees"(deleted_at)
[0 rows affected or returned ]
package main
import (
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/sqlite"
)
type Employee struct {
gorm.Model
ID int
[
{
"id": "9",
"name": "Tester 02",
"date": "25-09-2019",
"checkintime": "14:56:39",
"checkouttime": "15:52:22",
"checkindistance": {
"Int64": 0,
"Valid": true
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"net/http"
"time"
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"net/http"
"time"