Skip to content

Instantly share code, notes, and snippets.

@leinadlime
leinadlime / index.html
Created February 10, 2020 19:26
Recreating my child’s pre-school scrapbook with CSS Grid
<div class="grid">
<header>
<h1>Hector’s Adventures with George</h1>
</header>
<figure class="fig fig--1" style="--aspect-ratio: 3/4;">
<img src='https://images.unsplash.com/photo-1515488042361-ee00e0ddd4e4?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ' alt='Small child playing with toys'>
</figure>
<p>We played in Nana and Grandad’s garden. We picked apples and made apple crumble!</p>
<figure class="fig fig--2" style="--aspect-ratio: 4/3;">
<img src='https://images.unsplash.com/photo-1502086223501-7ea6ecd79368?ixlib=rb-1.2.1&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ'>
@leinadlime
leinadlime / hexagonal-generative-art.markdown
Created October 16, 2019 23:27
Hexagonal Generative Art
@leinadlime
leinadlime / .envrc
Created September 24, 2019 22:41 — forked from ejpcmac/.envrc
.envrc for persistent cached Nix shells
####################################
# Environment setup for Nix shells #
####################################
# From https://github.com/direnv/direnv/wiki/Nix#persistent-cached-shell
#
# Usage: use_nix [...]
#
# Load environment variables from `nix-shell`.
# If you have a `default.nix` or `shell.nix` one of these will be used and

Codevember Day #13

A morphing grid experiment using CSS Grid to provide the grid and dynamically changing the "grid-template-columns" and "grid-template-rows" attributes based on the mouse position.

A Pen by LeinadLime on CodePen.

License.

@leinadlime
leinadlime / index.html
Created March 4, 2019 23:02
pure css grid zoom boxes
<ul class="tabs">
<li>
<input class="toggle-radio" type="radio" name="facegroup" id="management" checked>
<label class="tab" for="management">Management</label>
<div class="tab-panel">
<input class="toggle-checkbox" type="checkbox" id="a">
<label class="element" for="a">
<h3><span class="name">Cathy</span>
<span class="job">Master Stylist</span></h3>
@leinadlime
leinadlime / css-grid-responsive-perspective-layout.markdown
Created March 4, 2019 22:55
CSS Grid Responsive Perspective layout
@leinadlime
leinadlime / org-archive-subtree-hierarchical.el
Created March 5, 2018 00:25 — forked from xcodebuild/org-archive-subtree-hierarchical.el
Keeping the context when archiving in Emacs org-mode
;; org-archive-subtree-hierarchical.el
;; modified from https://lists.gnu.org/archive/html/emacs-orgmode/2014-08/msg00109.html
;; In orgmode
;; * A
;; ** AA
;; *** AAA
;; ** AB
;; *** ABA
;; Archiving AA will remove the subtree from the original file and create
@leinadlime
leinadlime / org-mode-reference-in.org
Created March 4, 2018 22:56 — forked from drj42/org-mode-reference-in.org
This is a cheat sheet for Emacs org-mode... in org-mode format!
@leinadlime
leinadlime / 0-hidden-service-subdomains.md
Created March 4, 2018 14:17 — forked from mtigas/0-hidden-service-subdomains.md
Example code for running a (HTTP/HTTPS) Tor hidden service supporting subdomains.

The following files show an example of how to create subdomains for onion site hidden services. (This hasn't been tested for hidden services for anything other than HTTP/HTTPS.)

(You might also want to read our blog post about ProPublica’s Tor hidden service, including a tutorial and notes on running a hidden service: https://www.propublica.org/nerds/item/a-more-secure-and-anonymous-propublica-using-tor-hidden-services )

In general, this works (maybe just in recent Tor clients) because Tor will handle the connection to www.xxxxxxxxxxxxxxxx.onion as a connection to xxxxxxxxxxxxxxxx.onion. The encapsulated HTTP/HTTPS connection contains the subdomain in the Host: header (and in the case of HTTPS, the SNI

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.