Skip to content

Instantly share code, notes, and snippets.

@nehaverma8
nehaverma8 / cheat_sheet.md
Last active December 22, 2021 22:49 — forked from nhudinhtuan/cheat_sheet.md
15 days cheat sheet for interviews
{[…Array(5)].map((x, i) =>
<Card key={i} />
)}
@nehaverma8
nehaverma8 / react2ng1.js
Created October 31, 2018 02:34 — forked from aantipov/react2ng1.js
A simple way to convert React components into AngularJS components
import React from "react";
import ReactDOM from "react-dom";
import { fromPairs, map, pick } from "ramda";
/**
* Wraps a React component into Angular component. Returns a new Angular component.
*
* Usage: angular.module('some.module').component('newAngularComponent', react2angular(MyReactComponent))
* (the usage is the same as in similar lib https://github.com/coatue-oss/react2angular)
*/
@nehaverma8
nehaverma8 / index.html
Created July 24, 2018 19:59
Pure CSS multiline text with ellipsis
<h2>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et.</h2>