Skip to content

Instantly share code, notes, and snippets.

Avatar

Jack Hughes digitalbricklayer

View GitHub Profile
View checklinks.sh
View checkredirects.sh
#!/usr/bin/env bash
# Check redirect destinations work on the dev site
SITE_URL="http://localhost:1313"
# Start the test server
docker-compose up -d
# Wait for the test server to start up
until $(curl --output /dev/null --silent --head --fail $SITE_URL/); do
View checksitemap.sh
#!/usr/bin/env bash
# Validate the contents of the sitemap
# See https://blog.atj.me/2018/05/crawl-sitemap-xml-with-curl/ for inspiration
SITEMAP_URI="/sitemap.xml"
SITEMAP_URL="http://localhost:1313"$SITEMAP_URI
# Start the test server
docker-compose up -d
View main.cpp
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <string>
#include <iostream>
class TileMap : public sf::Drawable, public sf::Transformable
{
public:
bool load(const std::string& tileset, sf::Vector2u tileSize, const int* tiles, unsigned int width, unsigned int height)