Skip to content

Instantly share code, notes, and snippets.

View renzoster's full-sized avatar

Renzo Zamora renzoster

View GitHub Profile
@karuna
karuna / policy.json
Created May 25, 2017 02:02
S3 Bucket Policy
{
"Version": "2008-10-17",
"Id": "",
"Statement": [
{
"Sid": "Allow in my domains",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
@bpmore
bpmore / array.txt
Created August 27, 2015 16:42
Function to print the $menu and $submenu array in WordPress.
//Found here: https://wordpress.org/support/topic/how-to-rename-the-admin-sub-menu-name-of-a-custom-post-category-or-tag
function wptutsplus_change_post_menu_label() {
global $menu;
global $submenu;
echo "<pre>";
print_r($menu);
print_r($submenu);
echo "</pre>";
}
add_action( 'admin_menu', 'wptutsplus_change_post_menu_label' );
@alfchee
alfchee / NumeroALetras.js
Last active April 23, 2024 23:04
Código en JavaScript que convierte números a letras, bastante útil para formularios de documentos contables y similares
/*************************************************************/
// NumeroALetras
// The MIT License (MIT)
//
// Copyright (c) 2015 Luis Alfredo Chee
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights