Skip to content

Instantly share code, notes, and snippets.

Robert Raiford rob3c

Block or report user

Report or block rob3c

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rob3c / typescript-pattern-matching.ts
Created Nov 10, 2016
TypeScript pattern matching proof-of-concept
View typescript-pattern-matching.ts
// preserved from my comment in this issue:
interface Type<T> { new(...args): T }
interface CaseResult<R> {
success: boolean;
result: R;
interface CaseFn<R> { (value: any): CaseResult<R> }
rob3c /
Last active Nov 16, 2018
Using @ngrx/store-devtools remotely with Ionic 2

Ok, I have on-device remote store debugging working with Ionic 2. Unfortunately, time-travel and state import doesn't work with store-devtools yet (see and, but at least the Inspector, Log Monitor and Graph is working remotely. Here's how:

First, add to the project:

> npm install --save-dev remotedev

Then add these devtools proxy wrapper classes to the project. They provide the same interface as the browser extension so store-devtools will think it's just talking to the chrome extension. I left in the trace debug logging so you can clearly see what's happening in the console, but it's easy to remove if you want.


rob3c / vscode_keybindings.json
Created Aug 29, 2016
Visual Studio Code (vscode) custom key bindings
View vscode_keybindings.json
// Place your key bindings in this file to overwrite the defaults
{ "key": "ctrl+k f", "command": "" }, // avoid accident hitting f instead of h
{ "key": "ctrl+k h", "command": "workbench.action.moveActiveEditorLeft" },
{ "key": "ctrl+k l", "command": "workbench.action.moveActiveEditorRight" },
{ "key": "ctrl+w", "command": "" }, // disable
{ "key": "ctrl+numpad_add", "command": "editor.unfold",
"when": "editorFocus" },
{ "key": "ctrl+numpad_subtract", "command": "editor.fold",
rob3c / vscode_settings.json
Last active Sep 8, 2016
Visual Studio Code (vscode) Custom Settings
View vscode_settings.json
// Place your settings in this file to overwrite the default settings
//-------- Editor configuration --------
"editor.detectIndentation": false,
"editor.fontSize": 12,
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.wrappingColumn": 93,
"editor.wrappingIndent": "none",
rob3c / karabiner_private.xml
Last active Aug 29, 2016
Karabiner config
View karabiner_private.xml
<?xml version="1.0"?>
<!-- -->
rob3c / .cvimrc
Last active Nov 10, 2017
cVim settings
View .cvimrc
let blacklists = ["http://localhost/*"]
set autoupdategist
set numerichints
set typelinkhints
map b :buffer<Space>
map d closeTab
map D :exec dJ<CR>
map F createActiveTabbedHint
You can’t perform that action at this time.