Skip to content

Instantly share code, notes, and snippets.

import React, { ComponentType } from 'react';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import hoistNonReactStatics from 'hoist-non-react-statics';
// Helper function to get the display name of the wrapped component
const getDisplayName = (WrappedComponent: ComponentType<any>): string =>
WrappedComponent.displayName || WrappedComponent.name || 'Component';
// Create the HOC
const withGestureHandlerRootView = <P extends object>(
@spacesuitdiver
spacesuitdiver / robbyrussell.zsh_theme
Created October 9, 2018 17:15 — forked from mikehazell/robbyrussell.zsh_theme
oh-my-zsh Default Theme plus Node version info
# oh-my-zsh Theme
# Default robbyrussell theme with node version info.
# Installation: place this file in .oh-my-zsh/custom/themes/robbyrussell.zsh_theme
function node_prompt_version {
if which node &> /dev/null; then
echo "%{$fg_bold[blue]%}node(%{$fg[red]%}$(node -v)%{$fg[blue]%}) %{$reset_color%}"
fi
}
This file has been truncated, but you can view the full file.
/*!
* ionic.bundle.js is a concatenation of:
* ionic.js, angular.js, angular-animate.js,
* angular-sanitize.js, angular-ui-router.js,
* and ionic-angular.js
*/
/*!
* Copyright 2015 Drifty Co.
* http://drifty.com/
'use strict';
exports.up = function(knex, Promise) {
knex.transaction(trx => {
trx('requestlog').truncate()
.then(() => {
trx.schema.table('requestlog', function (table) {
table.uuid('uuid');
})
1) UserController GET /users should return a collection:
Uncaught AssertionError: expected [ Array(2) ] to deeply equal [ Array(2) ]
+ expected - actual
[
{
"createdAt": "2015-10-29T23:22:13.254Z"
+ "email": "[email protected]"
+ "first_name": "Admin"