Skip to content

Instantly share code, notes, and snippets.

View gaetansenn's full-sized avatar
🎯
Working on vunux module for ui components

Gaetan SENN gaetansenn

🎯
Working on vunux module for ui components
View GitHub Profile
@brandonjp
brandonjp / findOverflowParents.js
Last active May 10, 2024 17:30
find overflow:hidden ancestors
// when you're trying to use `position:sticky` on an element
// you'll have trouble if any parent/ancestor element has
// overflow set to anything other than "visible" (such as: auto,hidden,overlay,scroll)
// & turns out if a parent is `display:flex` it might need some love
// (to remedy this you can set the `align-self` of your sticky element)
// see here for how the display & align-self properties affect: http://bit.ly/2ZaRu4o
// so, to find those troublesome parents...
// copy & paste this into Chrome Inspector/Dev Tools console
// (and be sure to change the #stickyElement below, if needed)
@subfuzion
subfuzion / global-gitignore.md
Last active May 29, 2024 12:00
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.

@rogeruiz
rogeruiz / index.js
Created May 23, 2014 14:21
Sending email via NodeJS. Docs are here: http://www.nodemailer.com/docs/usage-example
var nodemailer = require("nodemailer");
// create reusable transport method (opens pool of SMTP connections)
var smtpTransport = nodemailer.createTransport("SMTP",{
host: "mail.gandi.net", // hostname
secureConnection: true, // use SSL
port: 465, // port for secure SMTP
auth: {
user: "email@address",
pass: "myPassword"