Skip to content

Instantly share code, notes, and snippets.

View 0x5424's full-sized avatar
👻
Soon

Trevor 0x5424

👻
Soon
  • 東京
View GitHub Profile
[
// select all within current bracket scope
{
"keys": ["super+shift+a"],
"command": "bh_key",
"args": {"no_outside_adj": null, "no_block_mode": true, "lines": true, "plugin": {"type": ["__all__"], "command": "bh_modules.bracketselect"}},
},
// delete all within current bracket scope
{
"keys": ["super+shift+backspace"],

Keybase proof

I hereby claim:

  • I am fire-pls on github.
  • I am fire_pls (https://keybase.io/fire_pls) on keybase.
  • I have a public key ASCtXJT2xCcYcs0nsKZ8tmsyKOONKBDXWaIhxC7IfwjwdAo

To claim this, I am signing this object:

@0x5424
0x5424 / i18n.js
Created July 29, 2019 03:14
react-i18next initialization with multiple json files
// A few notes:
// This assumes the 'locale' folder (or w.e you choose to name it) has the following structure:
// ├── locale
// │   ├── NAMESPACE
// │   │   ├── KEY.LOCALE.json
// │   │   └── ...
// │   └── (ignored dir name)
// │   └── ANOTHER_NAMESPACE
// │   ├── KEY.LOCALE.json
// │   └── ...
@0x5424
0x5424 / CustomDropzone.jsx
Last active August 22, 2019 07:48
react-dropzone stateless functional component with hooks
// Requires react >= 16.8 for useDropzone hook
// This is based on react-dropzone 10.1.6, not guaranteed to work with later versions
// Not tested with react-bootstrap, but should be compatible.
import React from 'react';
import PropTypes from 'prop-types';
import { useDropzone } from 'react-dropzone';
import { Row, Col, Media } from 'reactstrap';
export default Object.assign(