Skip to content

Instantly share code, notes, and snippets.

@huw
huw / README.md
Last active June 16, 2023 18:54
How to run Notion in desktop mode on iPadOS Safari

How to run Notion in desktop mode on iPadOS Safari

Since iPadOS 13, Notion should show in desktop mode on iPadOS Safari, which is more fully-featured and pretty much fine for touch/pointer input.

In case you're from Notion and reading this, the things I generally don't like about that interface are:

  • Animations are oddly laggy
  • Full-screen popover modal menus instead of popping over contextually
  • Less hover states
  • Larger UI elements (I don't personally need these since I use a trackpad)
  • Small missing features or different UI (in particular around the settings panel)
@tearfulDalvik
tearfulDalvik / nativeMessaging.swift
Last active May 19, 2023 06:01
Chrome Native Messaging in Swift 5
// MARK: Chrome Part
func getInt(_ bytes: [UInt]) -> UInt {
let lt = (bytes[3] << 24) & 0xff000000
let ls = (bytes[2] << 16) & 0x00ff0000
let lf = (bytes[1] << 8) & 0x0000ff00
let lz = (bytes[0] << 0) & 0x000000ff
return lt | ls | lf | lz
}
@iberianpig
iberianpig / .ideavimrc
Created March 30, 2015 14:23
IdeaVIM用のキーマップ
"検索をファイルの先頭へ循環しない
set nowrapscan
"大文字小文字の区別なし
set ignorecase
"検索時に大文字を含んでいたら大/小を区別
set smartcase
"検索対象をハイライト
@alghanmi
alghanmi / podcastgen.py
Last active October 18, 2023 21:49
Podcast Feed Generator -- Generate an podcast RSS feed for a set of media in a directory.
"""Podcast Feed Generator
Generate an podcast RSS feed for a set of media in a directory.
Use the list-extensions argument to see the list of supported extensions. You can add custom extensions using
Usage:
podcastgen.py gen <directory> --title=<podcast-title> --link=<podcast-link> --desc=<description> [--output=<rss-feed-file>] [--feed-link=<feed-url>] [--id=<podcast-id>] [--logo=<image_file>] [--category=<itunes-category> [--subcategory=<itunes-category>]] [--language=<language>] [--use-extension=<ext>]
podcastgen.py list-categories
podcastgen.py list-extensions
podcastgen.py -h | --help
@YujiSoftware
YujiSoftware / Module1.bas
Last active June 9, 2017 01:22
Excel から Redmine の情報を取得する方法
Option Explicit
Const API = "http://192.168.1.101/redmine/issues/"
Sub ボタン1_Click()
Dim i As Integer
i = 2
Do While Cells(i, 1) <> ""
'エラー処理ルーチン無効化