Skip to content

Instantly share code, notes, and snippets.

View atmonshi's full-sized avatar

Lara Zeus atmonshi

View GitHub Profile
@ryanve
ryanve / breakpoint.js
Last active June 9, 2024 21:49
JavaScript: Get the current media query breakpoint for a CSS feature.
(function(root, name, make) {
if (typeof module != 'undefined' && module['exports']) module['exports'] = make();
else root[name] = make();
}(this, 'breakpoint', function() {
/**
* @link http://gist.github.com/ryanve/7924792
* @param {string} feature range feature name e.g. "width"
* @param {string=} unit CSS unit for feature e.g. "em"
* @param {number=} init initial guess
@rpowis
rpowis / post-merge
Last active April 7, 2017 17:49
Git hook to fix permissions on mediatemple dv after a git pull
#!/usr/bin/env bash
#
# How to use this file:
#
# 1. Clone/copy this gist into the .git/hooks directory
# 2. Enter the website's domain and server's admin username in the variables
# 3. Make the file executable using: $ chmod +x post-merge
#
@BlakeGardner
BlakeGardner / install nano.sh
Last active June 22, 2025 04:31
Syntax highlighting in nano on Mac OS
# Last updated May, 2024 for Apple silicon Macs
# Install Homebrew if you don't already have it: https://brew.sh
# install nano from homebrew
brew install nano nanorc
# update your nanorc file
echo 'include "'"$(brew --cellar nano)"'/*/share/nano/*.nanorc"' >> ~/.nanorc
# close and re-open your terminal and you'll have syntax highlighting
@whitingx
whitingx / meta-tags.md
Created October 5, 2012 16:41 — forked from kevinSuttle/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>