- Diagnose the problem
- Look for solution
- Look for tools
- Note your solutions by using pseudo code
<select> | |
<option selected disabled>Choose Bank</option> | |
<option value="Kuda Bank">Kuda Bank</option> | |
<option value="Access Bank">Access Bank</option> | |
<option value="Citibank">Citibank</option> | |
<option value="Eco Bank">Ecobank</option> | |
<option value="FCMB">First City Monument Bank (FCMB)</option> | |
<option value="Fidelity Bank">Fidelity Bank</option> | |
<option value="First Bank">First Bank</option> | |
<option value="GTB">Guaranty Trust Bank (GTB)</option> |
<?php if($condition): ?> | |
<h1>Some Html</h1> | |
<?php elseif($otherCondition): ?> | |
<h1>Some Html</h1> | |
<?php else: ?> | |
<h1>Some Html</h1> | |
<?php endif; ?> |
sudo apt-key export 038651BD | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/slacktechnologies.gpg | |
# Replace 038651BD with the last 8 characters of your key | |
# Relace slacktechologies with a name that applies to your app or key |
#!/usr/bin/python3 | |
""" | |
Module that counts number of articles in a string | |
""" | |
def filter_articles(text): | |
"""Count how many articles (a, an, the) in a string | |
Args: |
if !has('nvim') | |
" Vundle | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required |
APP_ENV=local | |
APP_DEBUG=true -> 'debug' on config/app.php | |
APP_KEY=my_key -> 'key' on config/app.php | |
// all these on config/database.php | |
DB_HOST= | |
DB_DATABASE= | |
DB_USERNAME= | |
DB_PASSWORD= |
In some cases for Python unit tests, we want to automatically perform setUp
methods in as declared in a base class. However, we still want setUp
to work as per normal in the subclass. The following code will proxy the new setUp
function to run it's base class' and the new one.
# Define a common test base for starting servers
class MyBaseTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
"""On inherited classes, run our `setUp` method"""
# Inspired via http://stackoverflow.com/questions/1323455/python-unit-test-with-base-and-sub-class/17696807#17696807
if cls is not MyBaseTestCase and cls.setUp is not MyBaseTestCase.setUp:
#include <stdio.h> | |
/** | |
* main - Entry point | |
* | |
* Return: Always (0) | |
*/ | |
int main(void) | |
{ | |
unsigned int num_one = 3; |