<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
// DESIRED (pending bikeshedding): | |
// Create using special factory function. Will automatically create `ko.observable`s, `ko.observableArray`s, and | |
// `ko.computed`s for you, but hide them behind getters/setters. | |
var viewModel = es5ViewModel({ | |
firstName: "Luke", | |
lastName: "Skywalker", | |
fullName: function () { | |
return this.fullName + this.lastName; | |
}, |
<?xml version="1.0" encoding="utf-8"?> | |
<project name="sample-require-js" default="" basedir="."> | |
<!-- properties --> | |
<property name="r.js" value="_build/rjs/r.js" /> | |
<property name="closure.jar" value="_build/closure/compiler.jar" /> | |
<property name="rhino.jar" value="_build/rhino/js.jar" /> | |
<property name="js.build" value="_build/js.build.js" /> | |
<property name="css.build" value="_build/css.build.js" /> |
/* | |
* Fabrizio Calderan, twitter @fcalderan, 2010.11.02 | |
* I had an idea: could Inception movie be explained by a few javascript closures | |
* and variable resolution scope (just for fun)? | |
* | |
* Activate javascript console =) | |
*/ | |
<script> | |
console.group("inception movie"); |
import hash from 'object-hash'; | |
import sizeof from 'object-sizeof'; | |
import lruCache from 'lru-cache'; | |
const cacheEnabled = true; | |
const cacheMaxAge = 30 * 60 * 1000; | |
const cacheMaxSize = 128 * 1000 * 1000; | |
const getCacheKey = config => hash({ | |
method: config.method, |
name: mysite2 | |
recipe: wordpress | |
config: | |
php: '7.2' | |
via: nginx | |
webroot: public | |
xdebug: true | |
conf: | |
php: .vscode/php.ini | |
proxy: |
/** | |
* Get content from wordpress via REST Api | |
*/ | |
const config = require('../nuxt.config.js') | |
const axios = require('axios') | |
// always call the proxy here : | |
const endpoint = config.env.proxyApiBaseUrl | |
/** | |
* @param {int} perPage : number of post to return per page |
RSpec.shared_context "without foreign key constraints", :disable_foreign_keys do | |
def without_foreign_key_checks | |
DB.run('SET foreign_key_checks = 0;') | |
yield | |
ensure | |
DB.run('SET foreign_key_checks = 1;') | |
end | |
around(:example) { |ex| without_foreign_key_checks(&ex) } | |
end |
# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed. | |
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies. | |
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module | |
# | |
# Deployment structure | |
# | |
# SERVER: | |
# /etc/init.d/nginx (1. nginx) | |
# /home/app/public_html/app_production/current (Capistrano directory) | |
# |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |