Los Angeles, CA

Blog

How do I convert an existing callback API to promises?

function isIt(){ let someOp = true if(someOp) return ‘its true’ else return ‘no bueno’ } //becomes function isIt() { return new Promise(function(resolve, reject) { let someOp = true if(someOp) resolve(‘its true’) else reject(‘no bueno’) }); } Facebook Comments

react-s3-uploader 403 error

react-s3-uploader 403 error

While looking at react-s3-uploader’s npm documentation it seemed really cool and the fastest way to get the job done so on the react side all we had to add was <ReactS3Uploader className={‘uploader’} signingUrl=”/s3/sign” signingUrlMethod=”GET” accept=”.doc,.docx,.pdf” s3path=”/uploads/” onProgress={this.onProgress} onError={this.onError} onFinish={this.onFinish} uploadRequestHeaders={{ ‘x-amz-acl’: ‘public-read’ }} ref={fileInput => (this.fileInput = fileInput)} contentDisposition=”auto” /> and on the node side…
Read more

JSON array of US states

JSON array of US states

Every form we build we are looking for a JSON or a JS array of US states that we can export from a constant file export const states = [ { text: ‘Alabama’, value: ‘AL’, }, { text: ‘Alaska’, value: ‘AK’, }, { text: ‘American Samoa’, value: ‘AS’, }, { text: ‘Arizona’, value: ‘AZ’, },…
Read more

JSON array of countries

JSON array of countries

Almost every form we build we are looking for a JS array of all countries. Here it is export const countries = [ { text: ‘United States’, value: ‘US’ }, { text: ‘Afghanistan’, value: ‘AF’ }, { text: ‘Åland Islands’, value: ‘AX’ }, { text: ‘Albania’, value: ‘AL’ }, { text: ‘Algeria’, value: ‘DZ’ },…
Read more

How to setup ESLint to use AirBnB’s React rules with a React application

How to setup ESLint to use AirBnB’s React rules with a React application

Setting up ESLint can seem daunting but luckily we can help  We hope you know why you are doing it but if not in short ESLint and Prettier can help your team maintain code quality and same formatting throughout the project. If your company has more than 1 frontend developer you will realize different developers…
Read more

Sample Code – Send Texts using Python

Send a Text Message using Python in 15 seconds

So you are a Python guru or maybe just getting started and you want to do something out of the ordinary by allowing your app to communicate with users real time. You could build an app that sends texts, maybe for an event promoter, they usually want to promote events on the weekend. Let’s say…
Read more

What is CRM? Its not just for businesses

CRM stands for Customer Relationship Management. The term was initially thought of to measure CSAT + marketing efforts and improve/build relationships with your contacts that ended up becoming leads and then customers.Today a CRM solution brings your sales, marketing, support activities together and combines them in one platform View the BuyerView Report by Software Advice…
Read more

2 Way SMS API ASP.Net C#.Net / VB.Net

WHAT IS 2 WAY SMS? 2 way SMS refers to the capability of sending and receiving SMS via a Long code (a 10 digit phone number) or Shortcode(a 4 or 5 digit number) REQUIREMENTS You need a Dedicated 10 digit local number or a Short Code(super expensive 5 digit numbers). Toll-free numbers don’t work. HOW CAN…
Read more

How to send text using c#.net

To send a text programmatically your code needs to make an XHR request to an SMS gateway that will read the text details from your request and then initiate a text to the recipient’s phone number PureText offers a Texting/SMS gateway to which you can make an HTTP GET/POST request with details such as recipient…
Read more

Should Your Business Switch to VoIP?

Voice over internet protocol technology cuts telecommunications costs and improves productivity. But is it right for your business? by PETER ALEXANDER on Entrepreneur.com You’re at an internet café and get an important business call–on your laptop. You’re on the road and receive an urgent voice mail–in your e-mail inbox. Your business has a phone number…
Read more