Skip to content

Instantly share code, notes, and snippets.

View grovesdm's full-sized avatar

Daniel Michael grovesdm

View GitHub Profile
@grovesdm
grovesdm / scss_whitespace.scss
Last active December 11, 2018 04:02
A collection of useful snippets related to images
// Images by default will display as inline-block
// to remove the whitespace below the image display the image as a block.
img {
display: block;
}
@grovesdm
grovesdm / forms.md
Last active December 4, 2018 10:13
A selection of styling tips for HTML forms

I could just write in md

input,
select,
textarea {
    background-color: #fff;
\!h    border-color: #e0e0e0;
    -webkit-border-radius: 3px;
 border-radius: 3px;
@grovesdm
grovesdm / tmux.conf
Last active December 4, 2018 08:18
In theory I would include instructions how to install this. Something like: ``` git bash bing pust whatever ```
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
@grovesdm
grovesdm / jquery.email-antispam.js
Created March 23, 2017 04:17 — forked from mathiasbynens/jquery.email-antispam.js
Simple spam protection for email addresses using jQuery
/* Simple spam protection for email addresses using jQuery.
* Well, the protection isn’t jQuery-based, but you get the idea.
* This snippet allows you to slightly ‘obfuscate’ email addresses to make it harder for spambots to harvest them, while still offering a readable address to your visitors.
* E.g.
* <a href="mailto:foo(at)example(dot)com">foo at example dot com</a>
* →
* <a href="mailto:foo@example.com">foo@example.com</a>
*/
$(function() {
@grovesdm
grovesdm / 0_reuse_code.js
Created April 9, 2016 13:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@grovesdm
grovesdm / Create empty file in windows cmd
Created April 16, 2015 07:57
For example echo $null >> .gitignore
echo $null >> filename