Skip to content

Instantly share code, notes, and snippets.

@joshferrell
joshferrell / react-player-controls.d.ts
Created February 1, 2019 20:13
React Player Controls Typing
declare module "react-player-controls" {
import * as React from 'react';
interface ButtonProps {
onClick: () => void;
isEnabled?: boolean;
className?: string | null;
style?: React.CSSProperties;
children?: JSX.Element | JSX.Element[];
@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API
@rap2hpoutre
rap2hpoutre / v0.sh
Last active April 26, 2017 21:59
Run this command in your "node_modules" directory
npm list | grep "@0" | wc -l | awk '{print($1" v0 modules found. According to semver, anything may change at any time (http://semver.org/\#spec-item-4)")}'
@wesbos
wesbos / tab-trigger.js
Created November 16, 2015 19:33
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{
@wandernauta
wandernauta / sp
Last active April 16, 2024 15:37
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@paulrouget
paulrouget / .tmux.conf
Created January 27, 2012 17:37
Paul's configurations files
set -g default-terminal "screen-256color"
set -g status-utf8 on
bind M source-file ~/.tmux/mac.session
bind L source-file ~/.tmux/linux.session
# set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# THEME
set -g status-bg black