Skip to content

Instantly share code, notes, and snippets.

@Gameghostify
Gameghostify / wait-for-service.sh
Created January 20, 2020 16:57
Wait until a web service is up and accepts connections
#!/bin/sh
### not needed
echo "$(tput setaf 3)waiting for api service to accept connections$(tput sgr0)"
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
###
api_service_url="http://localhost:8080" # FIXME enter correct url
attempt_counter=0
max_attempts=20
@Gameghostify
Gameghostify / whats-a-gist.md
Last active January 6, 2020 00:21
What's a gist?

The simplest variation of what GitHub offers is a Gist. You make an account, upload some working code (or a cake recipe, or a movie pitch, any single text document), and now it's available online. Usually, if you're the one posting the Gist, it's specific to you- The world doesn't need another Java Hello World, but it might be handy to have access to your personalized IDE config.

So level one is text files, available online, tied to your login.

But over time, your tastes change, and you update your config to have different settings (or the recipe is now sugar free, or the movie makes more sense as a musical). You can edit your gist, and not only will the latest version be available, you'll be able to see the versions before, the differences, the dates each one was posted, that sort of thing.

So level two adds version history and meta data.

This has been mighty helpful, now. You've been using the features, sharing your file with friends, making edits as needed. But you decide that just on

@Gameghostify
Gameghostify / 0-set-up-csharp.md
Last active July 21, 2020 15:39
A quick guide on how to set up csharp projects

A quick guide on how to set up csharp projects with various features

@Gameghostify
Gameghostify / breakpoints.md
Last active December 1, 2018 15:43
Sass breakpoints

Breakpoint collection

Bootstrap 4 breakpoints

breakpoints used in bootstrap 4

$breakpoints: (
	xs: 0px,
	sm: 576px,
	md: 768px,
	lg: 992px,
@Gameghostify
Gameghostify / ceaser.scss
Created October 7, 2018 09:22
Ceaser Sass variables
$linear: cubic-bezier(0.25, 0.25, 0.75, 0.75);
$ease: cubic-bezier(0.25, 0.1, 0.25, 1);
$ease-in: cubic-bezier(0.42, 0, 1, 1);
$ease-out: cubic-bezier(0, 0, 0.58, 1);
$ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
$easeInQuad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
$easeInCubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
$easeInQuart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
$easeInQuint: cubic-bezier(0.755, 0.05, 0.855, 0.06);