Skip to content

Instantly share code, notes, and snippets.

View milworm's full-sized avatar
🇺🇦
Sometimes I don't code

Ruslan P. milworm

🇺🇦
Sometimes I don't code
View GitHub Profile
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
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>
{
"tmsId": "MV008202030000",
"rootId": "12286538",
"subType": "Feature Film",
"title": "A Beautiful Planet",
"releaseYear": 2016,
"releaseDate": "2016-04-29",
"titleLang": "en",
"descriptionLang": "en",
"entityType": "Movie",
@milworm
milworm / binary_gap.js
Last active November 25, 2016 07:00
binary_gap
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
}
@milworm
milworm / index.js
Last active February 18, 2016 02:46
import ReactDom from "react-dom"
import Progress from "react-progress-2";
...
ReactDom.render(<Progress.Component>, document.getElementById("progress-container"));
// render routes here.
@milworm
milworm / index.html
Last active February 18, 2016 02:44
<html>
<head></head>
<body>
<div id="progress-container"></div>
<div id="app-container"></div>
</body>
</html>
@milworm
milworm / main.js
Created February 18, 2016 02:30
react-progress-2-page
class Page1 {
componentDidMount() {
load();
}
load() {
Progress.show();
$.get("/endoint").then(this.onLoadSuccess);
}
import cls from "classnames";
class Grid {
render() {
return (
<div className="d-grid" ref="element">
{this.generateContent()}
</div>
);
1.The deletion confirmation popup doesn’t close; instead some imprevisible behavior append.
2. Now you need to click on the back button twice to go back on the page where you were before going to the home page. Also pressing on the back button the first time doesn’t check or uncheck the `show blocks` checkbox
3. Go to the home page
Click on a shortcut
Click on the edit menu on the key header to bring the edit menu popup
Click on the edit menu button => nothing happen
added error-handler to view bugs using alert (ios)
fixed bug with splitting the text in IE10