Commit baaf7891 authored by Tegan's avatar Tegan
Browse files

Added some lab experiments

parent 149f1cf0
Pipeline #70856197 passed with stage
in 23 seconds
The MIT License (MIT)
Copyright (c) 2014 Spencer Lyon
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
\ No newline at end of file
title: "{{ replace .Name "-" " " | title }}"
publishDate: {{ .Date }}
draft: true
baseurl = ""
contentdir = "content"
layoutdir = "layouts"
publishdir = "public"
title = "Today I Learned"
canonifyurls = true
DefaultContentLanguage = "en"
theme = "beautifulhugo"
metaDataFormat = "yaml"
pygmentsUseClasses = true
pygmentCodeFences = true
enableEmoji = true
#disqusShortname = "XXX"
#googleAnalytics = "XXX"
subtitle = "Snippets from work and play"
# logo = "img/avatar-icon.png"
favicon = "img/favicon.ico"
dateFormat = "2 January 2006"
commit = false
rss = true
comments = true
# gcse = "012345678901234567890:abcdefghijk" # Get your code from Make sure to go to "Look and Feel" and change Layout to "Full Width" and Theme to "Classic"
# src = "img/triangle.jpg"
# desc = "Triangle"
# src = "img/sphere.jpg"
# desc = "Sphere"
# src = "img/hexagon.jpg"
# desc = "Hexagon"
name = "Tegan"
gitlab = "teganmm"
github = "ninabit"
twitter = "CupOfTegan"
# reddit = "username"
# linkedin = "username"
# stackoverflow = "users/XXXXXXX/username"
instagram = "CupOfTegan"
# youtube = "user/username" # or channel/channelname
# soundcloud = "username"
# spotify = "username"
itchio = "ninabit"
# keybase = "username"
# [[menu.main]]
# name = "Blog"
# url = ""
# weight = 1
# [[menu.main]]
# name = "About"
# url = "page/about/"
# weight = 3
# [[menu.main]]
# identifier = "samples"
# name = "Samples"
# weight = 2
# [[menu.main]]
# parent = "samples"
# name = "Big Image Sample"
# url = "post/2017-03-07-bigimg-sample"
# weight = 1
# [[menu.main]]
# parent = "samples"
# name = "Math Sample"
# url = "post/2017-03-05-math-sample"
# weight = 2
# [[menu.main]]
# parent = "samples"
# name = "Code Sample"
# url = "post/2016-03-08-code-sample"
# weight = 3
name = "Tags"
url = "tags"
name = "Categories"
url = "categories"
title: About me
subtitle: Why you'd want to hang out with me
comments: false
My name is The Dude. I have the following qualities:
- I rock a great beard
- I'm extremely loyal to my friends
- I like bowling
That rug really tied the room together.
### my history
To be honest, I'm having some trouble remembering right now, so why don't you
just watch [my movie]( and it
will answer **all** your questions.
title: DIY banana face mask
description: Recipe for nutritious goop that you can smear on your face or just eat
publishDate: 2019-06-07
- notes
- self care
- recipe
- eco
In general I don't do routine.
My only routine is not having a routine.
So as you may expect, I don't really have a beauty or skincare regime: I wash my face in the shower :bath: and splash my face with soap 🧼 in the evenings sometimes if I feel like it. I don't wear much makeup, especially not foundation but I am a terrible face toucher and skin picker.. this probably means I can't complain when I break out.
I recently had a really bad bout of hormonal spots which set me off a skincare rampage! 🤬 It's hard _not_ to think about something daily when it is sad and painful. I was applying all the (limited things) I had in the bathroom cupboard: sudocrem, benzonite clay, I even bought some peel-off charcoal goop and let the fighting chemicals sit on my skin whilst I played Overwatch - it was quite the sight when my monitor went black and I saw myself staring back 😳
I began to wonder if applying all these chemicals was doing more harm that good, giving my skin more to fight against. Then I remembered that I have been nurturing an aloe vera since it was gifted to me a Christmas. <br/>Why not make something at home? Surely that is the most nutritious thing I could do for my skin right now?
So here is a little recipe, based in no scientific knowledge of skin-goodness, but anecdotal knowledge that afterwards my skin felt moisturised, soft and a little bit happier.
# Face mask recipe
- ½ a banana (I ate the rest)
- 1 teaspoon of Rowse honey (bee kind, buy organic!)
- 2½cm of aloe vera
- 1 dash of lemon juice
I squished it all together with a pestle and mortar which got rid of most of the lumps.
Spread on face like you're a piece of bread :heart:
title: Treat yourself like a Sim
description: How to get by when everything becomes too much
publishDate: 2019-06-06
- notes
- mental health
Sometimes you have low days. Days that it is hard to get out of bed, let alone leave the house.
For me, these days are usually paired with pajamas and mild anxiety of what is outside my door, and the guilt of failing to be a 'normal' human being. It is the sort of day where I will just plunge into a computer game as it means I have to make very little in the way of real life decisions.
Treating myself like a Sim is a way to identify if there is anything in particular (that is within my control) is pulling me down and to make sure that I keep my head above water.
As someone who quite easily gets overwhelmed by day-to-day human stuff, being a Sim is easier. I can address one thing at a time.
Sims have 8 needs:
- Hunger
- Comfort
- Bladder
- Energy
- Fun
- Social
- Hygiene
- Environment
In looking for an image for this mind-splurge, I found a Reddit post that encapsulates what I am trying to say.
<blockquote class="reddit-card" data-card-created="1559997523"><a href="">I've been visualizing my needs in terms of Sims Mood Bars for years. So, if the house is messy, then that means my Environment mood level is low.</a> from <a href="">r/ADHD</a></blockquote>
<script async src="//" charset="UTF-8"></script>
In the post, it expands a little saying:
> Thinking of my needs like a Sim character is how I cope and keep going if I'm otherwise too depressed, anxious, or disorganized to shower, eat, clean, or text someone back. So far I haven't peed on the floor.
So if you feel poop some days, that is OK. But make sure your 8 needs are cared for and focusing on them may help you carry on.
title: Zero waste shops based in the UK
description: A list of online zero waste shops that operate within the United Kingdom
publishDate: 2019-06-06
- notes
- eco
- zero waste
- bookmark
## Groceries and home
- [Anything but plastic](
- [Zero waste club](
- [Plastic-free pantry](
## Clothing
- [Rapanui](
- [Huit denim](
title: 2019 birthday wishlist
description: This is my wishlist for my 27th birthday so you don't have to worry about getting me the Right Thing.
slug: 2019-birthday-wishlist
publishDate: 2019-05-27
- notes
- eco
- zero-waste
Oh hey! It's my :two::seven:th birthday soon! :tada:
## Gift ideas
As most of you know, I am trying to reduce my waste.
This adventure has been touching so many parts of my life and I have been trying to find a maintainable balance. It also means I am questioning the social constructs that have a habit of generating waste, and at this time of year, I am focussing on birthdays, specifically.. my birthday :wink:
I have devised a list of things that I want or need, I believe this will reduce not only waste but stress, time and money as well.
- 🧼 Soap bars! You can never have too many in my opinion.. Ask Ben. My favourite flavours are fresh and fruity
- 💁 Shampoo bars! My favourite is [Lush's Montalbano]( but always happy to try other brands/flavours
- :candle: Soya-based candles, voltive-style sans glass cup would be perfect :ok_hand:
- :seedling: Peace lily plant. These guys don't mind the shade and our house can be quite dark. Also they have amazing air purifying properties :heart_eyes:
- :recycle: Rapanui (🗣️ Rappa-newy, not Rapan-U-I _apparently_) tees. I really need some basic tees and I really want the organic/circular economy ones this brand does. I'm probably a size 14/M, but I need to check
- [Circular Economy Top](
- [Pacific Nepp Organic T-shirt](
- [Atlantic Nepp Organic T-shirt](
- 🧘 [Lucy & Yak cork yoga mat]( (sustainable _and_ cool!?)
- :sneezing_face: White hankerchiefs. This is something that has been missing from my zero-waste kit! Ideally not new (charity shop?) or organic cotton.
- :tshirt: ['But first, tea' tee by deliciousmonstertea]( (Fitted, large)
- :funeral_urn: [A 'tit pot' by Pot Yer Tits Away Luv]( - although these are almost always sold out :sob:
- :book: [Sawbones: The Hilarious, Horrifying Road to Modern Medicine](
I really love supporting local, small, independent companies especially ones with a Girl Boss. I also love handmade things.
## Gift wrapping
![Two gifts wrapped in fabric in the furoshiki style](
[furoshiki wraps by weekend knitter (CC BY-NC-ND 2.0)](
:warning: Controversial opinion :warning:
Gift wrapping is not required!
Yup. Believe it or not I will be as delighted and appreciative of your gift whether it has been initially hidden from view or not.
If one really must have the element of surprise, use an old amazon box, newspaper or even wrap it in your favourite patterned scarf (I promise I will give it back!)
## Can I at least give you a card?
Sure, if you want, although sending me a message on WhatsApp or Messenger are equally as good and it saves you a trip to the shops.
When you think about it, all these social constructs that we hold each other to are quite strange.
title: "Remove node_modules from Git repository"
publishDate: 2019-06-15T00:12:25+01:00
section: tech
- git
- command-line
title: Stackoverflow - Ignore node_modules folder everywhere
Run this command to remove `node_modules` files from your local repository
git rm -r --cached node_modules
Run this command to add `node_modules` to your .gitignore
echo "node_modules" >> .gitignore
title: "Remove incomplete commit locks on the command line"
publishDate: 2019-06-16T00:13:40+01:00
section: tech
- git
- command-line
Run these commands in the command line to clear incomplete commits:
``` zsh
rm .git/.COMMIT_EDITMSG.swp
rm .git/index.lock
Then add your changes, commit and push as you would normally.
title: Find all elements with attribute on page
description: How to list all elements that have your chosen attribute in the browser console
publishDate: 2019-05-20
- tech
- til
- javascript
title: Get elements by attribute when querySelectorAll is not available without using libraries?
You can list all elements on the page that have your selected attribute in the console.
Inject the following code into the inspector console:
{{< highlight javascript "linenos=inline">}}
function getAllElementsWithAttribute(attribute) {
var matchingElements = [];
var allElements = document.getElementsByTagName('*');
for (var i = 0, n = allElements.length; i < n; i++) {
if (allElements[i].getAttribute(attribute) !== null) {
return matchingElements;
getAllElementsWithAttribute('data-foo'); // Your value here
{{</ highlight >}}
title: "Remove .DS_Store from Git repository"
publishDate: 2019-05-28T00:20:54+01:00
section: tech
- git
- command-line
title: How to get rid of .DS_Store files in git repositories
Run this command to remove `.DS_Store` files from your repository
``` zsh
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
Run this command to add `.DS_Store` to your .gitignore
``` zsh
echo ."DS_Store" >> .gitignore
title: "Scroll snapping with CSS!"
description: "I always thought this was done with JavaScript, but it's actually possible with CSS!"
date: 2019-05-31
title: "MDN docs: scroll-snap-type"
section: tech
- css
CSS scroll snapping allows for controlled scrolling experiences. If a user scrolls partially down/across an element, the CSS can force the scroll to snap to the top of the element instead.. or something.
I haven't given this a go, because I only just found out 🤯
## Browser compatibility
Fully-fledged in 🍎 Safari and 🤖 Chrome support this feature in it latest builds. 🦊 Firefox supports properties from an older specification. 🌐 IE and 🔵 Edge have partial support, hidden behind a feature flag etc etc surprise surprise.
[Read more about scroll-snap-type browser compatibility](
I'm off to give this a go. :wave:
title: Pirates arrrr
date: 2015-01-15
Piracy is typically an act of robbery or criminal violence at sea. The term can include acts committed on land, in the air, or in other major bodies of water or on a shore. It does not normally include crimes committed against persons traveling on the same vessel as the perpetrator (e.g. one passenger stealing from others on the same vessel). The term has been used throughout history to refer to raids across land borders by non-state agents.
\ No newline at end of file
title: Soccer
subtitle: Best sport ever!
date: 2015-01-19
From Wikipedia:
Association football, more commonly known as football or soccer,[2] is a sport played between two teams of eleven players with a spherical ball. It is played by 250 million players in over 200 countries, making it the world's most popular sport.[3][4][5][6] The game is played on a rectangular field with a goal at each end. The object of the game is to score by getting the ball into the opposing goal.
The goalkeepers are the only players allowed to touch the ball with their hands or arms while it is in play and then only in their penalty area. Outfield players mostly use their feet to strike or pass the ball, but may use their head or torso to strike the ball instead. The team that scores the most goals by the end of the match wins. If the score is level at the end of the game, either a draw is declared or the game goes into extra time and/or a penalty shootout depending on the format of the competition. The Laws of the Game were originally codified in England by The Football Association in 1863. Association football is governed internationally by the International Federation of Association Football (FIFA; French: Fédération Internationale de Football Association) which organises a World Cup every four years.[7]
\ No newline at end of file
title: Dear diary
date: 2015-01-27
What is it with that Mary girl? Dragging me to school every day. As if I had a choice. What you don't hear in those nursery rhymes is that she starves me if I don't go to school with her; it's the only way I can stay alive! I'm thinking about being adopted by Little Bo Peep, sure I may get lost, but anything is better than being with Mary and those little brats at school (shudder, shudder).
\ No newline at end of file
title: To be
subtitle: ... or not to be?
date: 2015-02-13
To be, or not to be--that is the question:
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune
Or to take arms against a sea of troubles
And by opposing end them. To die, to sleep--
No more--and by a sleep to say we end
The heartache, and the thousand natural shocks
That flesh is heir to. 'Tis a consummation
Devoutly to be wished. To die, to sleep--
To sleep--perchance to dream: ay, there's the rub,
For in that sleep of death what dreams may come
When we have shuffled off this mortal coil,
Must give us pause. There's the respect
That makes calamity of so long life.
For who would bear the whips and scorns of time,
Th' oppressor's wrong, the proud man's contumely
The pangs of despised love, the law's delay,
The insolence of office, and the spurns
That patient merit of th' unworthy takes,
When he himself might his quietus make
With a bare bodkin? Who would fardels bear,
To grunt and sweat under a weary life,
But that the dread of something after death,
The undiscovered country, from whose bourn
No traveller returns, puzzles the will,
And makes us rather bear those ills we have
Than fly to others that we know not of?
Thus conscience does make cowards of us all,
And thus the native hue of resolution
Is sicklied o'er with the pale cast of thought,
And enterprise of great pitch and moment
With this regard their currents turn awry
And lose the name of action. -- Soft you now,
The fair Ophelia! -- Nymph, in thy orisons
Be all my sins remembered.
\ No newline at end of file
title: Test markdown
subtitle: Each post also has a subtitle
date: 2015-02-20
tags: ["example", "markdown"]
You can write regular [markdown]( here and Jekyll will automatically convert it to a nice webpage. I strongly encourage you to [take 5 minutes to learn how to write in markdown]( - it'll teach you how to transform regular text into bold/italics/headings/tables/etc.
**Here is some bold text**
## Here is a secondary heading
Here's a useless table:
| Number | Next number | Previous number |
| :------ |:--- | :--- |
| Five | Six | Four |
| Ten | Eleven | Nine |
| Seven | Eight | Six |
| Two | Three | One |
How about a yummy crepe?
Here's a code chunk with syntax highlighting:
var foo = function(x) {
return(x + 5);
title: Flake it till you make it
subtitle: Excerpt from Soulshaping by Jeff Brown
date: 2015-02-26
bigimg: [{src: "/img/path.jpg", desc: "Path"}]
Under what circumstances should we step off a path? When is it essential that we finish what we start? If I bought a bag of peanuts and had an allergic reaction, no one would fault me if I threw it out. If I ended a relationship with a woman who hit me, no one would say that I had a commitment problem. But if I walk away from a seemingly secure route because my soul has other ideas, I am a flake?
The truth is that no one else can definitively know the path we are here to walk. It’s tempting to listen—many of us long for the omnipotent other—but unless they are genuine psychic intuitives, they can’t know. All others can know is their own truth, and if they’ve actually done the work to excavate it, they will have the good sense to know that they cannot genuinely know anyone else’s. Only soul knows the path it is here to walk. Since you are the only one living in your temple, only you can know its scriptures and interpretive structure.
At the heart of the struggle are two very different ideas of success—survival-driven and soul-driven. For survivalists, success is security, pragmatism, power over others. Success is the absence of material suffering, the nourishing of the soul be damned. It is an odd and ironic thing that most of the material power in our world often resides in the hands of younger souls. Still working in the egoic and material realms, they love the sensations of power and focus most of their energy on accumulation. Older souls tend not to be as materially driven. They have already played the worldly game in previous lives and they search for more subtle shades of meaning in this one—authentication rather than accumulation. They are often ignored by the culture at large, although they really are the truest warriors.
A soulful notion of success rests on the actualization of our innate image. Success is simply the completion of a soul step, however unsightly it may be. We have finished what we started when the lesson is learned. What a fear-based culture calls a wonderful opportunity may be fruitless and misguided for the soul. Staying in a passionless relationship may satisfy our need for comfort, but it may stifle the soul. Becoming a famous lawyer is only worthwhile if the soul demands it. It is an essential failure if you are called to be a monastic this time around. If you need to explore and abandon ten careers in order to stretch your soul toward its innate image, then so be it. Flake it till you make it.
\ No newline at end of file
title: Math Sample
subtitle: Using KaTeX
date: 2017-03-05
tags: ["example", "math"]
KaTeX can be used to generate complex math formulas server-side.
\phi = \frac{(1+\sqrt{5})}{2} = 1.6180339887\cdots
Additional details can be found on [GitHub]( or on the [Wiki](
### Example 1
If the text between $$ contains newlines it will rendered in display mode:
f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi