var cors_proxy = 'https://cors-anywhere.herokuapp.com/';
$.getJSON(cors_proxy + url, function(data) {
});
var keyword = $('#keyword').val();
var cors_proxy = 'https://cors-anywhere.herokuapp.com/';
$.getJSON(cors_proxy + url, function(data) {
});
var keyword = $('#keyword').val();
| import json | |
| import urllib.parse | |
| import boto3 | |
| import io | |
| import gzip | |
| import re | |
| s3 = boto3.client('s3') | |
| sns = boto3.client('sns') | |
| sns_arn = "arn:replace_me" |
Example of deployment process which I use in my Nuxt.js projects. I usually have 3 components running per project: admin-panel SPA, nuxt.js renderer and JSON API.
This manual is relevant for VPS such as DigitalOcean.com or Vultr.com. It's easier to use things like Now for deployment but for most cases VPS gives more flexebillity needed for projects bigger than a landing page.
UPD: This manual now compatible with nuxt@2.3. For older versions deployment, see revision history.
Let's assume that you have entered fresh installation of Ubuntu instance via SSH. Let's rock:
| FROM php:7.1.2-apache | |
| RUN docker-php-ext-install mysqli |
| /* | |
| * Select2 v3.4.6 styles customization for Flat UI | |
| */ | |
| /*----------------------------------------------- Main select element ------------------------------------------------*/ | |
| .select2-container .select2-choice { | |
| height: 41px; /* Jobsy form controls have 37px total height */ | |
| border: 2px solid #bdc3c7; | |
| border-radius: 6px; | |
| outline: none; | |
| font: 15px/38px "Lato", Liberation Sans, Arial, sans-serif; |
Eric Bidelman has documented some of the common workflows possible with headless Chrome over in https://developers.google.com/web/updates/2017/04/headless-chrome.
If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.
| <html> | |
| <head> | |
| <!-- | |
| In this example, I started with the 5-minute example provided by Google | |
| on the following page: | |
| https://developers.google.com/drive/ | |
| I modified the example code, so that I could write the following |
| [ | |
| {name: 'Afghanistan', code: 'AF'}, | |
| {name: 'Åland Islands', code: 'AX'}, | |
| {name: 'Albania', code: 'AL'}, | |
| {name: 'Algeria', code: 'DZ'}, | |
| {name: 'American Samoa', code: 'AS'}, | |
| {name: 'AndorrA', code: 'AD'}, | |
| {name: 'Angola', code: 'AO'}, | |
| {name: 'Anguilla', code: 'AI'}, | |
| {name: 'Antarctica', code: 'AQ'}, |