Skip to content

Instantly share code, notes, and snippets.

@kylejohnston
kylejohnston / HTML-TEMPLATE.html
Last active January 10, 2020 17:04
A simple HTML document template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BOILERPLATE</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>

Goto

Shortcut Action
Command-P Goto Anything - Type part of a file name to open it. Type @ to jump to symbols, # to search within the file, and : to go to a line number.
Command-Shift-P The Command Palette holds infrequently used functionality, like sorting, changing the syntax and changing the indentation settings.
Control-G Goto line

Select Commands

Shortcut Action
@kylejohnston
kylejohnston / MODULAR SCALES.md
Last active August 4, 2016 04:12
Modular Typographic Scales

MODULAR SCALES

Ratio: 1.414, Aug. Fourth / Dim. Fifth

Size (pt) Line Height
40 1em
56.56 1.414
79.976 1.999
113.086 2.827
159.903 3.998
@kylejohnston
kylejohnston / mamp configuration tips
Last active August 29, 2015 14:17
MAMP Configuration Tips
Tags: #reference #mamp #hosting #server
# Fix for MAMP when MySQL is not starting
If you get the “Error: Could not connect to MySQL server!” notice, here’s a fix:
1. Quit MAMP
2. Open the terminal and type: killall -9 mysqld
3. Restart MAMP
[Source](http://twob.net/journal/fix-for-mamp-mysql/)
---
@kylejohnston
kylejohnston / google search tips
Last active August 29, 2015 14:17
Tips for better Google Searches
Example:
site:nytimes.com ~college "test scores" -SATs 2008…2010
- site: only searches pages of that site
- ~college – will also search related words, such as 'higher education' or 'university'
- "test scores" – searches for the exact phrase, not each of the words separately
- -SATs – excludes this term from the search
- 2008…2010 – shows all results from within the designated range
[Source](https://twitter.com/MaxCRoser/status/556479678299791360/photo/1)