Skip to content

Instantly share code, notes, and snippets.

View klickreflex's full-sized avatar

Daniel Wentsch klickreflex

View GitHub Profile
@klickreflex
klickreflex / focus.css
Last active March 1, 2024 07:51
base styles to set focus
:root {
--focus-outline-width: 2px;
--focus-outline-offset: 3px;
--focus-outline-color: currentColor;
--focus-outline-style: dotted;
}
@layer base {
:focus {
@apply transition;
Welcome to the Huberman Lab Podcast, where we discuss science and science-based tools for everyday life. I'm Andrew Huberman, and I'm a professor of neurobiology and ophthalmology at Stanford School of Medicine. Today my guest is Dr. Noam Sobel. Dr. Noam Sobel is a professor of neurobiology in the Department of Brain Sciences at the Weizmann Institute of Science. His laboratory studies olfaction and chemosensation. Olfaction is, of course, our sense of smell. Olfaction is our ability to respond to chemicals in our environment. Today you are going to learn some absolutely incredible facts about how you interact with the world and other people around you. For instance, you will learn that humans can smell things around them as well as dogs can. In fact, humans are incredibly good at sensing the chemical world around them. You also learn, for instance, that every time you meet somebody, you are taking chemicals from that person, either from the chemical cloud that surrounds them or directly from the surface of t
@klickreflex
klickreflex / index.html
Created June 11, 2021 21:16
Lined Textarea with Tailwind
<div class="p-8">
<div class="border border-gray-200 rounded-sm px-4 py-2 focus-within:border-blue-400">
<label class="text-sm text-gray-400 block uppercase tracking-wide font-bold"> Label </label>
<textarea class="text-gray-700 leading-[28px] min-h-[96px] bg-gray-lines bg-local w-full focus:outline-none">Congue aptent sagittis sollicitudin bibendum arcu orci euismod nibh pellentesque vulputate eget aliquam praesent, pretium primis rhoncus curae urna lectus tempus mauris proin montes ligula eu.</textarea>
</div>
</div>
@klickreflex
klickreflex / convert_m4b.sh
Created March 15, 2021 10:53 — forked from nitrag/convert_m4b.sh
Audibook convert m4b to mp3. This will split into chaptered mp3 files and automatically reconfigure proper ID3v2 tags. (adjusted to work on MacOS)
#!/bin/bash
#
# brew install id3v2 ffmpeg
#
# USAGE:
# cd /book title/
# bash ~/this_script_path.sh
# rm *.m4b (you need to manually remove the original in case something goes wrong)
#
#
@klickreflex
klickreflex / import.rb
Last active June 4, 2020 08:41
Import Instagram Export to Day One Journal (requires the Day One CLI tool)
require 'json'
file = File.read('media.json')
data_hash = JSON.parse(file)
photos = data_hash['photos']
i = 0
photos.each do |key, value|
date = key['taken_at']
path = key['path']
@klickreflex
klickreflex / keybase.md
Created February 28, 2018 11:57
keybase.md

Keybase proof

I hereby claim:

  • I am klickreflex on github.
  • I am klick (https://keybase.io/klick) on keybase.
  • I have a public key ASC6bRK8fBWnMSX5d72tGy9MiliFMqRUpWbhCGTmVaR7_go

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am klickreflex on github.
  • I am klick (https://keybase.io/klick) on keybase.
  • I have a public key ASCLM6K2fxCtIdwAt69qzuwBND88lNWp-eEvLQWkwuDy9Ao

To claim this, I am signing this object:

@klickreflex
klickreflex / _flexboxgrid.scss
Created April 11, 2017 12:13
Flexboxgrid Sass-Port with Helper classes
// Flexbox Grid Sass Adpatation, forked ot remove external dependency
// Source: https://github.com/klickreflex/flexboxgrid-sass
// Set the number of columns you want to use on your layout.
$grid-columns: 12 !default;
// Set the gutter between columns.
$gutter-width: 1rem !default;
// Set a margin for the container sides.
$outer-margin: 2rem !default;
// Create or remove breakpoints for your project
@klickreflex
klickreflex / si_formatters.module.php
Last active July 27, 2016 11:27
Drupal Commerce: Add to Cart OR Download Formatter, https://www.drupal.org/node/2660424
<?php
/**
* @file
* adds a formatter for commerce file fields that shows an add to cart button OR
* a file download link, depending on whether the current user has a license for the file
*
*/
/**
* Implements hook_field_formatter_info().
@klickreflex
klickreflex / .htaccess
Created July 4, 2016 11:59
gzip text with apache
AddType image/svg+xml .svg
AddOutputFilterByType DEFLATE image/svg+xml text/html text/xml text/css text/javascript