<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:
var gulp = require('gulp') | |
, jade = require('gulp-jade') | |
, stylus = require('gulp-stylus') | |
, livereload = require('gulp-livereload') | |
, autoprefixer = require('autoprefixer-stylus'); | |
gulp.task('templates', function() { | |
return gulp.src('./index.jade') | |
.pipe(jade({ | |
pretty: true |
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
app.all '*', (req, res, next) -> | |
return next! if not req.get 'Origin' | |
allowedOrigins = [ | |
'http://localhost:3000' | |
] | |
origin = req.get 'Origin' | |
if _.contains(allowedOrigins, origin) | |
res.header 'Access-Control-Allow-Origin', origin | |
res.header 'Access-Control-Allow-Methods', 'GET,POST,PUT,DELETE,OPTIONS' | |
res.header 'Access-Control-Allow-Headers', 'Content-Type, Accept, Cache-Control, Pragma, Origin, Authorization, X-Tracklist-User-Id, X-Tracklist-Session-Id, X-Requested-With' |
server { | |
listen 443; | |
ssl on; | |
ssl_certificate /etc/ssl/certs/tracklist.crt; | |
ssl_certificate_key /etc/ssl/private/tracklist.key; | |
server_name proxy.yourapp.com; | |
location / { | |
allow all; | |
proxy_set_header X_FORWARDED_PROTO https; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
server { | |
listen 443 ssl; | |
ssl on; | |
ssl_certificate /etc/ssl/certs/key.crt; | |
ssl_certificate_key /etc/ssl/private/key.key; | |
server_name hostname.tld; | |
location / { | |
allow 127.0.0.1; | |
#allow all; | |
deny all; |
import express from "express"; | |
/** | |
* Takes a route handling function and returns a function | |
* that wraps it after first checking that the strings in | |
* `reserved` are not part of `req.body`. Used for ensuring | |
* create and update requests do not overwrite server-generated | |
* values. | |
*/ | |
function checkReservedParams(routeHandler, ...reserved) { |
I hereby claim:
To claim this, I am signing this object:
const html = require('bel') | |
const morph = require('nanomorph') | |
class PlayCount { | |
constructor(options) { | |
const { count, fps } = options | |
this.options = options | |
this.timings = { | |
count, |
const html = require('bel') | |
const button = html` | |
<button class="f1 w-100" ondblclick=${handleDoubleClick} ontouchstart=${handleTouchStart} ontouchend=${handleTouchEnd}>Double click me</button> | |
` | |
const timings = { | |
touchDuration: 500 | |
} |