Skip to content

Instantly share code, notes, and snippets.

@jpgls
jpgls / font-smoothing.md
Created August 14, 2014 22:19
Font Smoothing CSS

Font Smoothing CSS Rules

When you have small fonts, or narrow ornaments that don't look right in the browser, try these-moz and -webkit rules for font-smoothing.

.font-smoothing {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@jpgls
jpgls / gist:e53919aafd90b8e14e01c233e6a8adb3
Created October 1, 2019 05:49
Listr - dynamically populate nested list
'use strict';
const Listr = require('listr');
const config = require('./config');
const {
connect,
getSaveableMeasures,
convertToMeasureValues,
saveMeasures,
updateMeasureState
} = require('.');
@jpgls
jpgls / sublime-search-strings.md
Last active September 1, 2016 04:02
Sublime Text Search Strings

Sublime Text Search Strings

For use in Sublime Text's "Find In Files..." Dialog (⇧⌘F)

Regex Search Strings

These are some useful templates for regex strings to use in the "Find:" field

Search "Near"

@jpgls
jpgls / css-max-values.md
Last active June 21, 2016 21:20
CSS Maximum Vaues

CSS Maximum Values

Found some maximum possible values for various CSS elements today, which don't seem to be documented anywhere that I was able to find

outline-width

  • 65534px
    • Also the ZIP Code for Laquey, MO
  • Browsers seem to accept higher values, but stop rendering the outline after this
    • outline-width: 65534px; = a gigantic outline
    • outline-width: 65535px; = no outline *This width applies even if the element is passed to the GPU for rendering using -webkit-transform: translateZ(0);
@jpgls
jpgls / devResources.md
Last active June 21, 2016 17:48
Living list of webdev resources
@jpgls
jpgls / page-level-redirect.md
Created March 17, 2016 17:20
Page Level Redirect

Page Level Redirect

Include this in the <head> to redirect a single page (as opposed to a whole domain) to a new page:

<meta http-equiv="refresh" content="0; URL='http://new-website.com'" />
@jpgls
jpgls / basic.html
Created March 17, 2016 17:17
Basic HTML Page
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Basic HTML Page</title>
<meta name="description" content="Basic HTML Page">
<meta name="author" content="Jordan Pagels">
@jpgls
jpgls / dabblet.css
Created March 31, 2013 08:29
ASCII Web Platform
/**
* ASCII Web Platform
*/
background: #111;
min-height: 100%;
font-size:11pt;
letter-spacing:4px;
line-height:11pt;
font-weight:bold;
@jpgls
jpgls / safari-debug.md
Created January 19, 2015 19:34
Enable Safari Debug Menu

Enable Safari Debug Menu

This is different than the Developer Menu, which is enabled via the Safari Preferences window - this enables several rendering debug options.

In order to enable the menu, close Safari, then enter the following command in a terminal window:

defaults write com.apple.Safari IncludeInternalDebugMenu 1
@jpgls
jpgls / bandwidth.md
Last active August 29, 2015 14:08
Bandwidth Fact

Bandwidth Fact

It's measured in Megabits

Not Megabytes

This makes a lot of sense - I always thought the numbers seemed high

B = bytes b = bits

Storage is usually measured in bytes. (512 GB hard drive)