Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Hossein Karami HosseinKarami

🏠
Working from home
Block or report user

Report or block HosseinKarami

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@katydecorah
katydecorah / email-drafter.js
Last active Jul 31, 2019
Draft emails in Gmail from a Google spreadsheet and a Google doc template: https://katydecorah.com/code/google-sheets-to-gmail-template/
View email-drafter.js
// What is the Google Document ID for your email template?
var googleDocId = "abcd0000abcd0000abcd0000abcd0000";
// Which column has the email address? Enter the column row header exactly.
var emailField = 'Email';
// What is the subject line?
var emailSubject = 'You\'re bringing {Type}!';
// Which column is the indicator for email drafted? Enter the column row header exactly.
var emailStatus = 'Date drafted';
/* ----------------------------------- */
@omarkdev
omarkdev / sendContactVanilla.js
Created Jan 31, 2017
Send form contact with vanilla js
View sendContactVanilla.js
var formFooter = document.getElementById("form-footer");
formFooter.addEventListener("submit", function(evt) {
evt.preventDefault();
formFooter.classList.add("form-submit");
var name = document.getElementById("name");
var email = document.getElementById("email");
var telephone = document.getElementById("telephone");
var cellphone = document.getElementById("cellphone");
@runspired
runspired / form.html
Created May 23, 2016
How to turn off password and email/username autocomplete.
View form.html
<!--
<form autocomplete="off"> will turn off autocomplete for the form in most browsers
except for username/email/password fields
-->
<form autocomplete="off">
<!-- fake fields are a workaround for chrome/opera autofill getting the wrong fields -->
<input id="username" style="display:none" type="text" name="fakeusernameremembered">
<input id="password" style="display:none" type="password" name="fakepasswordremembered">
@stuartduff
stuartduff / storefront-custom-homepage-shortcode-section.php
Created Dec 8, 2015
Add a custom shortcode section to the storefront themes homepage template.
View storefront-custom-homepage-shortcode-section.php
function sf_output_custom_shortcode_section() {
echo '<section class="storefront-product-section storefront-product-category">';
echo '<h2 class="section-title">' . __( 'Music Category', 'storefront' ) . '</h2>';
echo do_shortcode( '[product_category category="music" columns="4" per_page="4"]' );
echo '</section>';
@tahirtaous
tahirtaous / Add Custom CSS to Anchors links in WordPress
Last active May 23, 2019
How to Add Custom CSS Class Directly to Menu Item (Anchors) Links in WordPress Theme
View Add Custom CSS to Anchors links in WordPress
@joaocunha
joaocunha / How To Hide The Select Arrow On Firefox.md
Last active Feb 25, 2019
How to hide <select> dropdown's arrow in Firefox when using "-moz-appearance: none;".
View How To Hide The Select Arrow On Firefox.md

This is no longer a bug. I'm keeping the gist for historical reasons, as it helped to get it fixed. Make sure to read the notes by the end of the post.

How to remove hide the select arrow in Firefox using -moz-appearance:none;

TL;DR (or, the fix)

  1. Set -moz-appearance to none. This will "reset" the styling of the element;
  2. Set text-indent to 0.01px. This will "push" the text a tiny bit[1] to the right;
You can’t perform that action at this time.