Skip to content

Instantly share code, notes, and snippets.

@nitrocode
nitrocode / common-github-cli-gh-commands.md
Last active February 27, 2024 19:21
Common github cli gh commands

Common github cli gh commands

Prereqs

Install

brew install gh
@Leedehai
Leedehai / why-gn-ninja.md
Last active January 5, 2024 21:08
Build system: Ninja and GN

Build system: Ninja and GN

Switching from Make to Ninja and GN across the board.

A build system is what coordinates the build process of various source files and libraries.

Make and CMake

Make is a tried and tested tool, but it does not scale well with large, collaborative projects that often require

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. Clone your gist:
    # make sure to replace `<hash>` with your gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone git@gist.github.com:<hash>.git     # or with ssh
#!/usr/bin/env python
import os
class Spotipy:
"""
Provides a rudimentary interface to the Spotify player on OS X
Supports play/pause, next/previous, shuffle, repeat, volume_up/volume_down/mute commands.
Usage:
import spotipy