What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-31 06:05:22
filterBlacklist = ( ); filterWhitelist = ( ); restrictWeb = 1; useContentFilter = 0; useContentFilterOverrides = 0; whitelistEnabled = 0;
- (UIWebView *)webView { return (UIWebView *) self.view; } - (void)loadView { self.view = [[UIWebView alloc] initWithFrame:CGRectZero]; self.webView.delegate = self; self.webView.allowsInlineMediaPlayback = YES; NSString *htmlStri... Add solution -
Javascript 2022-01-22 20:31:11
immutability helper
import React, { Component } from "react"; import "./styles.css"; import update from "immutability-helper"; class App extends Component { state = { pizzas: { margherita: { toppings: ["tomato sauce&quo... Add solution -
Java 2021-11-07 20:31:12
java write string
System.out.println("Hello Console"); Add solution -
Other 2021-10-25 11:23:14
map a multi dimensional array
//This is in React framework! import "./styles.css"; let sheets = []; const sheet1 = { name: "sheet 1", cells: [{ cellAddress: "A1", cellName: "customers" }] }; const sheet2 = { name: "sheet 2", ... Add solution -
Javascript 2021-10-13 04:27:06
console.log
console.log('Hello World'); console.error('This is an error'); console.warn('This is a warning'); console.dir(document); console.log(document.URL); console.table([{name: 'Anthony', email: 'test.com', age: 33}]); console.clear(); console.group('Say Hello'... Add solution -
Javascript 2021-09-19 13:55:03
use theme in class component material ui
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; const useStyles = makeStyles((theme) => ({ root: { backgroundColor: theme.palette.secondary.main } })); export default function App() { co... Add solution -
Shell/Bash 2021-09-05 01:06:02
bash "=~" example
$ [[ 45 =~ [0-9]+ ]] && echo "45 contains digits" 45 contains digits $ [[ "hello" =~ [0-9]+ ]] && echo "hello doesnt contains digits" $ [[ "hello" =~ [a-z]+ ]] && echo "hello contains a... Add solution