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 tweets = require('./tweet.js') | |
const moment = require('moment') | |
const matter = require('gray-matter') | |
const fs = require('fs') | |
for (t of tweets) { | |
//ignore any replies or old-style RT | |
if(t.tweet.in_reply_to_user_id_str === undefined && !t.tweet.full_text.startsWith('RT @')) { |
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 tweets = require('./tweet.js') | |
const moment = require('moment') | |
const matter = require('gray-matter') | |
const fs = require('fs') | |
for (t of tweets) { | |
//ignore any replies or old-style RT | |
if(t.tweet.in_reply_to_user_id_str === undefined && !t.tweet.full_text.startsWith('RT @')) { |
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
/* | |
This file will read a bunch of Jekyll formatted `.md` posts in a folder, | |
grab the date from the filename and write it into the front-matter. | |
Files are copied to a new folder, rather than overwritten. | |
Requirements: `npm install lodash`, and that's it! | |
*/ | |
var fs = require('fs'), |
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
<div class="flex_element header"> | |
<div class="wrapper"> | |
<div class="third_party_class">This is the main header,woot</div> | |
</div> | |
</div> | |
<div class="flex_element body"> | |
<div class="wrapper"> | |
<div class="third_party_class"> | |
<p>Keep Scrolling, this is fun!</p> |
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
{% if include.daysDiff >= 365 %} | |
{% assign yearDiff = include.daysDiff | divided_by: 365 | round %} | |
{% assign yearRemainder = include.daysDiff | modulo: 365 | divided_by: 30 | round %} | |
{% if yearRemainder != 0 %} | |
{% if yearRemainder > 10 %} | |
Almost {{ yearDiff + 1 }} year{% if yearDiff > 1 %}s{% endif %} {{ include.label }} | |
{% elsif yearRemainder >= 6 %} | |
{% if yearDiff == 1 %} | |
A year and a half {{ include.label }} | |
{% else %} |