Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🥞

Rob Garrison Mottie

💭
🥞
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am mottie on github.
  • I am regarr (https://keybase.io/regarr) on keybase.
  • I have a public key ASAWyWLYRvPE3Wqv-L_9Su6zF5ZuqlJZVyS4vePezJ2ZBAo

To claim this, I am signing this object:

@Mottie
Mottie / stylus-error.json
Last active Nov 20, 2018
Stylus update error test
View stylus-error.json
[
{
"enabled": true,
"updateUrl": "https://gist.github.com/Mottie/32acd89f2df44aaba94db367933cffdf/raw/5b291b59208ffbf1b74057e07923d0cd3cdc0fce/test.user.css",
"md5Url": null,
"originalMd5": null,
"installDate": 1542676678468,
"sourceCode": "/* ==UserStyle==\n@name _test\n@namespace github.com/openstyles/stylus\n@version 0.1.0\n@description A new userstyle\n@author Me\n@var color bg \"background\" #000\"\n@updateURL https://gist.github.com/Mottie/32acd89f2df44aaba94db367933cffdf/raw/5b291b59208ffbf1b74057e07923d0cd3cdc0fce/test.user.css\n==/UserStyle== */\n@-moz-document domain(\"google.com\") {\n body {\n background: var(--bg) !important;\n }\n}",
"sections": [
{
@Mottie
Mottie / demo.css
Created Oct 23, 2018
Input-password-bullet-css
View demo.css
/* Use the css below to change the password input symbol */
@font-face {
font-family: 'fontello';
src: url('./font/fontello.eot?0000');
src: url('./font/fontello.eot?0000#iefix') format('embedded-opentype'),
url('./font/fontello.woff2?0000') format('woff2'),
url('./font/fontello.woff?0000') format('woff'),
url('./font/fontello.ttf?0000') format('truetype'),
url('./font/fontello.svg?0000#fontello') format('svg');
font-weight: normal;
@Mottie
Mottie / convert-date-in-md.js
Created Jan 18, 2018
Convert M/D/YYYY format to YYYY-MM-DD in all markdown files in current folder
View convert-date-in-md.js
#!/usr/bin/env node
"use strict";
/* Convert date formats in markdown
*
* This script converts a "(M/D/YYYY)" date format to "(YYYY-MM-DD)" in *all*
* markdown files within the folder it is placed
* Use `node convert-date-in-md.js` to execute
*/
const fs = require("fs");
@Mottie
Mottie / test.css
Last active Dec 25, 2017
For testing Stylus' CSSLint
View test.css
@-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 Dec 13, 2017
Selected Tab Color UserStyle
View github-selected-tab-color-uso.user.css
/* ==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
View test.js
// white space testing
// ok
// test 2
// test
function test( ) {
console.log('ok' ); // 123
}
/*
View Stylus.svg
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 Nov 23, 2016
Spanish Diacritic definition
View diacritics.json
{
"de": {
"de": {
"metadata": {
"alphabet": "Latn",
"continent": "EU",
"language": "German",
"native": "Deutsch",
"sources": [
"https://en.wikipedia.org/wiki/German_orthography#Special_characters"
View jquery.nval.js
/* 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)
You can’t perform that action at this time.