Skip to content

Instantly share code, notes, and snippets.

View leordev's full-sized avatar

Leo Ribeiro leordev

View GitHub Profile
git clone https://github.com/benjaminogles/relay.git benjamin-relay
cd benjamin-relay
cd packages
cd babel-plugin-relay
npm install
cd ..
cd react-relay
npm install
cd ..
cd relay-compiler
<?php
add_action('add_meta_boxes', 'maximize_lead_mb_add');
function maximize_lead_mb_add() {
add_meta_box(
'maximize_lead-id',
'Maximize Lead Page',
'maximize_lead_cb',
'page',
(ns api-project.cors)
(def cors-headers
"Generic CORS headers"
{"Access-Control-Allow-Origin" "*"
"Access-Control-Allow-Headers" "*"
"Access-Control-Allow-Methods" "GET"})
(defn preflight?
"Returns true if the request is a preflight request"