I have files with other sets of constants available
- date
- file-size
- time
They're already part of my skeleton repo.
# rg --type-list will show all the file types with their associated file extensions. | |
# Use the --type-add option once for each additional type you want | |
# to be seen as a PHP file. | |
rg -e '^require(_once)?\b' -e '^include(_once)?\b' --type-add 'php:*.inc' --type php |
<?php | |
/** | |
* The base class for all Wallpaper subclasses | |
* | |
* @package Wallpapers | |
* @access public | |
*/ | |
class BaseWallpaper { | |
/** a handle to the image */ |
#!/usr/bin/php | |
<?php | |
/* | |
* Binary Search Function - uses recursion | |
* | |
*/ | |
function binarySearch(array $search, int $find): bool | |
{ | |
$length = count($search); |
# | |
# Whenever you get a new computer, you need to create some files and | |
# directories to get things configured. No need to load this in your .bashrc | |
# file. Just source this when you need it. Call it like this: | |
# | |
# $ source new-account-setup.bash | |
# $ cd ~ && new_account_setup | |
# | |
function new_account_setup { |
# building app and required component for running the app | |
version: '3' | |
services: | |
database: | |
build: docker/mysql | |
ports: | |
- "3306:3306" | |
environment: | |
- MYSQL_USER=laravel |
#!/bin/bash | |
# | |
# Client website setup script | |
# | |
echo "Commencing WordPress trunk Setup" | |
DB_NAME="name_of_database" | |
DB_USER="database_username" | |
DB_PASS="database_password" |
<!-- GATHER INFORMATION FROM FORM --> | |
<!-- Get date due, the Friday before the week for which the taxi fare applies --> | |
<?php | |
/* | |
* Create date for testing (due date Friday, 10-13-17) | |
*/ | |
$monthDue = 10; // $_POST['monthdue']; | |
$dayDue = 13; // $_POST['daydue']; | |
$yearDue = 2017; // $_POST['yeardue']; |
I have files with other sets of constants available
They're already part of my skeleton repo.
<?php | |
/* | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
* * | |
* FUNCTIONS * | |
* * | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
*/ | |
require_once 'admin/menus.php'; |
I want to change the world, but they won't give the source code :)
People try hard to accomplish things on their to-do list, but they often feel like they don't have enough time. To anyone who has been on Twitter long enough, you'll eventually come across a tweet similar to the following:
ZOMG! I need more time! How can I stretch out the number of hours in a day to 30 hours!
The desired number of hours in the tweets usually differs, but the sentiment remains the same. Let's see how we can do that!