This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2023-01-03T08:54:34.404] [ERROR] default - ╷ | |
│ Error: Invalid for_each set argument | |
│ | |
│ on cdk.tf.json line 36, in module.s3-bucket: | |
│ 36: "for_each": "${toset(local.my-list)}", | |
│ ├──────────────── | |
│ │ local.my-list is tuple with 2 elements | |
│ | |
│ The given "for_each" argument value is unsuitable: "for_each" supports maps | |
basic-ec2-stack ╷ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React from 'react'; | |
import Menu from 'ui/components/menus/index.react'; | |
import componentUtil from 'app_modules/ui/util/component'; | |
import MyPickList from 'MyPickList'; | |
import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; | |
const pf = componentUtil.prefix; | |
const PT = React.PropTypes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
<meta charset="utf-8"/> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<title>Modal example</title> | |
<link href="../../../../../node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var DisabledList = React.createClass({ | |
// proptypes tell the parent widget what to pass into it | |
// the DropdownList will inspect propTypes and _.pick() those keys to pass in | |
propTypes: { | |
disabledItems: React.PropTypes.array, | |
...List.type.propTypes, | |
}, | |
componentWillMount(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Varint 1: use bind function https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind | |
var val = 1; | |
var myObject = { | |
val: 11, | |
getVal: function() { return this.val; } | |
}; | |
console.log(module.getVal()); // 11 | |
var getVal = myObject.getVal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(express.static(__dirname + './../public/default')); | |
//Session support | |
app.use(express.cookieParser()); | |
app.use(express.session({ | |
key : 'sid', | |
secret : sessionSecret, | |
//1h * 24(hours per day) * 365(days per year) | |
cookie : { | |
expires : new Date(Date.now() + 3600000 * 24 * 365) |