Skip to content

Instantly share code, notes, and snippets.

View david-guzman's full-sized avatar

David Guzman david-guzman

View GitHub Profile
@quannh-uet
quannh-uet / HDP-2.6.5.0-292.xml
Created March 8, 2021 08:28
Template VDF for a local package repository - Hortonworks HDP 3.4.0.0- CentOS7/RHEL7 x64
<?xml version="1.0"?>
<repository-version xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="version_definition.xsd">
<release>
<type>STANDARD</type>
<stack-id>HDP-3.4</stack-id>
<version>2.6.5.0</version>
<build>292</build>
<compatible-with>2\.[3-6]\.\d+\.\d+</compatible-with>
<release-notes>http://example.com</release-notes>
<display>HDP-2.6.5.0</display>
@a-h
a-h / 01-simple.test.js
Last active December 31, 2023 09:07
Testing styled Material UI components with Enzyme
import React from 'react';
import { shallow } from 'enzyme';
const Item = text => <p>Item {text}</p>;
const Composition = ({ showB }) => (
<p>
<Item text="A" />
{showB && <Item text="B" />}
</p>);