Skip to content

Instantly share code, notes, and snippets.

name: Update Posts
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2-beta
name: Update Posts
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2-beta
name: Update Posts
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v2-beta
name: Update Posts
jobs:
update:
runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
@vicnicius
vicnicius / workflow.yml
Created December 23, 2020 08:14
Embedding Medium Posts - 4
name: Update Posts
jobs:
update:
runs-on: ubuntu-latest
@vicnicius
vicnicius / getPosts.js
Created December 23, 2020 08:13
Embedding Medium Posts - 3
const Parser = require('rss-parser')
const fs = require('fs')
const pug = require('pug')
const compiledFunction = pug.compileFile('index.pug')
const parser = new Parser()
(async () => {
const feed = await parser.parseURL('http://medium.com/feed/@viniwrites')
fs.writeFileSync('index.html', compiledFunction({ posts: feed.items }))
})()
@vicnicius
vicnicius / templateSample.pug
Created December 23, 2020 08:10
Embedding Medium Posts - 2
section
h2 Latest Posts
each post in posts
article
a(href=post.link)
h3= post.title
p= post['content:encodedSnippet']
@vicnicius
vicnicius / getPosts.js
Created December 23, 2020 08:01
Embedding Medium Posts - 1
const Parser = require('rss-parser')
const fs = require('fs')
const parser = new Parser()
(async () => {
const feed = await parser.parseURL('http://medium.com/feed/@viniwrites')
fs.writeFileSync('latestPosts.json', JSON.stringify(feed, null, '\t'))
})()
@vicnicius
vicnicius / gist:0ccac6039479f395d02e61cbd398e373
Last active September 25, 2019 07:47
The Freeing Eagle Tradition
Say you are a slave in a small city in the country-side, a part of the Roman empire. You had an enormous debt you could not pay, so to settle it your creditor slaved you and your family. Your new lord is a winemaker and a good man. He kindly accepted that only you would have to work for him for now, though your role family belongs to him. He knows you're smart, so he decides you should work as the winery manager.
Because he's such a wise man, he knows that you should rest well to be the best you can to accomplish your duties, so he allows you to go back every day to your home. And he even allows you to stay there a couple of days per week. When the grape crop is satisfying, he shares the most desirable bottles with you. He knows you like to write. And he is such a good man, that he buys you feather and ink.
The village where you and your lord live has a weird old law custom: it was called The Freeing Eagle Tradition. It says that any slave that can catch the feather of an old eagle known to appear in the re
Code architecture meetings guidelines
Topics to be discussed should pass the following requirements:
1. Clear description
It should clearly describe what the issue is about, stating the goal of discussing that topic and if possible
propose a set of action points.
2?. A tag
We currently don't have'em, but we could. "App structure", "React best practices", "Types", "Tests", etc.
3. A concrete example of the issue being discussed and/or the solution being proposed. This could be: