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
//header.php version - Place just before </head> | |
########################################## | |
<?php | |
require_once($CFG->dirroot.'/blocks/sb_training_tools/lib/locallib.php'); | |
require_once($CFG->dirroot.'/user/profile/lib.php'); | |
/** | |
* | |
* Retrieve the displayed user's details | |
*/ |
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
# flat directory/file listings | |
"dir > top-level-folders.txt" | |
"dir /s > dir.txt" same as above but recursive | |
"dir /s /w > dir.txt" to get rid of time and date info, etc | |
# Directory Tree | |
# /A adjusts the visual tree - adds + and -, and \ for last parent of each level | |
tree /A > just-folder-structure.txt | |
tree /A /F > file-and-folder-structure.txt |
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 | |
/** | |
* replace value within an array with multiple new values while keeping the numerical order | |
* AKA insert/replace into the middle of array | |
* | |
* @param $parentArray | |
* @param int $numericalKey the key of the element to be removed | |
*/ | |
$parentArray = array(0,1,2,3,4,5,6,7,8,9); |
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> | |
.likeXML{margin:20px 0} | |
.likeXML .text{color:#000;font-size:12px} | |
.likeXML .start-tag,.likeXML .end-tag{ | |
color:#800080 !important; | |
text-transform:uppercase; | |
cursor:pointer; | |
font-weight:bold; | |
font-size:12px | |
} |
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
git describe --tags |
Various Terminal Commands
# Interactive means you can enter commands. The shell is not running because
#+ a script has been activated. A login shell means that you got the shell after
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
Emmet string for Our Clubs Page | |
<!-- EMMET --> | |
.show-outline>(.row>(.col-sm-6.col-xs-12>.media>(img.pull-left+.media-body>h2{h2 here})+p.the_content{the content here})+(.col-sm-6.col-xs-12>(.col-xs-12>h3{h3 here})+((.col-sm-4.col-xs-12>.repeater_label{repeater label $})+(.col-sm-8.col-xs-12>.repeater_value{repeater value $}))*3))+.row>.col-xs-12.collapsible>(header>h3{h3 here})+(.col-sm-6.col-xs-12>h4{h4 here}+img.social-icons*4)+(.col-sm-6.col-xs-12>(.col-sm-4.col-xs-12{label $}+.col-sm-8.col-sm-12{value $})*3)|c |
OlderNewer