Below are general senior level full stack developer Q&As.
List some issues within RESTful APIs that GraphQL attempts to solve.
// addNumbers.js | |
import calculator from 'calculator'; | |
export default function addNumbers(a, b) { | |
return calculator.add(a, b); | |
} | |
// addNumbers.spec.js |
<div style="height: 700px; position: relative; overflow-y: hidden;"> | |
<div | |
style=" | |
height: 46px; | |
width: 150px; | |
position: absolute; | |
background: #536978; | |
z-index: 9999; | |
right: 5px; | |
" |
<?php | |
if ( !function_exists( 'is_rest' ) ) { | |
/** | |
* Checks if the current request is a WP REST API request. | |
* | |
* Case #1: After WP_REST_Request initialisation | |
* Case #2: Support "plain" permalink settings | |
* Case #3: It can happen that WP_Rewrite is not yet initialized, | |
* so do this (wp-settings.php) |
/* | |
|-------------------------------------------------------------------------- | |
| Class has function only | |
|-------------------------------------------------------------------------- | |
*/ | |
use App\Criteria; | |
$jobs = $repository | |
->addCriteria(Criteria\Jobs\Approved::class) |
gcloud container clusters create animals-app \ | |
--zone=us-central1-a \ | |
--machine-type=n1-standard-1 \ | |
--num-nodes=3 \ | |
--no-enable-autorepair |
FROM php:7.2-fpm-alpine3.7 | |
MAINTAINER "Andrew McLagan" | |
RUN apk --no-cache add \ | |
freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev \ | |
wget \ | |
git \ | |
supervisor \ | |
bash \ |
FROM node:8-alpine | |
# Add package manger file and lock file | |
COPY package.json yarn.lock /usr/src | |
# Install dependancies from lockfile and clean package manager cache | |
RUN yarn install --pure-lockfile && \ | |
yarn cache clean | |
# Add your application source |
FROM node:8-alpine | |
MAINTAINER andrewmclagan | |
# ... |