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
<style> | |
html { | |
background-color: #CCCCCC; | |
} | |
#icons { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content: center; | |
} | |
#icons > div { |
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 | |
// Turn Off Displayed Errors | |
ini_set('display_errors', false); | |
// Handle Errors Our Way | |
// You Can Replace 'shutdown_handler' With Any Name, But | |
// Must Match Function Below | |
register_shutdown_function('shutdown_handler'); | |
function shutdown_handler() { |
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
::-webkit-scrollbar { | |
.square(5px); | |
&-track { background-color: @grayDark; .border-radius(5px); } | |
&-thumb { background-color: @gray; .border-radius(5px); } | |
&-button { background-color: transparent; height: 8px; } | |
&-corner { background-color: transparent; } | |
} |
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
public function redirect($url,$sec=3) { | |
echo "Redirecting in $sec seconds"; | |
echo "<meta http-equiv='refresh' content='$sec,url=$url'>"; | |
} | |
/* Examples: | |
* redirect('http://google.com',5); | |
*/ |
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
function autoCopyright($year='auto') { | |
if (intval($year) == 'auto') { $year = date('Y'); } | |
if (intval($year) == date('Y')) { echo "<p style='font-size:xx-small'>© ".intval($year)."</p>"; } | |
if (intval($year) < date('Y')) { echo "<p style='font-size:xx-small'>© ".intval($year).' - '.date('Y')."</p>"; } | |
if (intval($year) > date('Y')) { echo "<p style='font-size:xx-small'>© ".date('Y')."</p>"; } | |
} | |
/* Examples: | |
* autoCopyright(); | |
* autoCopyright(2012); |
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
/* Simple Error Class */ | |
class makeErrors { | |
protected $error; | |
public function __construct($error) { | |
$this->error = $error; | |
} | |
public function showError($error) { | |
if($error != NULL) { | |
throw new Exception($error); | |
} |
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
@ECHO OFF && nircmd setsysvolume 65535 | |
GOTO Beginning | |
:: Start Comment Block | |
Have speech notifications in other scripts. Please note, all speech must be | |
phonetic so you may have to 'fudge' some spelling to make it sound correct. | |
Example, working with IIS on Windows, you may need to reference the IUSR account | |
and to do it correctly you'd use something like this: | |
Say "File permissions reset for I user account" |
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
@ECHO OFF && SETLOCAL ENABLEEXTENSIONS && SETLOCAL ENABLEDELAYEDEXPANSION | |
TITLE %COMSPEC% && MODE CON COLS=200 LINES=68 && COLOR 07 | |
PUSHD . && CLS | |
:: Test for Admin (Uncomment if you require them) | |
REM OPENFILES >NUL || ECHO Administrative Privileges Required | |
IF "%~1" == "/?" GOTO Help ELSE GOTO Beginning | |
IF "%~1" == "" GOTO Help |
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
@ECHO OFF && SETLOCAL ENABLEEXTENSIONS && SETLOCAL ENABLEDELAYEDEXPANSION | |
TITLE %COMSPEC% && MODE CON COLS=200 LINES=68 && COLOR 07 | |
PUSHD . && CLS | |
TITLE NirCmd Test | |
IF "%~1" == "/?" GOTO Help | |
IF "%~1" == "" GOTO Beginning | |
:: This begins comment block |
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
REM Supplemental Batch File | |
REM Use 'CALL progressbar XX' in other scripts (where XX is a number 0 - 100) | |
REM Example: CALL progressbar 50 | |
@ECHO OFF | |
:ProgressMeter | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
SET ProgressPercent=%1 | |
SET /A NumBars=%ProgressPercent%/2 |
NewerOlder