Skip to content

Instantly share code, notes, and snippets.

View HORKimhab's full-sized avatar

HORKimhab HORKimhab

View GitHub Profile
@HORKimhab
HORKimhab / seeder_faker_db.php
Last active October 4, 2022 08:33
Call seeder in Laravel without Model and use Faker
<?php
namespace Database\Seeders;
use Faker\Generator;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
class PartNumberFinalDiscountSeeder extends Seeder
@HORKimhab
HORKimhab / Install Flutter with emulator on Window 10.txt
Created July 31, 2022 13:50
Install Flutter with emulator on Window 10
Download flutter and set environment of flutter
C:\src\flutter\bin
Flutter –version and flutter doctor
Install Java and Set environment
Variable: JAVA_HOME, Value: C:\Program Files\Java\jdk-18.0.2
Install Android Studio, Create AVD Manager
Install Android SDK and More
File -> Setting -> Appearance & Behavior -> System Settings -> Android SDK -> Select SDK Tools, Untick “Hide Obsolete Packages
Android SDK Build Tools 33
Android SDK Command-Line Tools
@HORKimhab
HORKimhab / customize pagination bootstrap5.1.3
Created July 28, 2022 07:04
customize pagination bootstrap5.1.3
@if ($paginator->hasPages())
<nav aria-label="...">
<ul class="pagination">
@if ($paginator->onFirstPage())
{{-- <li class="page-link disabled"><span>← Previous</span></li> --}}
<li class="page-item disabled">
<a class="page-link">← Previous</a>
</li>
@else
@HORKimhab
HORKimhab / Digital Ocean Part 1.md
Last active July 24, 2022 04:06
Digital Ocean Part 1: Setup a Virtual Web Server

Setup a Virtual Web Server

+ ព័ត៌មានទូទៅ (General Information)

  • រៀនជាមួយ Video
  • ម៉ោងសិក្សា រៀនបានគ្រប់ម៉ោងតាមតម្រូវការរបស់អ្នក ឲ្យតែមានអ៊ីនធឺណិត
  • តម្លៃសិក្សា
    • 15.99$
    • 10.99$ សម្រាប់តែថ្ងៃ (21-22/Dec/2021)
    • 12.99$ សម្រាប់តែថ្ងៃ (23-31/Dec/2021)
  • មេរៀនភាគច្រើនចេញពី w3school ឬ w3resource
@HORKimhab
HORKimhab / Laravel8 News Portal (CMS) Course.md
Last active July 6, 2022 15:54
Laravel8 News Portal (CMS) and Laravel 8 Vuejs

Laravel8 News Portal (CMS)

+ ព័ត៌មានទូទៅ (General Information)

  • រៀនតាម Online (Google Meet)
  • ម៉ោងសិក្សា
    Sat: 1-3:10pm (Break 10mins)
    Sun: 9-11:10am (Break 10mins)
    QA: Mon-Fri (12-12:35pm)

  • តម្លៃសិក្សា 122$ 100$ | Laravel 8 News Portal (CMS) (Learn Online)
  • តម្លៃសិក្សា 100$ 49.99$ | Laravel 8 Vuejs for Inventory Management System (🅳🅸🆂 50%) (Recorded Video)
@HORKimhab
HORKimhab / golang-complex
Last active July 3, 2022 15:28
golang-complex
package main
import "fmt"
func main() {
// func complex(real, imaginary FloatType) ComplexType
// Initializing Complex Numbers
complex1 := complex(12, 22) // Constructor init
complex2 := 12 + 223i // complex number init syntax
// var a complex128 = complex(6, 2)
var b complex64 = complex(9, 2)
@HORKimhab
HORKimhab / mern-server-setup.md
Created July 2, 2022 15:41 — forked from bradtraversy/mern-server-setup.md
Setup Ubuntu & Deploy MERN app

Linux Server Setup & MERN App Deployment

These are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.

Create an account at Linode

Click on Create Linode

Choose your server options (OS, region, etc)

SSH Keys

package main
import "fmt"
func main() {
fmt.Println("Golang Float")
var x float32 = 123.78
var y float32 = 3.4e+38
var salary1 float32
@HORKimhab
HORKimhab / Golang Formatting Verbs
Created May 30, 2022 23:28
Golang Formatting Verbs
package main
import "fmt"
func main() {
var h = 22.2
var kh = 92
var str = "Hello Universe"
var txt = "HKimhab"
var ds = true
var dsk = false
@HORKimhab
HORKimhab / ReadMe.md
Last active January 14, 2022 07:06
Requirement before creating laravel (8) project