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
sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) null value in column "assignment" violates not-null constraint | |
DETAIL: Failing row contains (1, f, 2017-08-14 06:47:32.329408, 2017-08-14 06:47:32.329424, , null, sms, 23, , , , , "", , , f, null, , , 0, , , , , , , 2, 40). | |
[SQL: 'INSERT INTO contact_communication (deleted, created_ts, modified_ts, call_metric_id, assignment, type, description, landing_page_code, landing_page_url, direction, ga_cid, raw_data_json, user_agent, salesforce_id, is_voicemail, called_at, service_name, call_status, duration, call_recording_url, call_sid, from_number, to_number, salesforce_created_date, raw_data, created_by, contact_uid) VALUES (%(deleted)s, %(created_ts)s, %(modified_ts)s, %(call_metric_id)s, %(assignment)s, %(type)s, %(description)s, %(landing_page_code)s, %(landing_page_url)s, %(direction)s, %(ga_cid)s, %(raw_data_json)s, %(user_agent)s, %(salesforce_id)s, %(is_voicemail)s, %(called_at)s, %(service_name)s, %(call_status)s, %(duration)s, %(call_recording_ur |
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
let overlay = ( | |
<Popover id='popover-left-0' title="Popover left"> | |
<strong><FormattedMessage id='overlay-title' /></strong><FormattedMessage id='overlay-message' /> | |
</Popover> | |
) | |
<OverlayTrigger trigger="hover" placement="right" overlay={overlay}> | |
<i className={'fa fa-question-circle-o'} aria-hidden='true'> | |
</i> | |
</OverlayTrigger> |
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
{ | |
"tmsId": "MV008202030000", | |
"rootId": "12286538", | |
"subType": "Feature Film", | |
"title": "A Beautiful Planet", | |
"releaseYear": 2016, | |
"releaseDate": "2016-04-29", | |
"titleLang": "en", | |
"descriptionLang": "en", | |
"entityType": "Movie", |
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
function solution(n) { | |
let size = 0 | |
n.toString(2).replace(/1([0]+)1/g, (a, b) => { | |
if(b.length > size) size = b.length | |
}) | |
return size | |
} |
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
import ReactDom from "react-dom" | |
import Progress from "react-progress-2"; | |
... | |
ReactDom.render(<Progress.Component>, document.getElementById("progress-container")); | |
// render routes here. |
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
<html> | |
<head></head> | |
<body> | |
<div id="progress-container"></div> | |
<div id="app-container"></div> | |
</body> | |
</html> |
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
class Page1 { | |
componentDidMount() { | |
load(); | |
} | |
load() { | |
Progress.show(); | |
$.get("/endoint").then(this.onLoadSuccess); | |
} |
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
import cls from "classnames"; | |
class Grid { | |
render() { | |
return ( | |
<div className="d-grid" ref="element"> | |
{this.generateContent()} | |
</div> | |
); |
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
import React from "react"; | |
export default React.createClass({ | |
getInitialState: function() { | |
return {} | |
}, | |
render: function() { | |
return ( | |
<div className="layout"></div> |
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
require('babel-core/register')({ | |
presets: ['react'] | |
}); | |
var React = require('react'), | |
ReactDOMServer = require('react-dom/server'), | |
Layout = require('../js/layout.jsx'); | |
var layoutComponent = React.createFactory(Layout); | |
ReactDOMServer.renderToString(layoutComponent()); |
NewerOlder