This file contains hidden or 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
| $client = new http\Client; | |
| $request = new http\Client\Request; | |
| $body = new http\Message\Body; | |
| $body->append('{ | |
| "message": "Hey {firstName},\\nIt was great meeting you last week at the party. We'd love to have you back at the next one!\\n\\nBest,\\n-Jackie", | |
| "handwriting": <STRING - handwriting id>, | |
| "card": <STRING - stationery id>, | |
| "recipients": [ | |
| { |
This file contains hidden or 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 { Component } from 'react' | |
| import Head from 'next/head' | |
| const CLOUD_NAME = '<name here>' | |
| export default class ImageUploader extends Component { | |
| constructor(props) { | |
| super(props) | |
| this.uploader = null |
This file contains hidden or 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
| angular.module('app').directive('googleplace', [ function() { | |
| return { | |
| require: 'ngModel', | |
| link: function(scope, element, attrs, model) { | |
| var options = { | |
| types: ['(cities)'], | |
| componentRestrictions: {} | |
| }; | |
| scope.gPlace = new google.maps.places.Autocomplete(element[0], options); |