Add class
render(): JSX.Element {
const {classes, title} = this.props;
return (
<>
<TextField
className={classes.TextField}
...
Add class
render(): JSX.Element {
const {classes, title} = this.props;
return (
<>
<TextField
className={classes.TextField}
...
const test = { | |
tree: { | |
branch1: 10, | |
branch2: 20, | |
} | |
}; | |
const copies = {}; | |
for (let i = 0; i < 10; i++) { |
const Hawk = require('@hapi/hawk'); | |
const request = require('request'); | |
const API_KEY = 'KEY'; | |
const API_KEY_ID = 'ID'; | |
const credentials = { | |
id: API_KEY_ID, | |
key: API_KEY, | |
algorithm: 'sha256' |
// Compliant Promise/A+ implementation: https://www.promisejs.org/implementing/ | |
// Alternative implementation: https://dexie.org/docs/Promise/Promise | |
// Checkout the Node.js Event Loop: https://www.youtube.com/watch?v=PNa9OMajw9w | |
// Bluebird breaking change: http://bluebirdjs.com/docs/new-in-bluebird-3.html#cancellation-overhaul | |
const Promise = require('bluebird'); | |
Promise.config({ | |
cancellation: true, | |
}); |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link | |
rel="stylesheet" | |
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css" | |
> | |
<style> |
<f:comment>Regular syntax</f:comment> | |
<v:condition.iterator.contains needle="<the page id>" haystack="{v:page.rootline() -> v:iterator.extract(key: 'uid')}"> | |
<f:then></f:then> | |
<f:else></f:else> | |
</v:condition.iterator.contains> | |
<f:comment>Inline syntax</f:comment> | |
{v:condition.iterator.contains( |
Playlist: https://www.youtube.com/playlist?list=PLCbdBdyNHZXLX9p_F8WCPwXHn67QlstZ9 | |
Video in Playlist: https://www.youtube.com/watch?v=qZN0Lo-f3iE&list=PLCbdBdyNHZXLX9p_F8WCPwXHn67QlstZ9 | |
Video: https://www.youtube.com/watch?v=qZN0Lo-f3iE |
const payload = {name: 'text'}; | |
(require('fs')).writeFileSync(`dump-${Date.now()}.json`, JSON.stringify(payload)); |
-- Inspect the generated statements before you actually execute: comment RAISE and uncomment the EXECUTE | |
DO | |
$do$ | |
DECLARE | |
_tbl text; | |
BEGIN | |
FOR _tbl IN | |
SELECT c.oid::regclass::text -- escape identifier and schema-qualify! | |
FROM pg_catalog.pg_class c | |
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace |
package main | |
import ( | |
"runtime" | |
"fmt" | |
"time" | |
) | |
func main() { | |
// Print our starting memory usage (should be around 0mb) |