👋🏻 hi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
▲ My programming days started back in the mid 90s | |
▲ I'm largely self-taught, although I took CS classes for a few years for my masters in Cybernetics, robotics and engineering | |
▲ I possess at the least fundamental skills and experience in several of the popular languages and frameworks around, and highly competent in some of them, like JavaScript | |
▲ Trying to be as "full stack" as I possibly can, by learning diverse skills | |
▲ Being somewhat agnostic about platforms/languages, my focus has been mostly on: | |
— Everything Javascript! 💛 — HTML — three.js — CSS — NodeJs — React — everything Python - APIs — AWS & Azure cloud platforms — SQL — PHP — C++/C# — Containerisation — Github — bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ANSI/VT100 colours | |
YELLOW='\033[1;33m' | |
LIGHTYELLOW='\033[0;33m' | |
RED='\033[0;31m' | |
LIGHTRED='\033[1;31m' | |
GREEN='\033[0;32m' | |
LIGHTGREEN='\033[1;32m' | |
BLUE='\033[0;34m' | |
LIGHTBLUE='\033[1;34m' | |
PURPLE='\033[0;35m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# █▄▄ █░█ █▀▄▀█ █▀█ ▄▄ █░█ █▀▀ █▀█ █▀ █ █▀█ █▄░█ | |
# █▄█ █▄█ █░▀░█ █▀▀ ░░ ▀▄▀ ██▄ █▀▄ ▄█ █ █▄█ █░▀█ | |
# | |
# Description: | |
# - This script automates bumping the git software project's version using automation. | |
# - It does several things that are typically required for releasing a Git repository, like git tagging, | |
# automatic updating of CHANGELOG.md, and incrementing the version number in various JSON files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.theguardian.com/science/2020/jan/13/did-you-solve-it-the-poco-poco-puzzle#comment-137362390 | |
// I did it with code! | |
var P, O, C; | |
var M, U, _C, H, _O; | |
var greatSuccess = false; | |
var result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function massrename($dir) { | |
$files = glob($dir . '/*'); | |
foreach ($files as $file) { | |
$pathinfo = pathinfo($file); | |
$newname = strtolower($pathinfo['basename']); | |
// replace spaces with hyphens and remove funny characters |