Skip to content

Instantly share code, notes, and snippets.

@hmps
hmps / 0-README.md
Last active February 23, 2018 07:42
Sharing components between React web and Native - HOC
@hmps
hmps / 0-README.md
Last active February 23, 2018 07:42
Sharing components between React web and Native - Wrapper
@hmps
hmps / 1-README.md
Last active February 21, 2018 16:21
Sharing components between React web and Native

Sharing components between React Web and Native

- src
  | - components
  | - common
  | - native
  | - web
@hmps
hmps / Instructions.md
Last active February 8, 2018 12:34
Docly triage

Docly triage

A big part of our service is to have users take part in the triage process by letting them answers questions about their problems and symptoms. This can be done in many ways, and we will try to craft a simplistic solution for this.

Implementation

Create an implementation that runs in a browser, using React(?).

@hmps
hmps / post-merge
Last active February 1, 2018 08:06
Post-merge githook to update dependencies for a React Native project
#!/bin/sh
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "Checking for changes in $1"
@hmps
hmps / index.js
Created September 22, 2017 09:36
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
var UrlPattern = require('url-pattern');
guidesPattern = new UrlPattern('/guides/:id*');
console.log(guidesPattern.match());
console.log(guidesPattern.match(''));
@hmps
hmps / package.json
Last active December 13, 2016 11:47
VSCode JS Snippets
{
"name": "JSSnippets",
"description": "Code snippets for JavaScript",
"version": "1.0.0",
"displayName": "JavaScript code snippets",
"publisher": "Hmps",
"icon": "images/javascript.png",
"license": "MIT",
"repository": {
"type": "git",
@hmps
hmps / vscode.js
Created October 25, 2016 06:40
VS Code settings
// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "Fira Mono for Powerline",
"editor.fontSize": "14px",
"editor.tabSize": 2,
"editor.snippetSuggestions": "top",
"editor.tabCompletion": true,
"editor.formatOnSave": true,
"editor.lineNumbers": "relative",
"editor.renderIndentGuides": true,