Skip to content

Instantly share code, notes, and snippets.

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

Hello World Lab helloworldlab

🏠
Working from home
  • Hello World Lab
  • Perak, Malaysia
View GitHub Profile
@helloworldlab
helloworldlab / ExampleController.php
Created September 15, 2023 15:03 — forked from xavier83ar/ExampleController.php
Export big data volumes. PHP + CakePHP (3-4) + CSV
<?php
/**
* Created by javier
* Date: 23/4/21
* Time: 18:35
*/
namespace App\Controller;
/**
@helloworldlab
helloworldlab / customize-scrollbar.css
Created March 18, 2022 04:07 — forked from spemer/customize-scrollbar.css
✨ Customize website's scrollbar like Mac OS. Not supports in Firefox and IE.
/* Customize website's scrollbar like Mac OS
Not supports in Firefox and IE */
/* total width */
body::-webkit-scrollbar {
background-color: #fff;
width: 16px;
}
/* background of the scrollbar except button or resizer */
@helloworldlab
helloworldlab / note.txt
Created December 27, 2021 02:39 — forked from rksk/note.txt
MySQL: Logging table changes into another table using triggers
This is related to the blog post: https://medium.com/p/5215c77083e5
@helloworldlab
helloworldlab / accounting.sql
Created July 8, 2021 06:32 — forked from NYKevin/accounting.sql
Basic double-entry bookkeeping system, for PostgreSQL.
CREATE TABLE accounts(
id serial PRIMARY KEY,
name VARCHAR(256) NOT NULL
);
CREATE TABLE entries(
id serial PRIMARY KEY,
description VARCHAR(1024) NOT NULL,
amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0),
-- Every entry is a credit to one account...