Skip to content

Instantly share code, notes, and snippets.

View meancode's full-sized avatar
🏠
Working from home

Ken Edwards meancode

🏠
Working from home
View GitHub Profile
@jolantis
jolantis / Targeting iPad with media queries
Created June 28, 2010 10:49
targeting iPhone and/or iPad
<link rel="stylesheet" media="all and (orientation: portrait)" href="/portrait.css">
<link rel="stylesheet" media="all and (orientation: landscape)” href="/landscape.css">
[option 1 - tested and working]
<link rel="stylesheet" media="only screen and (device-width: 768px) and (orientation: portrait)" href="/ipad-portrait.css">
<link rel="stylesheet" media="only screen and (device-width: 768px) and (orientation: landscape)" href="/ipad-landscape.css">
[option 2]
<link rel="stylesheet" media="only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: portrait)" href="/ipad-portrait.css">
<link rel="stylesheet" media="only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: landscape)" href="/ipad-landscape.css">
// ==UserScript==
// @name MT Disable Spam Users
// @description Display URL and email address and check keywords to delete spam users.
// @include http://YOUR-MT-DOMAIN/cgi-bin/mt/mt.cgi*
// ==/UserScript==
var $;
// Add jQuery
(function(){
if (typeof unsafeWindow.jQuery == 'undefined') {
<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
// http://twitter.com/brianblakely/
-->
<head>
<!-- Disable automatic DNS prefetching.
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@thetristan
thetristan / git-fresh
Created May 23, 2012 23:17
Quick shell script to check the freshness of your git branches
#!/bin/bash
# ## git-fresh
#
# Author: Tristan Blease <[email protected]>
# Website: tristanblease.com
# License: http://www.opensource.org/licenses/MIT
#
# Quick shell script to check the freshness of your git repository branches
#
@davidhund
davidhund / pragmatic-touch-icons.md
Last active November 6, 2024 14:26
Pragmatic Touch Icons

NOTE I'm trying to find the most optimal fav/touch icon setup for my use-cases. Nothing new here. Read Mathias Bynens' articles on re-shortcut-icon and touch icons, a FAQ or a Cheat Sheet for all the details.

I'd like to hear how you approach this: @valuedstandards or comment on this gist.

The issue

You have to include a boatload of link elements pointing to many different images to provide (mobile) devices with a 'favicon' or 'touch icon':

![Touch Icon Links](https://o.twimg.com/2/proxy.jpg?t=HBj6AWh0dHBzOi8vcGhvdG9zLTYuZHJvcGJveC5jb20vdC8yL0FBRGFGY1VRN1dfSExnT3cwR1VhUmtaUWRFcWhxSDVGRjNMdXFfbHRJWG1GNFEvMTIvMjI3OTE2L3BuZy8xMDI0eDc2OC8yL18vMC80L1NjcmVlbnNob3QlMjAyMDE1LTA0LTE0JTIwMTYuNTYuMjYucG5nL0NNejBEU0FCSUFJZ0F5Z0JLQUkvNGR1eDZnMzZmYnlzYWI3

@wesbos
wesbos / tab-trigger.js
Created November 16, 2015 19:33
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{