Skip to content

Instantly share code, notes, and snippets.

@upex
upex / nginx.conf
Created February 21, 2021 13:59 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@upex
upex / 1_README.md
Created March 31, 2019 08:23 — forked from Daniel15/1_README.md
Complete Google Drive File Picker example

Google Drive File Picker Example

This is an example of how to use the Google Drive file picker and Google Drive API to retrieve files from Google Drive using pure JavaScript. At the time of writing (14th July 2013), Google have good examples for using these two APIs separately, but no documentation on using them together.

Note that this is just sample code, designed to be concise to demonstrate the API. In a production environment, you should include more error handling.

See a demo at http://stuff.dan.cx/js/filepicker/google/

@upex
upex / linklist
Last active November 15, 2017 21:31
[{"value":"9b0257e2-ea26-47d4-90b7-4772d81091db","name":"<p>I give my consent to you to use this data for the purpose of equal opportunities monitoring:</p>"},{"value":"995e1ee2-4301-413b-9d86-69d44b408e38","name":"<p>Nationality:</p>"},{"value":"29958caf-b4b8-4636-9847-8b6af28d6726","name":"<p>Gender:</p>"},{"value":"9e0b6af4-e0ce-4869-814c-5995a52fede1","name":"<p>Religion:</p>"},{"value":"b2db0dbc-96ad-4c6e-97b3-d37fb0682f2b","name":"<p>Ethnic origin:</p>"}]