Skip to content

Instantly share code, notes, and snippets.

@manuelbieh
manuelbieh / sequelize-schema-file-generator.js
Last active January 16, 2024 19:25
Automatically generates migration files from your sequelize models
import * as models from "models";
import Sequelize from "sequelize";
import fs from "fs";
delete models.default;
const sequelize = new Sequelize(
'',
'',
'', {
@khalilovcmd
khalilovcmd / lodashify.js
Created December 19, 2015 15:20
to import lodash into chrome dev tools console
var el = document.createElement('script');
el.src = "https://raw.githubusercontent.com/lodash/lodash/3.10.1/lodash.min.js";
el.type = "text/javascript";
document.head.appendChild(el)
@christophercliff
christophercliff / description.md
Last active February 24, 2019 23:30
Stream email attachments to S3 with Mailgun, node.js.
@masonoise
masonoise / MailgunS3Attachment.rb
Created May 21, 2013 23:58
Wrapper class to enable using AWS S3 objects as attachments when sending mail via the Mailgun REST interface using RestClient. This allows reading directly from the S3 object instead of creating an intermediate temp file.
#
# This class will wrap an S3 object and provide the methods that the Mailgun library expects in order
# to use the S3 object for sending a mail attachment.
#
# Use as follows:
#
# data = Multimap.new
# data[:from] = "My Self <no-reply@example.com>"
# data[:subject] = "Subject"
# data[:to] = "#{recipients.join(', ')}"