Skip to content

Instantly share code, notes, and snippets.

@AntonNiklasson
AntonNiklasson / list_days_in_week.js
Last active February 27, 2024 21:29
Generate a list of the daily notes for a weekly note template in Obsidian
module.exports = (title) => {
if (!/^\d{4}-W\d{2}$/.test(title)) {
throw Error(`Invalid file title. Received: ${title}`);
}
const [year, week] = title.split("-");
const days = getISOWeekDates(week.substr(1), year);
return days
.map((day) =>
@AntonNiklasson
AntonNiklasson / tailwind-color-variables.css
Created May 3, 2021 09:59
Tailwind Default Colors as CSS Variables
:root {
--gray-50: #F9FAFB;
--gray-100: #F3F4F6;
--gray-200: #E5E7EB;
--gray-300: #D1D5DB;
--gray-400: #9CA3AF;
--gray-500: #6B7280;
--gray-600: #4B5563;
--gray-700: #374151;
--gray-800: #1F2937;
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',

Keybase proof

I hereby claim:

  • I am antonniklasson on github.
  • I am antonniklasson (https://keybase.io/antonniklasson) on keybase.
  • I have a public key ASCRUoVgObEUjD3ZiFdc_RMMFzH2D-TCyVU93aXOTZ6nMgo

To claim this, I am signing this object:

mogrify -resize 700x700 -format jpg *.jpg