You have installed GPG, then tried to commit and suddenly you see this error message after it:
error: gpg failed to sign the data
fatal: failed to write commit object
Debug
| require('dotenv').config(); | |
| const OpenAI = require('openai-api'); | |
| const openai = new OpenAI(process.env.OPENAI_API_KEY); | |
| const { Client, Intents } = require('discord.js'); | |
| const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] }); | |
| let prompt ='Marv is a chatbot that reluctantly answers questions.\n\ | |
| You: How many pounds are in a kilogram?\n\ | |
| Marv: This again? There are 2.2 pounds in a kilogram. Please make a note of this.\n\ | |
| You: What does HTML stand for?\n\ |
| name: Android | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout |
| # these two functions perform the following: | |
| # do_drm() --> performs drm (from the drc package) on a long dataframe, using the LL.4 log-logistic model for describing dose-response relationships | |
| # do_drm_plot() --> plots the output of do_drm() | |
| # to use the functions just paste this file in your R session and source it. | |
| # try it out with | |
| # do_drm(S.alba, Dose, DryMatter, Herbicide) %>% do_drm_plot(ed50 = TRUE, color = ~Herbicide) + scale_x_log10() | |
| ##===================== | |
| # do_drm() usage | |
| # do_drm(df, d, r, x, y, ...) |
This gist shows how to create an animated world map of life expectancy using R. The data comes the UN World Population Prospects, 2015 Revision, and it brings life expectancy data from 1950 untill 2015 and projeceted data up to 2100. Thanks Topi Tjukanov, who reminded me of the UN DESA data portal, where you can find this dataset and many others
The idea is to use open data to create a GIF, much like the ones created by Aron Strandberg but his maps look much nicer. The output of this script is a map like this one:
[![enter image description here][1]][1]
Now diving into the code. First, let's load the necessary libraries and get the data. As of this writing, the current version of gganimate has a bug that messes the aesthetics of the .gif file. As a temporary solution, I've intalled an older version of the package, [as recommended by the author of the gganimate, David Ro
| import android.support.design.widget.AppBarLayout; | |
| /** | |
| * App bar collapsing state | |
| * @author Paulo Caldeira <paulo.caldeira@acin.pt>. | |
| */ | |
| public abstract class AppBarStateChangeListener implements AppBarLayout.OnOffsetChangedListener { | |
| // State | |
| public enum State { | |
| EXPANDED, |
| /* | |
| * Copyright 2014 Chris Banes | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |