From 0e56f29eaf0028d20a21cebcd904a7341e449c3e Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Sun, 17 Feb 2019 16:10:53 -0500 Subject: [PATCH] copy changes and env check fix --- app/helpers/github.js | 6 +++--- app/sass/init/_markdown.scss | 2 +- documents/developer-program.md | 16 +++++++++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/app/helpers/github.js b/app/helpers/github.js index b476649..6add98a 100644 --- a/app/helpers/github.js +++ b/app/helpers/github.js @@ -30,13 +30,13 @@ String.prototype.escape = function() { let client; -if (typeof process.env.GITHUB_OAUTH_TOKEN !== "undefined") { +if (process.env.GITHUB_OAUTH_TOKEN) { octokit = new Octokit({ auth: `token ${process.env.GITHUB_OAUTH_TOKEN}` }); } else process.stdout.write(`${color.red("[missing]")} GitHub token`); -if (typeof process.env.REDISCLOUD_URL !== "undefined") { +if (process.env.REDISCLOUD_URL) { client = redis.createClient(process.env.REDISCLOUD_URL); client.on("error", redisError => { @@ -258,7 +258,7 @@ function generateEvent(event) { } function generateGitHubFeed(displayGitHubFeed) { - if (typeof process.env.REDISCLOUD_URL !== "undefined") { + if (process.env.REDISCLOUD_URL) { client.zrevrange("events", 0, 9, (err, reply) => { if (err) return; // TODO: Render a div with nice error message diff --git a/app/sass/init/_markdown.scss b/app/sass/init/_markdown.scss index 910bd36..0a9394b 100644 --- a/app/sass/init/_markdown.scss +++ b/app/sass/init/_markdown.scss @@ -164,7 +164,7 @@ padding-left: 0.1rem; li { - list-style-type: lower-roman; + list-style-type: decimal; } } diff --git a/documents/developer-program.md b/documents/developer-program.md index a031f65..435e80c 100644 --- a/documents/developer-program.md +++ b/documents/developer-program.md @@ -2,13 +2,19 @@ title: Developer Program --- -When developing for LBRY, having LBC (LBRY credits) makes it easier to develop applications and interface with our APIs. +LBRY offers a complimentary 100 LBC to qualified engineers to facilitate exploration, development, and testing. -To qualify for free LBC you must: +To qualify you must: -- have a GitHub account, and -- have a public PR (pull request) in the past year +- Have a GitHub account prior to January 1st, 2018. +- Have made a public pull request within the past year. -If you have not downloaded our SDK yet, [you should]() and generate a wallet address so we know where to send your LBC! +(below here should be hidden until click) + +To receive your LBC, you'll need a wallet address. While graphical wallets are available, the recommended path for engineers is to: + +1. Download [the LBRY SDK](https://github/lbryio/lbry). +1. Launch the command-line utility. +1. Run the [`address_unused`](https://lbry.tech/api/sdk#address_unused) command.