Skip to content

Instantly share code, notes, and snippets.

View Dayjo's full-sized avatar

Joel Dayjo

View GitHub Profile
#inspector {
background: rgba(0,0,255,0.9);
}
@Dayjo
Dayjo / widgets.md
Created April 17, 2014 15:00
Shop Widgets

Featured Product Grid

Product Rating / Reviews Simple 5 Star Rating 5 stars of david What's considered a unique rating (one per user), IP, User Agent,

Large Slider http://www.owlgraphic.com/owlcarousel/ Essentially a Better Slideshow Widget - With Linking - Text

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
@Dayjo
Dayjo / gist-editor-resize-userscript.js
Last active May 16, 2018 19:09
Make Gist editor automatically resize based on content using a TamperMonkey script
// ==UserScript==
// @name gist-editor-resize-userscript
// @namespace https://gist.github.com/
// @version 0.1
// @description Automatically resize the gist editor for easier editing.
// @match http*://gist.github.com/*
// @copyright 2013+ Joel Day - blog.dayjo.org
// ==/UserScript==
var textareas = document.querySelectorAll('textarea.file_contents');
@Dayjo
Dayjo / _introduction.md
Last active December 27, 2015 18:59
WDK Shop Documentation

WDK Shop Templates

WDKing Shop Templates is really no more difficult than WDKing a template.

The Shop WDK currently consists of three different templates;

  • Category
  • Category Product
  • Product

Category

@Dayjo
Dayjo / netflix.css
Created October 30, 2013 21:33
Make Netflix have proper horizontal scrolling for touch mice (no slow marquee or arrows). Infinite scrolling not yet implemented, maybe with a Tampermonkey script.
/*
* Netflix proper horizontal scrolling.
* Add this to your css browser extension like Stylish (for Chrome)
*/
.slider {
overflow-x: auto;
}
.slider .previous, .slider .next {
display: none !important;
/* When the console width is 624px or less */
@media all and (max-width: 624px) and (min-width: 0px) {
/* Hide the audits tab */
#-webkit-web-inspector #toolbar .toolbar-item.audits {
display: none !important;
}
}
@Dayjo
Dayjo / Default (OSX).sublime-keymap -- User
Created July 17, 2012 09:25 — forked from coldnebo/Default (OSX).sublime-keymap -- User
Sublime Text 2 fix for OSX home/end keys
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } }