Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Frain benfrain

View GitHub Profile
@benfrain
benfrain / ISO-639-1-language.json
Created Apr 16, 2018 — forked from jrnk/ISO-639-1-language.json
ISO 639-1 Alpha-2 codes of languages JSON
View ISO-639-1-language.json
[
{
"code": "ab",
"name": "Abkhaz"
},
{
"code": "aa",
"name": "Afar"
},
{
View pseudo-elements.md

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
View mq-check.js
var throttleSettings = {
allowTrigger: true,
interval: 150,
reallowTrigger: function() {
// make sure next Resize is allowed again
throttleSettings.allowTrigger = true;
// call handler
handleResize();
}
};
@benfrain
benfrain / gist:3011711
Created Jun 28, 2012
Sublime Text 2 - Useful Shortcuts
View gist:3011711

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘⌃P go to project
⌘KB toggle side bar
⌘⇧P command palette

Selection