What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-17 19:23:20
either function monad in javascript
class Monad { // pure :: a -> M a pure = () => { throw "pure method needs to be implemented" } // flatMap :: # M a -> (a -> M b) -> M b flatMap = (x) => { throw "flatMap method needs to be implemented" } ... Add solution -
Other 2021-11-17 07:05:14
HashLocationStrategy
// routing export const routing = RouterModule.forRoot(routes, { useHash: true }); //for enabling production mode, before loading root NgModule, import { enableProdMode } from '@angular/core'; if (<condition to enable production mode>) { enabl... Add solution -
TypeScript 2021-11-13 19:48:22
material ui styled components with theme
import { styled, withTheme } from "@material-ui/core/styles" import Button from "@material-ui/core/Button" export const StyledButton= styled(withTheme(Button))(props => ({ background: props.theme.palette.background.paper, })) Add solution