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
| // A Reactor Management Script by quill18 (http://quill18.com) | |
| // Latest Version: https://gist.github.com/quill18/c4b71d81f9202db11455 | |
| // | |
| // | |
| // Developed for: | |
| // Kerbal Space Program 1.04 | |
| // kOS 0.17.3 | |
| // Near Future Electrical 0.5.3 | |
| // | |
| // |
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
| #requires -Modules Configuration, Pester, PSScriptAnalyzer | |
| [CmdletBinding()] | |
| [OutputType()] | |
| $ErrorActionPreference = "Stop" | |
| try { | |
| # Setup environment. | |
| Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Confirm:$false -Force | |
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
| <?PHP | |
| $journal_fn = $argv[1]; | |
| $entries_dir = $journal_fn . '/entries/'; | |
| $entries = scandir($entries_dir); | |
| print_r($entries); | |
| $total_words = 0; | |
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
| <?PHP | |
| $journal_fn = $argv[1]; | |
| $entries_dir = $journal_fn . '/entries/'; | |
| $entries = scandir($entries_dir); | |
| print_r($entries); | |
| $total_words = 0; | |
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
| <?PHP | |
| require '/path/to/markdown-extra.php'; | |
| $db = mysql_connect('localhost', 'root', 'password') or die(mysql_error()); | |
| mysql_select_db('tylerio', $db) or die(mysql_error()); | |
| $files = scandir('posts'); | |
| array_shift($files); // . | |
| array_shift($files); // .. |
NewerOlder