Skip to content

Instantly share code, notes, and snippets.

@xfumihiro
xfumihiro / emojis.json
Created December 30, 2018 17:57 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "👩‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "👩‍👩‍👦‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👧", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👦", "name": "family_children", "shortname": "", "unicode": "", "html": "👨‍👩‍👧‍👦", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👦‍👦", "name": "family_two_boys", "shortname": "", "unicode": "", "html": "👨&zw
@xfumihiro
xfumihiro / coverage.js
Created February 27, 2018 00:34 — forked from ebidel/coverage.js
CSS/JS code coverage during lifecycle of page load
/**
* @author ebidel@ (Eric Bidelman)
* License Apache-2.0
*
* Shows how to use Puppeeteer's code coverage API to measure CSS/JS coverage across
* different points of time during loading. Great for determining if a lazy loading strategy
* is paying off or working correctly.
*
* Install:
* npm i puppeteer chalk cli-table
@xfumihiro
xfumihiro / commit.md
Created November 30, 2017 11:50 — forked from abravalheri/commit.md
RFC: Git Commit Message Guidelines

Commit Message Guidelines

In the last few yers, the number of programmers concerned about writting structured commit messages had dramatically grown. As exposed by Tim Pope in article readable commit messages are easy to follow when looking through the project history. Moreover the AngularJS contributing guides introduced conventions that can be used by automation tools to automatically generate useful documentation, or by developpers during debbuging process.

This document borrow some concepts, conventions and even text mainly from these two sources, extending them in order to provide a sensible guideline for writing commit messages.

@xfumihiro
xfumihiro / sample_unit_test_presenter.java
Created March 19, 2016 23:21
Sample of Unit Testing a Presenter
@Test public void testShowOnLoad() {
mainPresenter = new Main.Presenter();
mainPresenter.takeView(mockMainView);
verify(mockMainView).show(anyString());
}
@xfumihiro
xfumihiro / mock_mortar_scope.java
Last active March 19, 2016 23:25
How to mock MortarScope
@Before public void setUp() {
MockitoAnnotations.initMocks(this);
String bundleServiceName = BundleServiceRunner.SERVICE_NAME;
BundleServiceRunner bundleServiceRunner = new BundleServiceRunner();
String mortarScope = MortarScope.class.getName();
MortarScope mockMortarScope = MortarScope.buildRootScope()
.withService(bundleServiceName, bundleServiceRunner)
.build("MockRoot");