Skip to content

Instantly share code, notes, and snippets.

View ShaunaGordon's full-sized avatar

Shauna Gordon ShaunaGordon

View GitHub Profile
@ShaunaGordon
ShaunaGordon / css
Last active January 2, 2016 10:59
Adjustment to fragment targets when a fixed header is involved.
*:target::before {
height: 30px;
margin-top: -63px;
display: block;
content: " ";
visibility: hidden;
}
@ShaunaGordon
ShaunaGordon / Makefile
Last active January 16, 2016 04:04
Pelican, Travis, And Github -- Setting Up Automated Blog Updates
GITHUB_PAGES_BRANCH=master
github: publish
ghp-import -b $(GITHUB_PAGES_BRANCH) -n $(OUTPUTDIR)
@git push -fq https://${GH_TOKEN}@github.com/$(TRAVIS_REPO_SLUG).git $(GITHUB_PAGES_BRANCH) > /dev/null

Anatomy of a Meltdown

In children, a lot of people mistake them for temper tantrums, but meltdowns are a different animal. Meltdowns are often as much physiological as they are emotional in nature.

After going through my last one, I thought I’d write about it. Both in an effort to bring myself back online, and to help others understand what goes on from the point of view of someone “on the inside.”

Trigger

While there may be a “final straw” that triggers a meltdown event, that final trigger is usually the tip of a much larger stressor or series of stressors. I once saw it discribed as a reaction to “too much” — too much noise, too much light, too many people. It’s a fitting description, I think.

public function verifyRequest(Request $request, $secret) {
// Per the Shopify docs:
// Everything except hmac and signature...
$signature = $request->except(['hmac', 'signature']);
// Sorted lexilogically...
ksort($signature);
// Special characters replaced...
foreach ($signature as $k => $val) {
@ShaunaGordon
ShaunaGordon / .travis.yml
Created September 1, 2017 21:38
Tavis Github Deploy Pelican
script:
- make publish
deploy:
provider: pages
local_dir: ./output
skip_cleanup: true
github_token: $GH_TOKEN # Set in travis-ci.org dashboard
target_branch: master
on:
branch: source
@ShaunaGordon
ShaunaGordon / new-hotness.py
Created September 1, 2017 21:52
pelican config change
MARKDOWN = {
'extensions': ['codehilite(css_class=highlight)', 'extra', 'headerid', 'toc'],
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'}
},
'output_format': 'html5'
}
@ShaunaGordon
ShaunaGordon / index.html
Created November 7, 2012 18:18
CSS Faux Image Frames (with text overlay)
<!-- The container can be anything, I just used <div> for the sake of getting this up there. -->
<!-- Let's add an overlay with some text! -->
<div class="framed with-overlay">
<img src="path/to/image.jpg" />
<div class="overlay">An overlay</div>
</div>
<!-- Or, just have the frame itself -->
<div class="framed">
@ShaunaGordon
ShaunaGordon / resume.json
Last active December 14, 2023 22:32
resume.json
{
"meta": {
"version": "1.0",
"lastModified": "2023-12-13T00:50:00",
"additionalData": {
"pronouns": [
"she",
"her"
]
},