Skip to content

Instantly share code, notes, and snippets.

View colebemis's full-sized avatar

Cole Bemis colebemis

View GitHub Profile
@colebemis
colebemis / 1664172893203.md
Created August 18, 2023 08:25
Steve Jobs' Stanford Commencement Address · Exported from Lumen (https://uselumen.com) on Fri, Aug 18, 2023 at 1:25 AM PDT
@colebemis
colebemis / 1690557523497.md
Created July 29, 2023 08:19
A Philosophy of Software Design · Exported from Lumen (https://uselumen.com) on Sat, Jul 29, 2023 at 1:19 AM PDT
subtitle author isbn recommended_by date_saved
John Ousterhout
978-1732102200
[[2023-07-28]]

A Philosophy of Software Design

source

Get a website's title

async function getTitle(url) {  
  const response = await fetch(`https://api.allorigins.win/get?url=${encodeURIComponent(url)}`)
 const { contents } = await response.json()
@colebemis
colebemis / primer-raycast.md
Last active May 16, 2023 03:02
Primer Raycast Extension README
@colebemis
colebemis / lumen.yml
Last active July 18, 2023 02:26
Exported from Lumen (https://uselumen.com) on Monday, July 17, 2023 at 7:25 pm PST
name: Lumen
on: [push]
permissions:
contents: write
jobs:
lumen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build notes.json
@colebemis
colebemis / example.md
Last active May 4, 2021 21:04
Replace octoface with spinner

Before

<div class="SelectMenu-modal">
  <include-fragment class="SelectMenu-loading">
    <%= octicon "octoface", class: "anim-pulse", width: 32 %>
  </include-fragment>
</div>
@colebemis
colebemis / example.js
Created April 15, 2021 15:36
Custom link color with @primer/components
import {ThemeProvider, theme} from '@primer/components'
import deepmerge from 'deepmerge'
const customTheme = deepmerge(theme, {
colorSchemes: {
light: {
colors: {
text: {
link: 'your color here'
}

Octicons design guidelines

Continued making progress on design guidelines this week:

ezgif com-optimize

Links

Hosted Export plugin

The following updates will be available in Doctocat v0.24.0.

Table of contents

We made updates to the table of contents in Doctocat based on feedback documented in primer/doctocat#137.

Specifically, here's what changed:

  • Reduced the font size of the table of contents items from 16px to 14px
  • Increased the max width of main content area to 960px
  • Limited the depth of the table of contents to h3