// Based on http://www.2my4edge.com/2013/06/choose-state-and-city-based-on-country.html | |
// Done for a client project but now open sourced under Creative Commons. http://creativecommons.org/licenses/by-sa/4.0/ | |
// District lists | |
var districts = new Array(); | |
districts[''] = ""; | |
districts['Johor'] = "Batu Pahat|Johor Bahru|Kluang|Kota Tinggi|Mersing|Muar|Pontian|Segamat|Kulaijaya|Ledang"; | |
districts['Kedah'] = "Baling|Bandar Baharu|Kota Setar|Kuala Muda|Kubang Pasu|Kulim|Pulau Langkawi|Padang Terap|Pendang|Pokok Sena|Sik|Yan"; | |
districts['Kelantan'] = "Bachok|Gua Musang|Jeli|Kota Baharu|Kuala Krai|Machang|Pasir Mas|Pasir Puteh|Tanah Merah|Tumpat"; | |
districts['Kuala Lumpur'] = "Kuala Lumpur"; |
#It requires some packages. Please pip install them first. | |
import string | |
import requests | |
import re | |
import urllib | |
from bs4 import BeautifulSoup | |
def main(event,context): | |
#Put into the words parameter the acronym with each letter separated by a single space. |
<?php | |
$colours = array('#FDA...', '#83B...', '#53A...', '#BE3...', '#A24...'); | |
echo $colours[$integerParam % count($colours) - 1]; | |
//Expected output is the corresponding HEX colour based on the inputted $integerParam. | |
//Advantage is that the array can be added or shortened and it will work. | |
//Redacted colour code due to company restrictions. | |
?> |
<?php | |
$colours = array('#FDA...', '#83B...', '#53A...', '#BE3...', '#A24...'); | |
echo $colours[$integerParam % count($colours) - 1]; | |
?> |
<?php | |
/** | |
* CPU Usage PHP function open sourced by Salocin.TEN | |
* Programming knowledge of PHP is essential for the usage of this. | |
* Originally made for a corporate database migration project. | |
* This function only works on Linux based systems and it works to detect the CPU usage in percentage. | |
* Future implementation will see a configuration to adapt to multiple CPU systems. | |
* Adapted from a very awesome no rights reserved Bash script at http://colby.id.au/node/39 | |
* |
The illiterate of the 21st century is someone who can't unlearn and relearn - Jared Chan (2020) |
Life can be challenging, and we often find ourselves struggling to overcome obstacles and achieve our goals. During these times, it's easy to feel like we are alone in our struggles and that God is not on our side. However, this couldn't be further from the truth. In fact, the reality is that God is not against us but rather is working alongside us, fighting for us and guiding us through our journey.
God's presence in our lives is a constant reminder that we are never alone. He is always with us, even during our darkest moments, and provides us with the strength, guidance, and support we need to overcome our challenges. He is not just an observer, but an active participant in our lives, helping us to grow and become the best versions of ourselves.
Furthermore, God's power is not limited to just watching us from afar. He is working through us, providing us with the wisdom and the strength to face our challenges head-on. W
Everyone seems to have Christian dating advice. Sometimes the advice is conflicting, confusing, and downright stressful.
“Don’t spend too much time alone with them” vs. “Make sure you spend lots of quality time together.”
“Date for no more than two years” vs. “You have to date for at least two years.”
“Date different people before getting serious” vs. “Only date people you see as a potential spouse.”
“Don’t be too clingy” vs. “Make sure they know you’re interested” vs. “Relax!”
Reflecting on our Journey
In our life journey, we need to pause occasionally in order to rest in God’s grace and to ponder about life. Without pause and reflection, our journey may become tiring and even boring.
Henri Nouwen in his book ‘Here and Now’ writes:
“It is remarkable how much of our life is lived without reflection on its meaning. It is not surprising that so many people are busy but bored! They have many things to do and always running to get them done but beneath the hectic activity they often wonder if anything is truly happening. A life that is not reflected upon eventually loses its meaning and becomes boring.”
Reflecting on our lives as we live them allows us to ask - What does it mean? What is God trying to tell us? How are we called to live in the midst of all this? Without such questions our lives become numb and flat.