This file contains hidden or 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
| 1/2/2017 | |
| moment().format("M/D/YYYY"); | |
| 01/02/2017 | |
| moment().format("MM/DD/YYYY"); | |
| 14:57:22 | |
| moment().format("HH:mm:ss"); | |
| 02:57 PM |
This file contains hidden or 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
| 1/2/2017 | |
| DateTime.Now.ToString("M/d/yyyy"); | |
| 01/02/2017 | |
| DateTime.Now.ToString("MM/dd/yyyy"); | |
| 14:57:22 | |
| DateTime.Now.ToString("HH:mm:ss"); | |
| 02:57 PM |
This file contains hidden or 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
| require(__DIR__ . "/vendor/autoload.php"); | |
| interface IDog { | |
| function bark(); | |
| } | |
| class Poodle implements IDog { | |
| public function bark() { | |
| echo "woof!" . PHP_EOL; | |
| } |
This file contains hidden or 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
| [user] | |
| name = brentk | |
| email = brenttkelly@gmail.com | |
| [push] | |
| default = simple | |
| [color] | |
| ui = auto | |
| [color "branch"] | |
| current = yellow reverse | |
| local = yellow |
This file contains hidden or 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
| " Enable syntax highlighting | |
| syntax on | |
| " Set tabs to 4 spaces | |
| set expandtab ts=4 sw=4 ai | |
| " Highlight searched text | |
| set hlsearch | |
| " Solid block cursor (needed for git bash): |
This file contains hidden or 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 | |
| # Bash script to simplify opening a vs solution from a bash prompt | |
| file="" | |
| fileCount=$(ls *.sln 2> /dev/null | wc -l) | |
| if [ $fileCount -eq "0" ]; then | |
| echo "ERROR: No solution files found." | |
| exit 1 | |
| fi |
This file contains hidden or 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
| ; Lines starting ; (semicolons) are commented out. | |
| ; That is, they do not affect the code and are here for demonstration purposes only. | |
| ; ---------------------------------- | |
| [Rainmeter] | |
| ; This section contains general settings that can be used to change how Rainmeter behaves. | |
| Author=poiru | |
| AppVersion=2003000 | |
| Update=1000 | |
| Background=#@#Background.png |
This file contains hidden or 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
| # View space taken up | |
| docker system df -v | |
| # Safe cleanup commands (won't drop anything that is "dangling" because a container is just stopped) | |
| docker image prune | |
| docker builder prune | |
| # PS Function to shrink WSL drive (run as administrator) | |
| function docker_compact { | |
| param( |