Skip to content

Instantly share code, notes, and snippets.

View putheakhem's full-sized avatar
🏠
Working from home

Khem Puthea putheakhem

🏠
Working from home
View GitHub Profile
@putheakhem
putheakhem / TerminatorConfiguration.md
Last active February 23, 2019 03:33
Terminator configuration on ubuntu 18.04

#Ubuntu 18.04 LTS

Install Dependencies

  sudo apt-get install git curl vim

Install Terminator (shell)

@putheakhem
putheakhem / login.php
Last active June 7, 2019 03:41
Login form with PHP7
<!--
Author: Khem Puthea
@2019-June-06
-->
<?php
ob_start();
session_start();
?>
@putheakhem
putheakhem / logout.php
Created June 6, 2019 16:15
use to clear session from login
<?php
session_start();
unset($_SESSION["username"]);
unset($_SESSION["password"]);
echo 'You have cleaned session';
header('Refresh: 2; URL = login.php');
?>

Laravel 5.8 : Intro, Setup , MVC Basics, and Views.

@Khem Puthea June 2019

What You Will Learn In This Series

  • Installing and setting up Laravel locally.
  • Models, Views, and Controllers (MVC).
  • Database, Migrations, and Eloquent ORM.
  • Authentication.

Laravel 5.8 : Config, ENV, Migrations, and Todos CRUD

What you will learn ?

  • How to configure .ENV File

Step 1 : Install Laravel 5.8

first of all we need to get fresh Laravel 5.8 version application using bellow command, So open your terminal OR command prompt and run bellow command:

composer create-project --prefer-dist laravel/laravel blog

Step 2: Update Database Configuration

What you will learn in this tutrials

  • PHP 7 Connect to MySQL
  • PHP 7 Create a MySQL Database
  • PHP 7 Create MySQL Tables
  • PHP 7 Insert Data Into MySQL
  • PHP 7 Get ID of Last Inserted Record
  • PHP 7 Insert Multiple Records Into MySQL
  • PHP 7 Prepared Statements
  • PHP 7 Select Data From MySQL

HTML

CSS

JS

Step 1 : Install Laravel 5.8

first of all we need to get fresh Laravel 5.8 version application using bellow command, So open your terminal OR command prompt and run bellow command:

composer create-project --prefer-dist laravel/laravel blog

Step 2: Update Database Configuration

@putheakhem
putheakhem / calculateblue.py
Created July 16, 2019 15:10
Use for validation accuracy Neural Machine Translation
import sys
import codecs
import os
import math
import operator
import json
from functools import reduce