Skip to content

Instantly share code, notes, and snippets.

View Mottie's full-sized avatar
💭
🥞

Rob Garrison Mottie

💭
🥞
View GitHub Profile
@Mottie
Mottie / test.css
Last active December 25, 2017 12:23
For testing Stylus' CSSLint
@-moz-document url("example.com") {
/* https://github.com/CSSLint/csslint/issues/723 */
:focus {
outline: 1px none;
}
:focus {
outline: 0 red;
}
:focus {
outline: 1px solid transparent;
@Mottie
Mottie / github-selected-tab-color-uso.user.css
Last active December 13, 2017 05:39
Selected Tab Color UserStyle
/* ==UserStyle==
@name GitHub Selected Tab Color (uso)
@version v1.0.10
@description Add a custom selected tab color to GitHub
@namespace github.com/StylishThemes
@author StylishThemes (https://github.com/StylishThemes)
@homepageURL https://github.com/StylishThemes/GitHub-Selected-Tab-Color
@supportURL https://github.com/StylishThemes/GitHub-Selected-Tab-Color/issues
@updateURL https://raw.githubusercontent.com/StylishThemes/GitHub-Selected-Tab-Color/master/github-selected-tab-color.user.css
@license CC-BY-SA-4.0
@Mottie
Mottie / README.md
Last active August 16, 2017 19:46

Testing Chrome Extension

This code is meant to supplement this Stackoverflow question: http://stackoverflow.com/q/32288996/145346

To use:

  • Download these files into a folder.
  • Open up Chrome extensions: chrome://extensions/
  • Click on the "Developer mode" checkbox at the top
  • Click on "Load unpacked extension..."
@Mottie
Mottie / Stylus.svg
Created July 2, 2017 18:38
Stylus Logo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Mottie
Mottie / diacritics.json
Last active November 23, 2016 20:16
Spanish Diacritic definition
{
"de": {
"de": {
"metadata": {
"alphabet": "Latn",
"continent": "EU",
"language": "German",
"native": "Deutsch",
"sources": [
"https://en.wikipedia.org/wiki/German_orthography#Special_characters"
@Mottie
Mottie / gist:8078281
Last active January 1, 2016 02:19
jQuery Quicksearch plugin mod to include childrows for tablesorter
/* jQuery Quicksearch plugin
by riklomas https://github.com/riklomas/quicksearch
Modified to include childRows (for tablesorter)
See http://stackoverflow.com/q/20342203/145346 for
more details
*/
(function($, window, document, undefined) {
$.fn.quicksearch = function (target, opt) {
@Mottie
Mottie / jquery.nval.js
Created December 1, 2015 17:21
jQuery nVal()
/* jQuery nVal() - A jQuery plugin that return numeric values from form elements
* this plugin uses jQuery .val() so it only uses the first element in the set of matched elements
* Examples: http://jsfiddle.net/Mottie/p2b89y5h/
<input value="1234.567">
$('input').val() // returns '1234.567' (string)
$('input').nVal() // returns 1234.567 (numeric)
$('input').nVal( 10 ) // returns 1234 (number; parseInt base 10 radix)
@Mottie
Mottie / dabblet.css
Created August 8, 2012 00:26 — forked from LeaVerou/dabblet.css
3D cube
/**
* 3D cube
*/
body {
perspective: 99999px;
}
body > section {
display: inline-block;
@Mottie
Mottie / dabblet.css
Created June 26, 2012 15:14 — forked from chriscoyier/dabblet.css
Checkbox Hack
/* Checkbox Hack */
input[type=checkbox] {
position: absolute;
top: -9999px;
left: -9999px;
}
label {
-webkit-appearance: push-button;
appearance: button;
@Mottie
Mottie / gist:1491097
Created December 17, 2011 19:14
jQuery images loaded function
/*
Check if all images are loaded
- Callback occurs when all images are loaded
- image load errors are ignored (complete will be true)
- Use:
$('.wrap img').imagesLoaded(function(){
alert('all images loaded');
});
*/