Skip to content

Instantly share code, notes, and snippets.

View inglesuniversal's full-sized avatar

Hugo Barbosa inglesuniversal

  • Chicago, IL. USA
View GitHub Profile
@blkdr
blkdr / NumberAsString.js
Last active March 4, 2023 16:09
Código en JavaScript que convierte números a letras. Basado en gist de ~alfchee con modificaciones.
const Unidades = num => {
switch (num) {
case 1:
return 'UN';
case 2:
return 'DOS';
case 3:
return 'TRES';
case 4:
return 'CUATRO';
@tzmartin
tzmartin / embedded-file-viewer.md
Last active April 15, 2024 06:30
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@rantastic
rantastic / mail.php
Created April 16, 2012 22:17
PHP: Send email using amazon SES
<?php
//class docs: http://www.orderingdisorder.com/aws/ses/
require_once('ses.php');
//get credentials at http://aws.amazon.com My Account / Console > Security Credentials
$ses = new SimpleEmailService('ACCESSkeyID', 'SECRETaccessKEY');
$m = new SimpleEmailServiceMessage();