Skip to content

Instantly share code, notes, and snippets.

View blackcater's full-sized avatar

Elon Tang blackcater

View GitHub Profile
@kshetline
kshetline / github.css
Last active October 9, 2025 03:03
Github styling for Jetbrains/Intellij Markdown Preview -- A Very Close Match
/*
This CSS allows the Jetbrains/Intellij Markdown Preview to closely match the appearance of Markdown
documentation as viewed on GitHub.
Both the light GitHub theme and the dark theme are included here, although only the light theme works by
default. The dark theme is deactivated with an as-yet-unsupported "@media (prefers-color-scheme: dark)"
media query. Simply delete and/or comment out the light theme colors below, and then remove the enclosing
media query from the dark theme colors, in order to use those colors instead.
Color matching GitHub's syntax coloring inside code fences remains a problem. The Jetbrains preview
@hackjutsu
hackjutsu / .leptonrc
Last active December 7, 2022 01:01
[Template for .leptonrc] This is a template for Lepton's configuration file. Please place it on your home directory. #lepton
{
"theme": "light",
"autoUpdate": false,
"snippet": {
"expanded": true,
"newSnippetPrivate": false,
"sorting": "updated_at",
"sortingReverse": true
},
"editor" : {
@Rich-Harris
Rich-Harris / README.md
Last active November 1, 2024 12:15
Unifying Rollup options

Rollup 0.48 introduces a few changes to the options object, because the current options are confusingly different between the CLI and the options exported by your config file.

Changes to the config file

  • entry is now input
  • sourceMap and sourceMapFile are now sourcemap and sourcemapFile (note casing)
  • moduleName is now name
  • useStrict is now strict

The dest and format options are now grouped together as a single output: { file, format, ... } object. output can also be an array of { file, format, ... } objects, in which case it behaves similarly to the current targets. Other output options — exports, paths and so on — can be added to the output object (though they will fall back to their top-level namesakes, if unspecified).

@kevincennis
kevincennis / v8.md
Last active October 7, 2025 21:46
V8 Installation and d8 shell usage

Installing V8 on a Mac

Prerequisites

  • Install Xcode (Avaliable on the Mac App Store)
  • Install Xcode Command Line Tools (Preferences > Downloads)
  • Install depot_tools
    • $ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
    • $ nano ~/.zshrc
    • Add path=('/path/to/depot_tools' $path)
@d3m3vilurr
d3m3vilurr / feedly_api.md
Last active March 22, 2025 21:12
Unofficial Feedly API Document

IDs

  • user_id - user/:uid
  • feed_id - feed/:feed_uri
  • category_id - :user_id/category/:category (special category: global.all, global.uncategorized)
  • tag_id - :user_id/tag/:tag (special tag: global.saved)

APIs

http://cloud.feedly.com/:version/:api

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: