View gist:200601e8d530050c7427e989318d0ede
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
View a.jsx
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>
View info.json
{
"tmsId": "MV008202030000",
"rootId": "12286538",
"subType": "Feature Film",
"title": "A Beautiful Planet",
"releaseYear": 2016,
"releaseDate": "2016-04-29",
"titleLang": "en",
"descriptionLang": "en",
"entityType": "Movie",
View binary_gap.js
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
}
View index.js
import ReactDom from "react-dom"
import Progress from "react-progress-2";
...
ReactDom.render(<Progress.Component>, document.getElementById("progress-container"));
// render routes here.
View index.html
<html>
<head></head>
<body>
<div id="progress-container"></div>
<div id="app-container"></div>
</body>
</html>
View main.js
class Page1 {
componentDidMount() {
load();
}
load() {
Progress.show();
$.get("/endoint").then(this.onLoadSuccess);
}
View gist:cf740e0b3627fed377c6
import cls from "classnames";
class Grid {
render() {
return (
<div className="d-grid" ref="element">
{this.generateContent()}
</div>
);
View layout.jsx
import React from "react";
export default React.createClass({
getInitialState: function() {
return {}
},
render: function() {
return (
<div className="layout"></div>
View gist:3322c198b0104042ee6b
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());