title | year | layout |
---|---|---|
An example |
2018 |
example.njk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"parserOptions": { | |
"parser": "babel-eslint", | |
"sourceType": "module" | |
}, | |
"rules": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.addEventListener('fetch', evt => { | |
// Define the hostnames that you want to ignore | |
const ignoredHosts = ['localhost']; | |
// Destructure the hostname out of the event's request URL by creating a new URL instance | |
const {hostname} = new URL(evt.request.url); | |
// Bail out if our definition contains this url | |
if (ignoredHosts.indexOf(hostname) >= 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.moments, .top-timeline-tweetbox, .dashboard-left, .dashboard-right, .home, .form-search, .right-actions { | |
display: none; | |
} | |
.content-main { | |
float: none; | |
margin: 0 auto; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sortByOrder = require('./sort-by-order.js'); | |
module.exports = function(eleventyConfig) { | |
eleventyConfig.addFilter('sortByOrder', sortByOrder); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* To Rem | |
* -------------------------------------// | |
* Convert pixel value to REM | |
*/ | |
@function to-rem($pixel-size: 16) { | |
@return ($pixel-size / 16) * 1rem; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$.fn.jump = function (options) { | |
var elem = $(this), | |
settings = { | |
scrollingParent: $('html, body'), | |
offsetPadding: 0, | |
scrollSpeed: 800, | |
target: [] | |
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff --name-only OTHER_BRANCH_HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --since="1 day ago" --name-only --pretty=format: | sort | uniq |