teleren/devto huggingface dataset:
Feedback on complex (?) terminal game
Tags: showdev, python, beginners, testing
Published: 2022-01-13 00:58:12

Hi everyone, I hope this is okay to post here.

I have written a fun murder mystery terminal game that I would like some feedback on. I think it shows a reasonable understanding of variable scope, OOP, logical thinking, and the ability to problem solve - given the complexity of the code. Is there any other skills I am showing here that you think are important to future programming?

I definitely suffered scope creep in this project. This started as a small project I wanted to do on a plane ride home for Christmas but as I kept working on it I realized I needed more and more features to make it a game worth playing. All told I probably spend 3 hours a day from Dec 21 to Jan 10 working on this... so 50-60 hours all told! Although I have yet to learn about automated testing, and some days were literally going through with the debugger for hours to figure out why something wasn't working right.

The only feature I wanted to add that I decided not to (see scope creep) was one where if a character in the game came across a body, they would call an accusation meeting and inform you where they found the body and who it was. I do think it would make the game better, but I am pretty burnt out on the project so I decided not to.

Couple questions:

* Is this something worth leaving in github when the time comes for interviews? Does it show enough skills to an interviewer that they would understand I know what I am doing?

* What - ultimately - did I gain from this? I feel a bit like I could've made something much simpler and I would've been able to practice the same thing...

* Lastly, does anyone have resources on learning how to do automated testing? That is something that I think would've helped tremendously cut down time spent on this project.

Here is the link to the github repository: https://github.com/wmansfieldgolf/murder-mansion-game

Thanks in advance for your feedback!
Day 508 : Train
Tags: hiphop, code, coding, lifelongdev
Published: 2022-01-13 00:34:46

_liner notes_:
- Professional : Got up super early to put together my slides for a group presentation I'll be a part of tomorrow. I wanted to make sure that they saw it before the talk. I had like 25 slides for my 10 minute part. haha Most of it are like transitions, so I won't stay on long on them. I finished up a demo application for the talk yesterday and completed another one today. The demos are applications I created before and I just put it up on the Firebase platform. Luckily, I didn't run into any major obstacles when bring the applications over. Feeling pretty good, tired, but good. Also had a meeting with my manager's manager so that was cool. 

- Personal : Last night, I basically just worked on my demo application and went to bed early so I could get up early.


![View atop a mountain in Brecon, United Kingdom looking at a mountain range covered with mossy green grass.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fub9rr2ihl09474bkrl0.jpg)

Probably board the bed train early so I can get up SUPER early! The event is happening in Japan so it's at 5:30am my time. Plus, tomorrow is my meeting heavy day! May go through some tracks for the radio show or work on my side project.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube _CLaM6M_Awo %}
An app to find your dream home
Tags: atlashackathon, flutter, atlassearch
Published: 2022-01-13 00:30:22

### Overview of My Submission
Finder allows anyone who wants to rent or buy a new house or apartment to find it through this application, in the simplest possible way. All service providers we work with can access their accounts and post their rental or sales offers through publications. In turn, all clients willing to find housing can make searches depending on the country, city or neighborhood, filter publications according to their need and means. Seeing an offer that might interest them, they can contact the provider in charge to get further details. Help people find their dream household in few clicks and give suppliers more visibility, this is the very purpose of this project.

### Submission Category: 

Housing : House renting and selling

### Realization :
We used Atlas search to implement search bars with several filters. 

- First, we have created a search index for posts collection based on many fields 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ie2nqmylcmnpv5l0tz8.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1u7tst30lzbqdop3qw9m.png)
 
- Then we have created a class that implements many functions that use pipelines :

###### lib/helper/db/mongodb.dart :

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3juyh741z9cewxzglurc.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r3n1lghkx7p7l8xbitjp.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/73qiem9ioruex8ster3d.png)
   
- And here are some illustrations of their use in the application (see the demo video for full functionalities) :


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ydmdfmjf0qwzcu0h4xmp.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhgq4yc5t8sbx921jr8e.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oiz4a0vsgtov0yndh6ph.png)
   
 

### Link to Code

{% github https://github.com/itachi44/finder %}

### Additional Resources / Info
### Demo
[![Finder](https://img.youtube.com/vi/ClZATpg_5iw/0.jpg)](https://www.youtube.com/watch?v=ClZATpg_5iw&ab_channel=CheikhAhmadouBambaDIOP)



### Collaborator :
- Farimata NGOM : ngfarimata@ept.sn
Terra bLuna/Luna price monitoring tool
Tags: atlashackathon
Published: 2022-01-13 00:03:37

### Overview of My Submission
Hey! I'm happy to share a simple but scalable tool for crypto assets monitoring that utilizes MongoDB Time Series functionality.

### Submission Category: 
Prime Time

### Link to Code
{% github https://github.com/crypt0grapher/terra-luna-prices %}

Check it out live at http://46.148.238.135:3000/

### Additional Resources / Info
The bundle is build on top the following wonderful open-source projects: [Nest.js](https://nestjs.com), [NextJS](https://nextjs.org), [Material UI](https://mui.com/), and [TradingView Lightweight Library](https://www.tradingview.com/lightweight-charts/).

*Enjoy bLuna prices across all the available exchanges on a single screen*

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/72qajkqybgsizapcjdax.png)
An easy way to contribute to open source
Tags: opensource, documentation, github, jobsearch
Published: 2022-06-02 11:26:26

---
title: An easy way to contribute to open source
published: true
date: 2022-01-13 00:00:00 UTC
tags: opensource,documentation,github,jobsearch
canonical_url: https://jhall.io/archive/2022/01/13/an-easy-way-to-contribute-to-open-source/
---

When was the last time you started learning about some new open source tool such as a new langauge, framework, or library?

Have you ever come across inaccurate, outdated, or missing documentation during this process?

This is perhaps of the _easiest ways_ you can begin contributing to open source.

Back in 2015 when I started playing with [CouchDB](https://couchdb.apache.org/), that’s exactly what I did. I found a number of typos, grammatical errors, and confusing content. So I [submitted a pull request](https://github.com/apache/couchdb-documentation/pull/27/files).

I’ve done the same for many, many projects. This means my name is now an official part of the record for a wide variety of tools, including some fairly popular ones, including [Terraform](https://github.com/hashicorp/terraform/pull/25687) and [Kubernetes](https://github.com/kubernetes/kubernetes/pull/66980).

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
List Files Tracked by Git
Tags: git
Published: 2022-02-02 15:45:28

---
title: List Files Tracked by Git
published: true
date: 2022-01-13 00:00:00 UTC
tags: git
canonical_url: https://tech.serhatteker.com/post/2022-01/git-list-tracked-files/
---

## All current files

In order to show all of the tracked files that have been committed on the current branch, run:

```bash
$ git ls-tree --full-tree --name-only -r HEAD
```

- `--full-tree` makes the command run as if you were in the repo's root directory.
- `-r` recurses into subdirectories. Combined with `--full-tree` this gives you all committed, tracked files.
- `--name-only` removes SHA / permission info for when you just want the file paths.
- `HEAD` specifies which branch you want the list of tracked, committed files
  for. `HEAD` is the pointer for the commit you have checked out currently.

And the output will be like:

```bash
...
static/img/logopal.png
static/img/logos/bitcoin.png
static/img/logos/bmc-button.svg
static/img/logos/django-logo.png
static/img/logos/git-logo-full.png
static/img/logos/git-logo-red.png
static/img/logos/git-logo-white.png
static/img/logos/neovim-logo.png
static/img/logos/python-logo.png
static/img/logos/python-logo2.png
static/img/logos/python-logo3.png
static/img/logos/python-logo4.png
static/img/logos/python-logo5.png
static/img/logos/python-logo6.png
static/img/logos/python-logo8.svg
static/img/logos/vim-logo.png
static/img/python3.7-default.jpg
static/img/safari-pinned-tab.svg
...
```

If you want to show the files on the `master` branch, replace `HEAD` with `master`:

```bash
$ git ls-tree --full-tree --name-only -r master
```

Probably you also want a alias for that:

```bash
alias gtf='git ls-tree --full-tree --name-only -r HEAD'
```


## All files including deleted

If you want to list all of files that ever existed including deleted files, run below:

```bash
$ git log --pretty=format: --name-only --diff-filter=A | sort - | sed '/^$/d'
```

All done!




References:
- [stackoverflow](https://stackoverflow.com/a/55081559/10802538)
YT Dislikes Twitter Bot
Tags: atlashackathon
Published: 2022-01-12 23:39:22

[Instructions]: # (To submit to the MongoDB Atlas Hackathon on DEV, please fill out all sections.)


### Overview of My Submission
YT_dislikes is a twitter bot that allows you to know the number of dislikes (and likes) of a YouTube video. Now it is not possible to see the number of dislikes in YouTube. To discover it, tweet tagging @YT_dislikes and adding the url of the YouTube video and the bot will answer you with the stats.

UPDATE! Now we can´t get the number of `dislikes` from the API (I´m sad), so this update includes the Return Youtube Dislike Chrome extension (thanks) to unlock them on the YouTube website. This number of dislikes is a prediction they do thanks to their great database.

This is how the bot works:

- Get the last 20 tweets tagging the bot
- Compare their tweet ID to the ones stored in the Mongo database (which are the tweets already answered)
- If those IDs are already in the database, do nothing
- If one or some are not in the database, use Selenium to get a screenshot of the likes/dislikes and generate a reply to the tweet
- Add these tweets ID to the database

And these are the main tools used:
- pyMongo
- Tweepy
- YouTube Data API
- Selenium


### Submission Category
Choose Your Own Adventure


### Link to Code
https://github.com/JavideJ/YT_dislikes_bot

Tweet

![Tweet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9qp9waj49uox50m7krlt.PNG)

Automatic reply

![Automatic reply](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/folxrnrejxdphciknpp4.PNG)

![Automatic reply](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4hvo9ji9b2cz07tqwmfl.png)
[Mudrem CloudStore]
Tags: atlashackathon
Published: 2022-01-12 23:19:35

[Instructions]: # (To submit to the MongoDB Atlas Hackathon on DEV, please fill out all sections.)


### Overview of My Submission
[Note]: # (Please make sure the project links to the appropriate GitHub repository, and includes the [Apache-2 permissive license](https://www.apache.org/licenses/LICENSE-2.0)  and README.)
[Mudrem](https://mudremcloudstore.aremzy.repl.co/) is a cloud storage app used for uploading files forever 

### Mudrem Url
[Mudrem cloudStore](https://mudremcloudstore.aremzy.repl.co/)

#### tech stack 
##### backend :
-   nodejs
- express js
- ejs

#### architecture

Microservice architecture
#### Microservices
-auth service
 `{% https://github.com/aremumahmud/authService.git %}`
-mongodbRecord Service
 `{% https://github.com/aremumahmud/mongodbService.git %}` 
-fileupload Service
 `{% https://github.com/aremumahmud/fileUploadService.git %}` 


### Submission Category: 

Choose Your Own Adventure


### Link to Code

 `{% https://github.com/aremumahmud/mudremCloudStore.git %}` 


### Additional Resources / Info

### Mudrem architecture
![Mudrem architecture](https://i.ibb.co/JHV0Rjy/prog.jpg)
### Landing page
![one](https://i.ibb.co/V27mSFP/Screenshot-20220113-000126.png)
### Login page
![two](https://i.ibb.co/0D90q5W/Screenshot-20220109-192748.png)
### Sign up page
![three](https://i.ibb.co/9yS82Zb/Screenshot-20220113-000142.png)
### Login Page
![four](https://i.ibb.co/Yd04JJL/Screenshot-20220113-000157.png)
### Login page
![five](https://i.ibb.co/sbJXbs2/Screenshot-20220109-192108.png)
### Dashboard page
![six](https://i.ibb.co/CmLLxk2/Screenshot-20220113-000211.png)
### Uploading page
![seven](https://i.ibb.co/rZ8r9BF/Screenshot-20220113-000223.png)
I built an analytics package
Tags: showdev, javascript, programming, watercooler
Published: 2022-01-12 23:11:27

Today, I launched logmyapp-analytics an intuitive but small npm package.

With this new package you have the ability to log page_view and click. Meaning whenever someone clicks on a button on your site you can view that in your dashboard at [here](https://app.logmyapp.io) and see it in real-time when someone views a page or clicks a button. More to come than just clicks and page views.

Try it out today by clicking [here](https://www.npmjs.com/package/logmyapp-analytics)

View the analytics and get your api key [here](https://app.logmyapp.io)
The road so far...
Tags: beginners, braziliandevs, kotlin, career
Published: 2022-01-12 23:03:51

É engraçado lembrar de quando eu tinha uns 10 anos, enquanto via filmes como Jurassic Park e a Múmia na temperatura Máxima da Globo, eu tinha um amor tão grande por esses temas que meu sonho infantil era ser arqueólogo ou paleontólogo. Já na minha adolescência, como todo adolescente médio de cidade pequena, eu não tinha nenhuma perspectiva de que carreira seguir na vida adulta, meus dias se resumiam a ir para a escola e jogar videogame com os amigos. Por problemas financeiros não pude ingressar na faculdade assim que terminei o ensino médio, e de certa forma, sou agradecido por isso (Deus me livre fazer uma graduação por livre e espontânea pressão). Tentei fazer alguns cursos e faculdades depois de um tempo, mas nenhuma delas me fez sentir “acolhido”, até que...

## Uma década depois...

Comecei a fazer gestão de TI e após fazer um módulo sobre lógica de programação com Portugol, fiquei interessado em desenvolvimento.  Aprendi um pouco de front end, mas o que realmente chamou minha atenção foi desenvolvimento Android com Kotlin, e pela primeira vez em anos me sinto ótimo estudando, e a cada semana, pequenos progressos na aprendizagem me fazem sentir acolhido por essa forma de arte que é o desenvolvimento. 

## O Aprendizado até agora

O ano de 2021 foi bem corrido, pois foi último ano na faculdade, mesmo assim resolvi arriscar e assinei a plataforma de ensino da [Alura](https://www.alura.com.br/). O que mais chamou minha atenção nessa plataforma foi a organização, mostrando os pré-requisitos para estudar certos conteúdos. Eu estava super ansioso para aprender a desenvolver apps, mas não é tão simples assim, olhei o [roadmap](https://roadmap.sh/android) e vi que tinha uma escolha a fazer: Kotlin ou Java?
Inocentemente escolhi Java e toda aquela complexidade de linhas e mais linhas estava me assustando, foi quando eu resolvi olhar o Kotlin mais de perto. Sem dúvidas é uma linguagem muito mais “beginner friendly”, sem toda a verbosidade do Java.
Exemplo Java:

```
class Programa{
    public static void main(String args[])
    {
        System.out.println("Hello World");
    }
}
```

Exemplo Kotlin:

```
fun main(){
    println("Hello World");
}
```

Atualmente no meu trabalho estou usando o pouco que aprendi em Javascript e MySQL, mas não atuo como desenvolvedor. E espero eu consiga minha primeira vaga de Dev nesse ano de 2022.

> Codar escutando [80's city pop](https://www.youtube.com/watch?v=mml46rXspXQ) se tornou um dos pequenos prazeres do  meu dia-a-dia
Intro
Tags: postgres, database, sql
Published: 2022-01-12 22:59:42

Hi there,

My name is Bolaji Wahab, I have been using PostgreSQL for 4 years now and I'm loving it. I currently work as Database Engineer with focus on PostgreSQL.
I am starting a weekly blog series on [dev.to](https://dev.to/bolajiwahab/series/16321) on PostgreSQL with focus on *installation, configuration,  monitoring, performance tips, troubleshooting, debugging and various other PostgreSQL tips*.
I hope someone finds the blog series helpful.

Cheers
Shopify Hydrogen: Cache overview
Tags: headless, shopify
Published: 2022-01-12 22:32:31

---
title: Shopify Hydrogen: Cache overview
published: true
description: Shopify Hydrogen introduction to take the right business decision, native or headless.
tags: headless, shopify
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s2km4sx8n88tebnovx8j.png
canonical_url: https://rafaelcg.com/blog/shopify-hydrogen-cache/
---

Using Shopify Hydrogen we need to be aware of how to leverage cache. My goal with this article is to clarify when and how to use full-page caching and sub-request caching. If you don't know what's [Shopify Hydrogen](https://hydrogen.shopify.dev/) I highly recommend checking the previous article [Shopify Hydrogen Introduction](https://rafaelcg.com/blog/shopify-hydrogen-introduction/).

During the development be aware of the two main cache systems. The right cache setup makes a huge difference in your project.

## Native cache

There's a native cache system for all your components and pages, you need to know then in order to customize it.

The sub-request caches the API requests to Shopify and to third-party services, the following cache options are applied.

-   Cache the data for 1 second.
-   Serve stale data for up to 9 seconds while getting a fresh response in the background.

```
{
  maxAge: 1,
  staleWhileRevalidate: 9,
}
```

The full-page caches the pages, the following cache options are applied.

-   Cache the page for 1 hour.
-   Serve the stale page for up to 23 hours while getting a fresh response in the background.

```
{
  maxAge: 60 * 60,
  staleWhileRevalidate: 23 * 60 * 60,
}
```

During the development, you won't have cache, in case you need you can enable it customizing your vite/config.js

```
export default defineConfig({
  plugins: [hydrogen(shopifyConfig, {devCache: true})],
});

```

## How to set a custom cache?

If you need more and less time to keep or refresh the cache, then apply the customizations you need in your component or page. To be able to test it, enable the cache in your local environment by adding `devCache:true`.

![Shopify Hydrogen custom cache](https://i0.wp.com/rafaelcg.com/wp-content/uploads/2022/01/Screen-Shot-2022-01-12-at-5.20.04-PM.png?resize=840%2C560&ssl=1 "Shopify Hydrogen custom cache")

### Sub-request

![Shopify Hydrogen sub-request custom cache](https://i0.wp.com/rafaelcg.com/wp-content/uploads/2022/01/Screen-Shot-2022-01-12-at-5.24.08-PM.png?resize=840%2C556&ssl=1)

### Full-page

![Shopify Hydrogen full-page custom cache](https://i0.wp.com/rafaelcg.com/wp-content/uploads/2022/01/Screen-Shot-2022-01-12-at-5.26.53-PM.png?resize=840%2C549&ssl=1)

Enjoy it in your Shopify Hydrogen implementation 😉

[<img alt="Course Shopify Headless with Hydrogen" src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/arvuabf7iihl8o66x8eh.jpeg">](https://rafaelcg.com/course-shopify-hydrogen-developer-2022/)
Do or Don't
Tags: discuss, personal, improvement, growth
Published: 2022-01-12 22:32:30

---
title: Do or Don't
published: true
description: Do or Don't
tags: discuss, personal, improvement, growth
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7r2y9zpaxar2jciqyz3s.jpg
---

_Originally published on [my blog](https://www.nikola-breznjak.com/blog/daily-thoughts/do-or-dont/)._

> You either do something or you don't. You either say something or you don't. If something's bothering you, you should speak up. If you don't, then you don't get the right to complain later. It takes courage to run at something when you're not 100% of its outcome. It takes guts to say something when you don't know if your argument/ask is going to get validated. Either way, ask/do and you'll maybe get. Don't ask/do, and you surely won't get.

---

This is [why I write](https://www.nikola-breznjak.com/blog/daily-thoughts/why-do-i-write-these-daily-thoughts-posts/) these 'daily thoughts' posts.
Find Whatever Python Snippets You Need With Quick Snippets
Tags: atlashackathon, flask, mongodb
Published: 2022-01-12 22:29:06

### Overview of My Submission
I used Python with Flask for the backend and PyMongo to connect to MongoDB Atlas. Quick Snippets is a website that allows you to find whatever snippets you need. 


### Submission Category: 
This was a choose your own adventure project and let me say, it was a fun adventure!

### Link to Code
{% github mordy-python/Quick-Snippets-Hackathon %}

### Additional Resources / Info
Visit the website here: https://quick-snippets.herokuapp.com

{% github pallets/flask no-readme %}

#### Screenshots
Home Page
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fwlr8pa61o7llhl6hehn.jpg)
New Snippet Page
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/scs4evwongsbunxzspqs.png)
Looking a new web developer at The New York Times
Tags: webdev, hiring, oportunity
Published: 2022-01-12 22:27:59

We are looking to hire a new web dev to the marketing team if you are interested please apply

https://nytimes.wd5.myworkdayjobs.com/en-US/NYT/job/New-York-NY/Landing-Page-Associate_REQ-011321-1
Cevichería Mixtura 
Tags: atlashackathon
Published: 2022-01-12 22:09:07

#### Submission Category: 
E-Commerce

### Link to Code
https://github.com/jcze993/MixturaAngular


### Additional Resources / Info
app in beta state with the aim of online commerce.

the routes / Menus / Ceviches, / Chicharrones, / Combinados, / Menu / etc, / Mixture / Gallery and / Mixture / Salubridad (from the nested route it takes a little time because it makes the HTTP request to a server in heroku) being in a beta state.
https://heuristic-kare-b57550.netlify.app/

[Note:] # Screenshots/demo videos are encouraged!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1smblwrax1ozqx69wl3f.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xlo6huztauzlr2rlcbgm.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/95yy054e3j070u0pnwhk.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s93ynuvzidm6r5jo9424.png)
Work at Square
Published: 2022-01-12 22:00:09

Hi Network,

Square is hiring Software Engineers for our Financial Services Organization. We actively seek candidates with diverse perspectives and encourage them to expand our conceptions and challenge our assumptions. This year we are looking to diversify our teams and bring on leaders/engineers! All of our opportunities are 100% remote.

If you are looking to work in a supportive environment where you can bring your whole person to work, I encourage you to apply to one of the many positions within our team. Please check out one of our many opportunities on the following link: https://jobs.smartrecruiters.com/Square/743999796386429-software-engineer-payment-platform

Please feel free to connect with me on Linkedin: https://www.linkedin.com/in/ximenaflores/