teleren/devto huggingface dataset:
📦Convert Markdown into HTML
Tags: replit, python, functorflow
Published: 2019-07-28 21:26:41

---
title: 📦Convert Markdown into HTML
published: true
tags: replit, python, functorflow
---

```python
from functorflow import f

r = f('md-html', '# hello, markdown!')

print(r) # <h1 id="hellomarkdown">hello, markdown!</h1>
```

{% replit @functorflow/md-html %}

> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
📦Convert JSON array to CSV and vice-versa
Tags: replit, python, functorflow
Published: 2019-07-28 21:20:34

---
title: 📦Convert JSON array to CSV and vice-versa
published: true
tags: replit, python, functorflow
---

```python
from functorflow import ff
from countries import json_countries

# Convert JSON array to CSV
csv = ff("json-csv").csv(json_countries)

print(csv)

# Convert CSV back to JSON array 

json_array = ff("json-csv").json(csv)

print(json_array)
```

{% replit @functorflow/json-csv %}

> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
📦Convert HEX color to RGBA
Tags: replit, python, functorflow
Published: 2019-07-28 21:18:32

---
title: 📦Convert HEX color to RGBA
published: true
tags: replit, python, functorflow
---

```python
from functorflow import f

r = f('hex-rgba', '#4183c4')
print(r) # {'red': 65, 'green': 131, 'blue': 196, 'alpha': 1}


r = f('hex-rgba', 'cd2222cc')
print(r) # {'red': 205, 'green': 34, 'blue': 34, 'alpha': 0.8}
```

{% replit @functorflow/hex-rgba %}
> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
📦Decimal ↔ hexadecimal converter
Tags: replit, python, functorflow
Published: 2019-07-28 21:16:53

---
title: 📦Decimal ↔ hexadecimal converter
published: true
tags: replit, python, functorflow
---

```python
from functorflow import ff

a = ff('hex-dec').dec(hex='0xfa')
# 250

b = ff('hex-dec').hex(dec='250')
# '0xfa'

c = ff('hex-dec').hex(dec='250', options={'prefix': False})
# 'fa'
```

{% replit @functorflow/hex-dec %}

> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
📦 Convert, identify, and flip string case
Tags: replit, python, functorflow
Published: 2019-07-28 21:14:50

---
title: 📦 Convert, identify, and flip string case
published: true
tags: replit, python, functorflow
---

```python
from functorflow import ff

r = ff("case").snake('Foo bar!')   
print(r) # 'foo_bar'
```

{% replit @functorflow/case %}

> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
📦 Parses HTML and returns beautiful text
Tags: replit, python, functorflow
Published: 2019-07-28 21:12:31

---
title: 📦 Parses HTML and returns beautiful text
published: true
tags: replit, python, functorflow
---

```python
from functorflow import f

html = '<h1>hello world</h1>'
r = f('html-to-text', html, options={'wordwrap': 130})
print(r) # HELLO WORLD
```

{% replit @functorflow/html-to-text %}

> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
compiling tic80 for raspberrypi 4
Tags: tic80, retro, lua
Published: 2019-07-28 21:03:48

---
title: compiling tic80 for raspberrypi 4
published: true
description: 
tags: tic80,retro,lua
---

I started here but changed it a bit.

https://github.com/nesbox/TIC-80/wiki/build-instructions#raspberry-pi-retropie

Mainly I did not do the backports stuff.

You will also need to run sudo raspi-config and choose Advanced Options (7), then A7 Gl Driver you need to pick the GL driver (G2 Fake KMS OpenGL desktop driver with fake KMS)

Then all of this stuff...

```
sudo apt install --reinstall libraspberrypi0 libraspberrypi-dev libraspberrypi-doc libraspberrypi-bin

sudo apt install git build-essential libgtk-3-dev libsdl2-dev zlib1g-dev liblua5.3-dev cmake

# this is really weird but needed the link will fail without it
# needed this for bcm_host in the build
# this one took a while to find ha
sudo apt install libraspberrypi-dev raspberrypi-kernel-headers
sudo cp /opt/vc/lib/libbcm_host.so /usr/local/lib

git clone --recursive https://github.com/nesbox/TIC-80
cd TIC-80
mkdir tonybuild
cd tonybuild
cmake ..
make
```

Once you have done that and crossed whatever appendages you have you should have a bin/tic80 that you can run!
A Foodie's Guide To HTTP Response Status Code
Tags: webdev, http
Published: 2019-07-28 20:55:48

For a foodie HTTP response status code can be easily understood if it is related to the one he/she loves, you guessed right, food. So today we will try to relate the meaning of common status codes to events relating to food.
###What is HTTP response status code?###
This is the response sent back by the server describing how a request was handled. 
###Success###
- **`200` success:** To a Foodie walking into a restaurant, ordering a meal and getting it, is a definition of what success means, and that is what this status code stands for making a request and also getting the adequate response.  
- **`201 created:`** A foodie returns with groceries, gets their meal prepared for them or prepares it themselves. 
- **`204` no content:** A foodie walks into a restaurant and orders a meal, minutes later the waiter returns smiling, serves you the meal and then you discover that the plate is empty.

###Client Error Responses###
- **`400` bad request:** A foodie walks into a vegan store and request for beef.
- **`401` unauthorized:** A foodie tries to get into a food event without an invite.
- **`403` forbidden:** A foodie attends a food event on a regular ticket and tries to get seated in a VIP position.
- **`404` not found:** A foodie wants to eat but cannot find their food.

###Server Error Responses###
- **`500` internal server error:** This occurs when a foodie sees a meal he/she can not come to terms with eating.
Name Three Goals You Have Before The Year Ends?
Tags: inspiration, watercooler
Published: 2019-07-28 20:51:59

We are well and truly in to the later part of the calendar year for most of us, so with that in mind.

What are three things you want to achieve/finish before the year is out?

Here's my three

1. Get 10 more videos up on YouTube teaching something.
2. Complete the transition of my WordPress site [PeterWitham.com](https://peterwitham.com) to the Gatsby version [peterwitham.us](https://peterwitham.us)
3. Complete at least 5 more photographic artworks and get them up in my portfolio.

So go for it, what you do have? And if you don't them maybe you should so you can hold yourself accountable.
📦JSON array to Markdown converter
Tags: replit, python, functorflow
Published: 2019-07-28 20:10:50

---
title: 📦JSON array to Markdown converter
published: true
tags: replit, python, functorflow
---

```python
from functorflow import f

json_arr = [
    { 'h1': 'JSON To Markdown' }
  , { 'blockquote': 'A JSON to Markdown converter.' }
  , { 'h2': 'Features' }
]

result = f('json-md', json_arr)

print(result)
```

{% replit @functorflow/json-md %}

> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
📦 Converting numbers into words, ordinal words/numbers
Tags: replit, python, functorflow
Published: 2019-07-28 20:08:07

---
title: 📦 Converting numbers into words, ordinal words/numbers
published: true
tags: replit, python, functorflow
---

```python
from functorflow import ff

r = ff('number-words').words(-3)
print(r) # 'minus three'


r = ff('number-words').ordinal(21)
print(r) # '21st'


r = ff('number-words').wordsordinal(21)
print(r) # 'twenty-first'
```

{% replit @functorflow/number-words %}

> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
📦Convert keys in an JSON to camelCase or snake_case
Tags: replit, python, functorflow
Published: 2019-07-28 20:05:28

---
title: 📦Convert keys in an JSON to camelCase or snake_case
published: true
tags: replit, python, functorflow
---

```python
from functorflow import ff
 
json = {...}


r = ff('json-case').camelize(json, recursive=True)

```

{% replit @functorflow/json-case %}

> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
Mongoose Schema Types, Validation & Queries Tutorial with Examples
Tags: mongodb, node, mongooseodm, mongoosequeries
Published: 2020-02-07 09:14:48

---
title: Mongoose Schema Types, Validation & Queries Tutorial with Examples
published: true
tags: MongoDB,Node JS,mongoose ODM,mongoose queries
canonical_url: https://www.positronx.io/mongoose-schema-types-validation-queries-tutorial-with-examples/
---

The post [Mongoose Schema Types, Validation & Queries Tutorial with Examples](https://www.positronx.io/mongoose-schema-types-validation-queries-tutorial-with-examples/) appeared first on [positronX.io](https://www.positronx.io).

In this MongoDB tutorial, we are going to understand how to work with **Mongoose schema types**. How to define Schema Types efficiently Furthermore, we’ll learn to apply the custom validation in MongoDB data by defining the validation in Mongoose Schema Types using built-in Mongoose validators.We will also have a look at some basic Mongoose queries like: **create, find, findById, findOne, updateOne, updateMany, findoneandupdate, save, deleteMany, deleteOne** and learn to manage the collection and documents in Node app.

[click here to read more](https://www.positronx.io/mongoose-schema-types-validation-queries-tutorial-with-examples/)
A quick guide to changing your GitHub username
Tags: showdev, devtips, github, git
Published: 2019-08-02 22:43:35

---
title: A quick guide to changing your GitHub username
published: true
tags: ["showdev","devtips","github","git"]
canonical_url: https://victoria.dev/verbose/a-quick-guide-to-changing-your-github-username/
cover_image: https://victoria.dev/verbose/a-quick-guide-to-changing-your-github-username/barcat_hu7812c3e32a841cc1ab09568139e9132c_71747_640x0_resize_box_2.png
---

This being the 2,38947234th and probably last time I’ll change my username, (marriage is permanent, right?) I thought I’d better write a quick post on how this transition can be achieved as smoothly as possible. You can read [official instructions on how to change your GitHub username](https://help.github.com/en/articles/changing-your-github-username) here, and they will tell you how to do it and what happens. The following is a quick guide to some things to consider _afterwards._

# Where to make changes

1. Change username in [GitHub account settings.](https://github.com/settings/admin)
2. If using GitHub Pages, change name of your “username.github.io” repository.
3. If using other services that point to your “username.github.io” repository address, update them.
4. If using Netlify, you _may_ want to sign in and reconnect your repositories. (Mine still worked, but due to a possibly unrelated issue, I’m not positive.)
5. Sign in to Travis CI and other integrations (find them in your repository Settings tab -> Integrations & services). This will update your username there.
6. Update your local files and repository links with _very carefully executed_ `find` and `sed` commands, and push back changes to GitHub.
7. Redeploy any websites you may have with your updated GitHub link.
8. Fix any links around the web to your profile, your repositories, or Gists you may have shared.

# Local file updates

Here are some suggestions for strings to search and replace your username in.

- `github.com/username` (References to your GitHub page in READMEs or in website copy)
- `username.github.io` (Links to your GitHub Page)
- `git@github.com:username` (Git config remote ssh urls)
- `travis-ci.com/username` (Travis badges in READMEs)
- `shields.io/github/.../username` (Shields badges in READMEs, types include `contributors`, `stars`, `tags`, and more)

You can quickly identify where the above strings are located using this command for each string:

`grep -rnw -e 'foobar'`

This will recursively (`r`) search all files for strings matching the whole (`w`) pattern (`e`) provided and prefix results with the line numbers (`n`) so you can easily find them.

Using `find` and `sed` can make these changes much faster. See [this article on search and replace](https://dev.to/victoria/how-to-replace-a-string-in-a-dozen-old-blog-posts-with-one-sed-terminal-command-bjd-temp-slug-5241663).

Enjoy your new handle! (I hope it sticks.)
Use Bourbon (Sass) in a Vue CLI Project
Tags: vue, saas, bourbon, neat
Published: 2019-07-28 18:28:32

First, ensure Sass is installed as a dev dependency (if you didn't select Sass while creating the project with the CLI):  
`npm install -D sass-loader sass`

Install bourbon and bourbon-neat:  
`npm install -D bourbon bourbon-neat`

Configure `css.loaderOptions.sass.includePaths` to use the correct paths:  
```javascript
//vue.config.js

const bourbon = require('bourbon');
const neat = require('bourbon-neat');

const bourbonPaths = [...bourbon.includePaths, ...neat.includePaths];

module.exports = {
  css: {
    loaderOptions: {
      sass: {
        includePaths: bourbonPaths,
      },
    },
  },
};
```

Import bourbon and neat (I did this in `src/scss/site.scss`):  
```scss
@import '_bourbon'; // leading underscore required*
@import 'neat';
```

Import `site.css` in your App:  
```vue
<template>
  ...
</template>

<style lang="scss">
@import '~@/scss/site';

body {
  background-color: tint(black, 80%); // use a bourbon function
}
.my-container {
  @include grid-container; // use a neat grid
}
</style>
```

\* I don't use Sass enough to understand why the leading underscore is needed. Without it there's a compilation error as it tries to load the bourbon package's main Javascript file instead of the CSS. Any insight would be appreciated.
📦Converting between quantities in different units
Tags: replit, python, functorflow
Published: 2019-07-28 17:02:20

---
title: 📦Converting between quantities in different units
published: true
tags: replit, python, functorflow
---

```python
from functorflow import ff, f

# gram to kilogram
r = f('convert-units.kg', g=2000 )
print(r)

# meter to inches
r = f('convert-units.in', m=5 )
print(r)
```


{% replit @functorflow/convert-units %}

## Supported Units


Length

    mm
    cm
    m
    in
    ft-us
    ft
    mi

Area

    mm2
    cm2
    m2
    ha
    km2
    in2
    ft2
    ac
    mi2

Mass

    mcg
    mg
    g
    kg
    oz
    lb
    mt
    t

Volume

    mm3
    cm3
    ml
    l
    kl
    m3
    km3
    tsp
    Tbs
    in3
    fl-oz
    cup
    pnt
    qt
    gal
    ft3
    yd3

Volume Flow Rate

    mm3/s
    cm3/s
    ml/s
    cl/s
    dl/s
    l/s
    l/min
    l/h
    kl/s
    kl/min
    kl/h
    m3/s
    m3/min
    m3/h
    km3/s
    tsp/s
    Tbs/s
    in3/s
    in3/min
    in3/h
    fl-oz/s
    fl-oz/min
    fl-oz/h
    cup/s
    pnt/s
    pnt/min
    pnt/h
    qt/s
    gal/s
    gal/min
    gal/h
    ft3/s
    ft3/min
    ft3/h
    yd3/s
    yd3/min
    yd3/h'

Temperature

    C
    F
    K
    R

Time

    ns
    mu
    ms
    s
    min
    h
    d
    week
    month
    year

Frequency

    Hz
    mHz
    kHz
    MHz
    GHz
    THz
    rpm
    deg/s
    rad/s

Speed

    m/s
    km/h
    m/h
    knot
    ft/s

Pace

    s/m
    min/km
    s/ft
    min/km

Pressure

    Pa
    hPa
    kPa
    MPa
    bar
    torr
    psi
    ksi

Digital

    b
    Kb
    Mb
    Gb
    Tb
    B
    KB
    MB
    GB
    TB

Illuminance

    lx
    ft-cd

Parts-Per

    ppm
    ppb
    ppt
    ppq

Voltage

    V
    mV
    kV

Current

    A
    mA
    kA

Power

    W
    mW
    kW
    MW
    GW

Apparent Power

    VA
    mVA
    kVA
    MVA
    GVA

Reactive Power

    VAR
    mVAR
    kVAR
    MVAR
    GVAR

Energy

    Wh
    mWh
    kWh
    MWh
    GWh
    J
    kJ

Reactive Energy

    VARh
    mVARh
    kVARh
    MVARh
    GVARh

Angle

    deg
    rad
    grad
    arcmin
    arcsec



> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
Supervisors Driven By Bottom Line Instead of Focusing Employee Well-Being Perform Worse (Study)
Tags: discuss, news, career, startup
Published: 2019-07-28 17:50:31

I doubt this incredibly surprising

## **[👉 Supervisors Driven By Bottom Line Fail To Get Top Performance From Employees, Baylor Study Says](https://www.baylor.edu/mediacommunications/news.php?action=story&story=211538)**

> - High-BLM supervisors create low-quality relationships with their employees.
- In turn, employees perceive low-quality leader-member exchange relationships.
- Thus, employees reciprocate by withholding performance.
- When supervisor BLM is high and employee BLM is low, the damaging effects are strengthened.
- When both supervisor and employee BLM are high, the negative performance is still evident.

Thoughts?
My First 3 Weeks as a Software Engineer Summarised in 10 Quotes and Emojis!👩‍💻
Tags: career, devops, csharp
Published: 2019-07-28 16:41:37

## Hi again! :)

I just finished my first 3 weeks as a Software Engineer. Woohoo! Here is my experience so far in 10 quotes and emojis! 👩‍💻


### 1 👩‍💻🤩 "I'm so excited, I can't sleep!. 😴Hey, get to sleep already! You need to be fresh for tomorrow!" 👩‍💻🤩 "Awwww....but I'm too excited!"

### 2 💃"Oooo....how does a Microsoft Surface Pro even work? What's this flappy thing at the back?"

### 3 "Hello Microsoft Windows, haven't used you in a while!...Windows Update!!! 😂"

### 4 "🤓 C# is so cool!!!! I finally get to use a static programming language!"

#### *Goes to build solution = ERROR ; expected

#### AHHHHHHHHHHH!!!!!!! 👿

### 5 "Let's get this code out! Deployment, what can possibly go wrong with the build and deployment pipeline? 🚀"

#### Deployment fails....arghhhhhh!!!!! 😡

#### Goes into ultra mode to fix issue 💪

#### Deployment passed - yipppeeee!!! 😎


### 6 "It works, it actually works!!! Oh yeah!! Ice cream time!" 🍦🙌🏼😃

### 7 "I can figure this out....I can figure this out...should I ask for help? 🤔Nah, I can figure this out...I can figure this out....oh man....I NEEEDDD HELP!!! SOMEONE HELP!!" 

### 8 "How have I not used Visual Studio IDE before? It's A-M-A-Z-I-N-G!!" 💻

### 9 "Am I meant to be here? I don't have a clue what's going on. Damn...I'm actually writing code!" 🎊

### 10 "Wow, I've learnt so much! How did all of this happen?" 😊

## Final Thoughts

#### As you can see, a lot of ups and downs, but I'm absolutely loving it! :)

Byeeeeeeee,

Kim
Out of the several different fields in programming,how do you decide which one is for you? 
Tags: discuss
Published: 2019-07-28 16:14:53

I'm a first year CS student and I have wet my foot on Web Development and spent time on both frontend (React) and backend (Django). I like both but would like to work more on backend if at all I go for web development. I also like pure software development. I'm yet to look into other fields. 
Tell me about your journey and your experience.
GitHub will add a “sponsor” button for donations to developers
Tags: discuss, developers, webdev, git
Published: 2019-07-28 16:09:29

---
title: GitHub will add a “sponsor” button for donations to developers
published: true
description: GitHub will add a “sponsor” button for donations to developers. In the first year, the service will not charge a percentage for processing payments.
tags: discuss, developers, webdev, git 
cover_image: https://i.postimg.cc/SNDHx82P/adaa.png
---

GitHub announced a test version of the Sponsors tool. It will allow financial support for developers, according to the project website.

Any user with an account on GitHub can become a sponsor. In the first year of operation, the Sponsors service will not charge a percentage for accepting payments - developers will be able to receive the full amount of money sent to them.

The company also launched a fund from which in the first year it will double the amount of each donation. The volume of the fund is $ 5,000 per developer.

![Github Subscribe](https://i.postimg.cc/W4QyB72p/aaass.png)

Users can choose an attraction model: a one-time donation or subscription through services like Patreon, Tidelift, Ko-fi and Open Collective. Not only developers but also other members of the community, such as mentors, will be able to attract money.

GitHub also announced the purchase of the Dependabot service, which updates the project's dependencies and helps to keep track of library updates. The amount of the transaction is not disclosed.

![Github Subscribe](https://i.postimg.cc/SNDHx82P/adaa.png)

Microsoft bought GitHub for $ 7.5 billion in the summer of 2018. The company promised to empower users throughout all development cycles and keep the platform open.
📦HTML to Markdown converter
Tags: replit, python, functorflow
Published: 2019-07-28 15:57:59

---
title: 📦HTML to Markdown converter
published: true
tags: replit, python, functorflow
---

```python
from functorflow import f

html = '...'
markdown = f('html-md', html)
print(markdown)
```

{% replit @functorflow/html-md %}

> Stop wasting time installing and configuring Python libraries. Use them right away. [📦FunctorFlow](https://functorflow.org) instantly auto-install and auto-config them for you.
What do you prefer: general all-in-one tools or focused single domain tools?
Tags: bestpractices, discuss, webdev
Published: 2019-07-28 15:54:54

---
title: What do you prefer: general all-in-one tools or focused single domain tools?
published: true
description: A question for the community regarding container images.
tags: bestpractices, discuss, webdev
cover_image: https://images.unsplash.com/photo-1533073526757-2c8ca1df9f1c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80
---

While refactoring an application recently I was thinking about its build pipelines and the tools available to modern app dev teams. Docker was heralded as the world savor (like every new tech is, but that is a different conversation); however the reality is multi GB images, version sprawl, and a lack luster meta-data system, and a security model that has been the bane of security teams for the past 5 years. It leaves a person longer for the `simpler times`.

It got me thinking, is containerizing the applications run time worth it? If we applying the software concept of *single responsibility* to the build process; each step would have a tool best suited for one domain of responsibility. The counter argument being "yet another tools to learn". But, honestly, everything is YAML configuration these days so how hard would it really be.

So the question: Do you prefer small, separate, specific tooling or one tool that _does it all_ to an acceptable level? What is the justification for you choice?

---

Cover image by [https://unsplash.com/@soymeraki](https://unsplash.com/photos/C7B-ExXpOIE)
Solve Overlapping Sudoku by OCR
Tags: ruby, rails
Published: 2019-07-28 15:37:04

# Tools used
・Ruby
・RMagick(ImageMagick)

# Method
・Detect cells by using pattern matching
・Determine number(0~9) by making 50 or more thresholds
・Determine the combination of cells normally
・Calculate answer of Sudoku normally

# URL

[Overlapping Sudoku auto solver](https://www.sentohsharyoga.com/en/puzzle/sudoku_multi/image/free_size)