Skip to content

Instantly share code, notes, and snippets.

View giovanni1986's full-sized avatar

FG Calderón giovanni1986

View GitHub Profile
@giovanni1986
giovanni1986 / aws-sns-example.js
Created July 12, 2016 15:39 — forked from tmarshall/aws-sns-example.js
aws-sdk sns example, in Node.js
var AWS = require('aws-sdk');
AWS.config.update({
accessKeyId: '{AWS_KEY}',
secretAccessKey: '{AWS_SECRET}',
region: '{SNS_REGION}'
});
var sns = new AWS.SNS();
<?php
add_theme_support('menus');
/**
* http://codex.wordpress.org/Function_Reference/register_nav_menus#Examples
*/
register_nav_menus(array(
'main-menu' => 'Main Menu',
));