Skip to content

Instantly share code, notes, and snippets.

@0x1628
0x1628 / PhutilLarkAuthAdapter.php
Created September 24, 2020 04:02
Add Lark OAuth login for phabricator
<?php
/**
* Authentication adapter for Lark OAuth2.
*/
final class PhutilLarkAuthAdapter extends PhutilOAuthAuthAdapter {
private $appAccessToken;
public function getAdapterType() {
return 'Lark';
@0x1628
0x1628 / keybindings.json
Last active August 9, 2019 16:49
vscode
[
{
"key": "ctrl+alt+k",
"command": "editor.debug.action.showDebugHover",
"when": "editorTextFocus && inDebugMode"
},
{
"key": "ctrl+k ctrl+i",
"command": "-editor.debug.action.showDebugHover",
"when": "editorTextFocus && inDebugMode"
@0x1628
0x1628 / react-touchtap.js
Created June 29, 2017 07:20
Add touchTapEvent to React
const ReactInjection = require('react-dom/lib/ReactInjection')
const TapEventPlugin = require('react-dom/lib/TapEventPlugin')
ReactInjection.EventPluginHub.injectEventPluginsByName({
TapEventPlugin,
})
unbind C-b
set-option -g prefix C-x
bind-key C-x send-prefix
# panes
set -g pane-border-style fg=colour238
set -g pane-active-border-style fg=colour191
## Status bar design
# status line