Skip to content

Instantly share code, notes, and snippets.

View kristian-puccio's full-sized avatar

Kristian Puccio kristian-puccio

View GitHub Profile
body {
color: purple;
}
import React from 'react';
class TextInput extends React.Component {
constructor(props: Props) {
super(props);
this.state = {
value: props.input.value || '',
};
}
// @flow
import React from 'react';
declare module 'redux-form' {
declare type InputProps = {
active: boolean,
touched: boolean,
error: ?string,
input: {
name: string,
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
begin;
update offer_requests
set data = '{"field_quote_health_oldest_person":"2","field_frequancy":"monthly","field_postcode":"4169","field_paying":"70","field_health_cover_level":"2","field_health_cover_for":"01","field_health_excess_level":"2","provider_id":"89","field_health_type":"hospital_extra","user_info":{"email":"bjbassos@gmail.com","resource_uri":"/users/493"},"question_data":{"1":[1],"2":[4]},"category_code":"health","providers":[],"questions":[{"question_text":"Main reason for buying","answers":[{"id":1,"text":"I want to compare offers"}]},{"question_text":"What''s important to you","answers":[{"id":4,"text":"Dental"}]}],"currenty_with":"CDH-health"}'
where id = 20;
update offer_requests
set data = '{"field_postcode":"6052","field_mortgage_annual_household":"150","provider_id":"86","field_mortgage_paying":"5.39","field_mortgage_type":"variable","field_mortage_loan_amount":"750000","field_mortgage_estimated_value":"840000","field_mortgage_purpose":"03","user_info":{"email":"bags83@me.com","reso
2013-02-22T04:05:33.663Z - error: Uncaught Exception SyntaxError: Unexpected token u
at Object.parse (native)
at Request.exports.authenticate.postToGatekeeper [as _callback] (/Users/kristian/Documents/Development/MoneyTribe/connect/controllers/welcome.coffee:286:21)
at Request.init.self.callback (/Users/kristian/Documents/Development/MoneyTribe/connect/node_modules/request/main.js:122:22)
at Request.EventEmitter.emit (events.js:96:17)
at ClientRequest.Request.init.self.clientErrorHandler (/Users/kristian/Documents/Development/MoneyTribe/connect/node_modules/request/main.js:225:10)
at ClientRequest.EventEmitter.emit (events.js:96:17)
at Socket.socketErrorListener (http.js:1411:9)
at Socket.EventEmitter.emit (events.js:96:17)
at Socket._destroy.self.errorEmitted (net.js:329:14)
constants = require './../lib/constants'
friendlyNumbers = require './../lib/friendly_numbers'
async = require 'async'
numeral = require('numeral')
exports.create = (req, res) ->
+
+ console.log req.body, "<<<<<< OFFER BODY"
+
category_code = req.body.category_code #for legacy 1.0/1.1