This file contains hidden or 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 main | |
import ( | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/sqlite" | |
) | |
type Employee struct { | |
gorm.Model | |
ID int |
This file contains hidden or 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
(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 ] |
This file contains hidden or 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.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; |
This file contains hidden or 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 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; |
This file contains hidden or 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
class Besar { | |
public static void main(String args[]){ | |
Long num1 = new Long(123456789123456L); | |
System.out.println(num1); | |
} | |
} |
This file contains hidden or 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 | |
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(); | |
} |
This file contains hidden or 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
<?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" |
This file contains hidden or 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
01/16 13:36:08: Launching 'app' on Pixel 2 API 21. | |
$ adb shell am start -n "com.divbyzero.app.xcardviewtest01/com.divbyzero.app.xcardviewtest01.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER | |
Connected to process 2795 on device 'Pixel_2_API_21 [emulator-5554]'. | |
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. | |
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable | |
I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2> | |
I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2> | |
D/OpenGLRende |
This file contains hidden or 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
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 29 | |
buildToolsVersion "29.0.2" | |
defaultConfig { | |
applicationId "com.divbyzero.app.xcardviewtest01" | |
minSdkVersion 21 | |
targetSdkVersion 29 | |
versionCode 1 |
This file contains hidden or 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 | |
$time1 = new DateTime(date("Y-m-d")); | |
$time2 = new DateTime('2020-03-05'); | |
$interval = $time1->diff($time2)->format("%r%a"); | |
echo "$interval hari"; | |
?> |