Skip to content

Instantly share code, notes, and snippets.

View brianfeister's full-sized avatar
🧙‍♂️

Brian Feister brianfeister

🧙‍♂️
View GitHub Profile
@brianfeister
brianfeister / feats.yml
Last active November 4, 2016 04:38
Example YML formatting
- !
name: Alternate Form (I - III)
prerequisite:
- tier1:
- Attribute:
- Alteration: 2
- Feat:
- Some Other Feat Name
- tier2:
- Attribute:
window.allowHttpFromHttps = true;
1 Azor's Gateway
2 Niv-Mizzet, Parun
2 Search for Azcanta
2 Seal Away
3 Chemister's Insight
1 Essence Scatter
3 Expansion // Explosion
2 Justice Strike
4 Sinister Sabotage
3 Syncopate
1 Azor's Gateway
2 Niv-Mizzet, Parun
2 Search for Azcanta
2 Seal Away
3 Chemister's Insight
1 Essence Scatter
3 Expansion // Explosion
2 Justice Strike
4 Sinister Sabotage
3 Syncopate

1 Azor's Gateway 2 Niv-Mizzet, Parun 2 Search for Azcanta 2 Seal Away 3 Chemister's Insight 1 Essence Scatter 3 Expansion // Explosion 2 Justice Strike 4 Sinister Sabotage 3 Syncopate

@brianfeister
brianfeister / countries.go
Created August 12, 2024 12:03
Countries Map by Alpha2Code as Go Struct
type Country struct {
Alpha3Code string
Alpha2Code string
Country string
}
var Countries = map[string]Country{
"AF": {Alpha3Code: "AFG", Alpha2Code: "AF", Country: "Afghanistan"},
"AL": {Alpha3Code: "ALB", Alpha2Code: "AL", Country: "Albania"},
"DZ": {Alpha3Code: "DZA", Alpha2Code: "DZ", Country: "Algeria"},
@brianfeister
brianfeister / gist:859ae7d7a05e21443dbe1a3cce41e33e
Created October 7, 2024 12:31
Show a loading indicator in page transitions for multi-page apps
<script>
let loadingBarInterval;
function showLoadingIndicator() {
const existingBar = document.getElementById('top-loading-bar');
if (existingBar) {
existingBar.remove();
}
const loadingBar = document.createElement('div');
/* Show an item only when an item within the parenthas focus */
.show-on-focus-parent:focus-within .show-on-focus-child {
opacity: 1;
max-height: 200px;
visibility: visible;
transform: translateY(0);
transition: all 0.2s ease-in-out;
}
.show-on-focus-child {