- Install Ruby 2.4.3 via RubyInstaller (not 2.5, conflicts with things later)
- Let it install MSYS2 or do it yourself.
gem install bundler
gem install github-pages
(this includesjekyll
itself and is where things break most)jekyll -v
(3.6.2
at the time of writing, a little behind latest3.7
)jekyll new myblog
- Edit
myblog/Gemfile
to comment outjekyll
line and uncommentgithub-pages
line.
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
{{ if (eq .Destination .Text) | and (in .Destination "twitter.com") | and (in .Destination "status") }} | |
<blockquote class="twitter-tweet" data-dnt="true"> | |
<a href="{{ .Destination | safeURL }}">{{ .Text | safeHTML }}</a> | |
</blockquote> | |
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> | |
{{ else }}<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>{{end}} |
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
<?xml version="1.0"?> | |
<ruleset name="WordPress-Modified"> | |
<description>A custom coding standard.</description> | |
<rule ref="CognitiveComplexity.Complexity.MaximumComplexity"> | |
<properties> | |
<property name="maxCognitiveComplexity" value="5"/> | |
</properties> | |
</rule> | |
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
fetch('style-guide.md') | |
.then((response) => { | |
return response.text(); | |
}) | |
.then((markdown) => { | |
parseMarkdown(markdown) | |
}); | |
function parseMarkdown(markdown) { | |
let css = ''; |
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 | |
declare( strict_types=1 ); | |
$path = $argv[1]; | |
$iterator = new RecursiveIteratorIterator( | |
new RecursiveDirectoryIterator( $path ), | |
RecursiveIteratorIterator::SELF_FIRST | |
); |
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
{{ with getJSON "https://noti.st/rarst.json" }} | |
<h3 class="text-left">Latest Talk</h3> | |
{{ $talks := (index .data 0).relationships.data }} | |
{{ $latest :=index $talks 0 }} | |
<a href="{{ $latest.links.self }}"> | |
<img src="{{ $latest.attributes.image.src }}" alt="{{ $latest.attributes.title }}" | |
class="img-responsive" style="max-height: 210px;border: 1px solid #eee" loading="lazy"/> | |
</a> | |
{{ end }} |
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 | |
class R_Mailer { | |
function Send() { | |
error_log( wp_debug_backtrace_summary() ); | |
} | |
} | |
add_action( 'phpmailer_init', function( &$mailer ) { | |
$mailer = new R_Mailer(); |
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 | |
declare( strict_types=1 ); | |
new class( 'Rarst', [ 'laps' ] ) { | |
private $owner, $repos; | |
private $endpoint = 'download'; | |
public function __construct( string $owner, array $repos ) { |
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
curl https://github.com/%1/compare/master...%2.diff > patches/%2.diff |
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
filter: | |
excluded_paths: | |
- 'tests/*' | |
checks: | |
php: true | |
build: | |
environment: | |
php: | |
version: 7.2 | |
dependencies: |
NewerOlder