Skip to content

Instantly share code, notes, and snippets.

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

Ahmad Shahril shah253kt

🏠
Working from home
View GitHub Profile
@shah253kt
shah253kt / hsv2rgb.ino
Created January 27, 2020 20:04 — forked from postspectacular/hsv2rgb.ino
Super compact HSV/RGB conversions for Arduino/C
int redPin = 6;
int greenPin = 5;
int bluePin = 9;
float col[3];
float hue = 0.0;
void setup() {
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
@shah253kt
shah253kt / paginate.php
Created January 8, 2019 23:10 — forked from vluzrmos/paginate.php
Laravel Paginate Collection or Array
<?php
/**
* Gera a paginação dos itens de um array ou collection.
*
* @param array|Collection $items
* @param int $perPage
* @param int $page
* @param array $options
*
* @return LengthAwarePaginator
@shah253kt
shah253kt / malaysia_postcode_list.json
Created November 30, 2016 00:36 — forked from zulhfreelancer/malaysia_postcode_list.json
Malaysia Postcode List By State (JSON)
{
"prepared_by": "Zulhilmi Zainudin",
"last_update": "21 June 2016",
"data": [
{
"state": "Selangor",
"codes": [
"40000",
"40100",
@shah253kt
shah253kt / json
Created November 28, 2016 20:52
JSON file containing Swift Code of all banks in Malaysia (Last Update: 29th November 2016)
[
{
"ID": "1",
"Bank or Institution": "AFFIN BANK BERHAD",
"City": "KUALA LUMPUR",
"Branch": "",
"Swift Code": "PHBMMYKL"
},
{
"ID": "2",