teleren/devto huggingface dataset:
Youtube Downloader Button/Iframe API
Tags: youtuedownloaderapi
Published: 2019-03-19 15:50:14

---
title: Youtube Downloader Button/Iframe API
published: true
description: Youtube to mp3 conversion API's
tags: youtue downloader api
---
# Youtube Downloader Button/Iframe API
Youtube to mp3 conversion API's
<h4 class="panel-title panel-heading">Set the "src" attribute of an HTML iframe to:</h4>
<pre class="prettyprint lang-html">https://api.download-lagu-mp3.com/@api/button/<b><span class="nocode" style="color:#65b042">{format}</span></b>/<b><span class="nocode" style="color:#65b042">{YouTube-Video-ID}</span></b></pre>
<h4 class="panel-title panel-heading">Where <code><b>{format}</b></code> is one of the following:</h4>
<div class="panel-title panel-heading">
<ul style="margin-bottom:0">
<li>"<b>mp3</b>" : for MP3 results</li>
<li>"<b>videos</b>" : for Video w/Audio results</li>
<li>"<b>videostreams</b>" : for Video-Only results</li>
<li>"<b>audiostreams</b>" : for Audio-Only results</li>
</ul>
<h4 class="panel-title panel-heading">Main Feature:</h4>
<div>

<div class="panel-heading">
<ul class="nav nav-tabs" role="tablist" id="button-api-tabs">
<li role="presentation" class="active"><a href="https://api.download-lagu-mp3.com" aria-controls="home" role="tab" data-toggle="tab">Fast Server</a></li>
<li role="presentation"><a href="https://api.download-lagu-mp3.com" aria-controls="messages" role="tab" data-toggle="tab">Cloud Computing Networks</a></li>
<li role="presentation"><a href="https://api.download-lagu-mp3.com" aria-controls="messages" role="tab" data-toggle="tab">Global Content Delivery Network (CDN)</a></li>
<li role="presentation"><a href="https://api.download-lagu-mp3.com" aria-controls="settings" role="tab" data-toggle="tab">Multiple Converter Servers</a></li>
<li role="presentation"><a href="https://api.download-lagu-mp3.com" aria-controls="settings" role="tab" data-toggle="tab">1 Gbit/s Port Speed</a></li>
<li role="presentation" class="active"><a href="https://api.download-lagu-mp3.com" aria-controls="home" role="tab" data-toggle="tab">High Performance Dedicated Servers</a></li>
</ul>
Beginners Life
Tags: beginners, development
Published: 2019-03-19 15:42:23

---
title: Beginners Life
published: true
description: Step One of Chapter XX
tags: Beginners, Development
---

My first year here in the DEV.to. What a great experience inside this page and I am so grateful to be part of this growing organization. Where the developers can share ideas and advises the young from development. 


I learned a lot of ideas when it comes to becoming a developer. It's kinda fun and at the same time, will make you burn out (If you stay all day on your seat). Learning new technologies, updating the syntaxes of codes (Well, hello, JavaScript!), and learning how to create content. I need more practice and socialize with the people that involves technology. It's a great thing also if I can find a mentor who can help me to improve my programming skills, and in the future, I want to help newbies how to start their career in programming development.

I know the best thing is coming and the grateful moment will be in our hands.


May the odds be in our favor! 🤝
Hypebot is the hype man who never lets me down
Tags: slackbot, slack, emoji, api
Published: 2019-03-19 18:23:55

---
title: Hypebot is the hype man who never lets me down
published: true
tags: slackbot,slack,emoji,api
canonical_url: https://blog.transposit.com/hypebot-is-the-hype-man-who-never-lets-me-down-cbc47d08dd66
---
Written by Sarah Brown

![](https://cdn-images-1.medium.com/max/479/0*qtlNrmUh3TaXnaiH)

### The birth of hype

It’s the middle of our company hackweek, and my hackweek project is not working. I’m trying to convert [dwarf fortress release notes](http://www.bay12games.com/dwarves/) into emoji, but I keep hitting rate limits and — what’s maybe more detrimental — there is no emoji symbol for dwarf 🤷. I’m also vastly outnumbered in a Slack poll for what flavored waffles we’re buying for the office.

![](https://cdn-images-1.medium.com/max/623/0*2UDoLroq0OWeuhvf)<figcaption>Salted Caramel Conspiracy</figcaption>

I know what I must do: abandon my hackweek project and write a slackbot that votes Apple Cinnamon. Unfortunately, the Slack API does not allow bots to click buttons 😒. I change tack and instead create **hypebot** , a bot who reacts emphatically to everything I say in slack.

![](https://cdn-images-1.medium.com/max/800/1*WqXjF0JYTNQQtNSu_iZrhg.png)

And Tuan too because he’s starved for hype.

![](https://cdn-images-1.medium.com/max/800/1*qsL9A6GWv93Hhyd2nLP2tw.png)

### The hype-cycle

![](https://cdn-images-1.medium.com/max/722/0*DXaA3Nqd3t2rDkWf)

Hypebot is built using Slack’s [event subscription api](https://api.slack.com/events-api), with the backend running on [Transposit](https://www.transposit.com/). You can check out all of hypebot’s code here: [https://console.transposit.com/t/transposit-sample/hypebot](https://console.transposit.com/t/transposit-sample/hypebot/code/op/webhook)

![](https://cdn-images-1.medium.com/max/1024/0*3Y-xtwikGP0163Qy)<figcaption>The Transposit Console</figcaption>

When hypebot receives a message event from Slack, it splits the string into discrete words and looks each word up in the thesaurus. Then, armed with hundreds of synonyms, it compares each word to all potential Slack emojis. When it finds a match, it reacts. Thus the hype-cycle is complete.

![](https://cdn-images-1.medium.com/max/774/0*oO1UdIAatWfbO-N9)

Implementing this in Transposit meant I didn’t need to deploy my own server, and Transposit made it easy to keep track of bot OAuth scopes when making API calls. No infra; no auth; pure hype.

### Taking it to the next level

The hype train doesn’t end here. I’ve got upcoming hypebot posts about how we addressed performance problems when things were overhype, and how we can modify hypebot for his eventual debut on the Slack app directory. Of course if you’re too hype to wait, go ahead and [fork hypebot on Transposit](https://console.transposit.com/t/transposit-sample/hypebot?readme=true) to build your own slackbot.

![](https://cdn-images-1.medium.com/max/1024/0*lEnHnzacA4aRbi_s)

Sadly hypebot can’t add claps to a medium post via the api (believe me, I checked), so you’ll just have to do this the old fashioned way: 🙏👏

* * *
🐔 I made a PHP Library "Conv-Laravel": Auto-generate MySQL migration queries. 🤖
Tags: conv, php, laravel, showdev
Published: 2019-03-19 15:25:32

---
title: 🐔 I made a PHP Library "Conv-Laravel": Auto-generate MySQL migration queries. 🤖
published: true
cover_image: https://thepracticaldev.s3.amazonaws.com/i/hpm2d58qbtlmwmw14lgl.gif
description: Auto-generate MySQL migration queries from DDL(CREATE) and actual DB on Laravel/Lumen.
tags: #Conv #PHP #Laravel #showdev
---


![thumbnail](https://thepracticaldev.s3.amazonaws.com/i/hpm2d58qbtlmwmw14lgl.gif)
[full size](https://thepracticaldev.s3.amazonaws.com/i/eh53otutrf9c0vtduxlx.gif)

{% github howyi/conv-laravel %}

# feature

Generate MySQL migration queries from actual DB (\PDO) and DDLs (CREATE queries)

# motivation
I'm tired of writing migration queries ... 😌

## install

1. require library (Laravel/Lumen)
```
composer require "howyi/conv-laravel" --dev
```

2. publish config (only Laravel)
```
php artisan vendor:publish --provider="Howyi\ConvLaravel\ConvServiceProvider"
```

3. schema initialize (Laravel/Lumen)
```
php artisan conv:reflect
```
generate CREATE queries on `database/schemas`

## usage
 
1. edit CREATE query (in schema directory)
2. `php artisan conv:generate` to generate migrations from actual Database - CREATE queries
3. `php artisan migrate` to migration

# example
example repository 😉
{% github howyi/conv-laravel-example %}
Exploring Ruby: What the hash?
Tags: ruby, programming
Published: 2019-03-19 15:10:48

---
title: Exploring Ruby: What the hash?
published: true
description: Let's take a look at a potential pitfall in Ruby's hashes
tags: Ruby, Programming
canonical_url: http://filipdefar.com/2015/08/what-the-hash.html
---

A while ago I came across a piece of ruby code that got me a bit puzzled.

Let's say we need a hash that has an array for each value. It would be reasonable to create a hash that has an empty array as the default value instead of nil, right?

Ok let's try with this:
```ruby
hash = Hash.new([])
hash[:foo].push "Bar"
hash # => {}
```
Hmm ok. That does not seem to work very well. So did we store anything in that key?

```ruby
hash[:foo] # => ["Bar"]
```

Wait, so it is there?

```ruby
hash # => {}
```

Aaaaand it's gone. What the cabbage?

Let's check the documentation for [Hash.new](https://ruby-doc.org/core-2.6.2/Hash.html#new-method).

> Returns a new, empty hash. If this hash is subsequently accessed by a key that doesn't correspond to a hash entry, the value returned depends on the style of new used to create the hash. In the first form, the access returns nil. **If obj is specified, this single object will be used for all default values.**

So if we specify an object as a default value, that single instance will always be returned for unknown keys. If we modify that instance, then modified version will be returned.

So when we did this:

```ruby
hash[:foo].push "Bar"
```

We accessed that default object and modified it. But we have never set a value for the `:foo` key. Reading a value from a hash does not modify the hash itself, even when the default value is set. And that's why we get back an empty hash.

However, if we access the `:foo` key, we get our array with "Bar" string in it, because that's the new default value. Actually if we access any other key that does not exist, we will get that same array.

```ruby
hash[:fiz] # => ["Bar"]
```

So for this specific use case, we should use the third option when creating a new hash, and that's using a block. According to Ruby documentation, this should work properly.

> If a block is specified, it will be called with the hash object and the key, and should return the default value. It is the block's responsibility to store the value in the hash if required.

```ruby
hash = Hash.new { |hash, key| hash[key] = [] }
hash[:foo].push "Bar"
puts hash # => { :foo => ["Bar"] }
```

In this case, we assign a new value for the default key by merely accessing it, and this works as expected.

However, this might not be a very wise idea, modifying a hash when someone tries to read a value seem like a pretty unexpected behaviour and might confuse your fellow developers, or future you.
Archive Your Git Repo
Tags: git, code, archive
Published: 2019-03-19 14:56:00

---
published: true
description: Archive Your Git repository, while including no historical information
layout: post
title: Archive Your Git Repo
date: '2019-03-19T10:56:00.001-04:00'
author: Michael Callaghan
tags: git,code,archive
modified_time: '2019-03-19T10:56:00.001-04:00'
feature: assets/img/github.png
cover_image: https://walkingriver.com/assets/img/github.png
canonical_url: https://walkingriver.com/archive-your-git-repo/
---
Cross-posted from [https://walkingriver.com/archive-your-git-repo/](https://walkingriver.com/archive-your-git-repo/)

Did you know there is a very simple and straightforward command to archive a complete Git repository, while including no historical information? In this brief article I explain both how and why I do it.
<!--more-->

## Why Archive Your Git Repo?
Every few weeks or so, I find myself needing to archive my Git repo. Often I do this to send code to someone who has no reason to access the repo directly. They just need a snapshot of the code, with no history information, because they won't be contributing to it.

I also provide a snapshot of my code for every module in [my Pluralsight courses](https://www.pluralsight.com/authors/michael-callaghan). Being able to archive my Git repo into a zip file is very handy.

For some reason, I can never remember how to do this, and find myself looking it up repeatedly. I decided to write about it here so that I could always find it when I need it. And just maybe it will help someone other than just me.

## How to Do It
If you want to backup a Git repo, completely detaching it from Git, use one of the following variations of the `git archive` command:

### Zip File
```sh
git archive --format zip --output /full/path/to/zipfile.zip master
```

### Tar File:

```sh
git archive master > /some/other/path/my-repo.tar
```


### Tar / Bzip:

```sh
git archive master | bzip2 > my-repo.tar.bz2
```

In each of these cases, the word `master` is the branch I am archiving. You can archive any branch you want, simply by replacing `master` with the name of your desired branch.

Though not strictly necessary, I like to create my archive from the root of my repo, and have my archive created outside of it. 

_Note: The archive will not contain the .git directory, but will contain other hidden git-specific files like .gitignore, .gitattributes, etc._

## Reference

[https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export]()


---
Codebase is too large. Any tips on how you quickly understood existing codebase on your first job?
Tags: firstjob, confused, help
Published: 2019-03-19 14:32:00

---
title: Codebase is too large. Any tips on how you quickly understood existing codebase on your first job?
published: true
description: I need advice on how to start contributing to the success of the product as soon as possible 
tags: firstjob,confused,help
cover_image: https://images.unsplash.com/photo-1551419762-4a3d998f6292?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80--
---
Yesterday was the beginning of a new chapter in my career. I was given a warm welcome by the team I'll be working with on my first job. It's a full-stack role where the team uses React/Redux on the front-end and Laravel on the backend. 

## Where do I need help?
First, so far, I have always started all my projects on my own because I was using them for practice. Now all the coding tutorials and practice turned into a job and words cannot express how happy I am. Here's the challenge, There's an existing codebase I have to jump on, understand and contribute. I have been given 1 week to familiarize myself with everything and I'll be assigned a task on Monday, next week.

Second, I have only gone through tutorials and built minimal APIs with NodeJS and express but the team uses Laravel. I haven't worked with Laravel before now, so any advice, resources on building APIs with Laravel framework will be appreciated. They also use a TDD approach so I'll appreciate any advice and resource that can get me started on TDD with Laravel API.
Level up your JavaScript skills with 5 Github repositories
Tags: javascript, github, algorithms, mathematics
Published: 2019-03-19 14:28:15

---
title: Level up your JavaScript skills with 5 Github repositories
published: true
description: 
tags: javascript,github,algorithms,mathematics
cover_image: https://thepracticaldev.s3.amazonaws.com/i/n33chcfg8qosxj2or3um.jpg
---


So you know the bases, you work with React, Vue, Angular, Node, VanillaJS … but sometimes you get stuck on your code and that's frustrates you ?
Or maybe you want to be better in coding challenges. No matter the reason, these Github repositories will help you to be a better JavaScript developer anyway.


---

##Algorithms / Computer Science

[https://github.com/trekhleb/javascript-algorithms](https://github.com/trekhleb/javascript-algorithms)

You'll find everything about algorithms and data-structure, it's very complete, classed in two categories (Beginner/Advanced).
Of course, I advise you to start with the Beginner part.
There are informations about Big O notation and data structure operations / array sorting algorithms complexity.

##Maths

[https://github.com/Jam3/math-as-code](https://github.com/Jam3/math-as-code)

Okay, you can do some maths in the repository above. But with this one, you'll see way more maths like Euclidean norm. Therefore, how math formulas are represented in JavaScript.

##33 concepts you should know

[https://github.com/leonardomso/33-js-concepts](https://github.com/leonardomso/33-js-concepts)

In this repository you'll find algorithms of course but specially what makes JavaScript: Call stack, Types, Scope, Generators, etc.
After that, you'll able to say "yes I know JavaScript works" 😏

##30 seconds of code

[https://github.com/30-seconds/30-seconds-of-code](https://github.com/30-seconds/30-seconds-of-code)

It gathers many snippets. The website is really cool, but you have the same content on the README file.
There are the specs and the examples.

##Modern JS Cheatsheet

[https://github.com/mbeaudru/modern-js-cheatsheet](https://github.com/mbeaudru/modern-js-cheatsheet)

So yes, this is a cheatsheet. And a very good one. You have many examples and explanations.


---

I hope these repositories will help you. It's a lot of information, but you'll find many codes to practice.
Don't hesitate to share other repositories.

Feel free to follow me on Twitter : [@Assitan_K](https://twitter.com/Assitan_K)

Can also check out my Courses platform Codistwa and my YouTube channel.
Minimal API in c
Tags: help
Published: 2019-03-19 14:20:48

Hi !

I recently started to explore the possibilities of creating my own API and so far, it is pretty much simple in Python and C#; that's why I wanted to dive a little deeper in it and try to create my own in C.

The problem is that it seems that I can't find any accessible and minimalist implementation of an API in C (with its basic concepts, such as `socket` for example).

Could anyone show me / link me a resource that would explain me how to do a small hello world for example (as [flask](http://flask.pocoo.org/) does) ?

Thank you !
Get the best Mac terminal experience
Tags: terminal, utility
Published: 2019-03-19 14:18:05

---
title: Get the best Mac terminal experience
published: true
description: Want your Mac terminal to look like the one you see in screenshots posted online. Let’s start.
tags: Terminal, Utility
---
![](https://thepracticaldev.s3.amazonaws.com/i/vfcmxsialbpzlomvyqtv.png)

Want your Mac terminal to look like the one you see in screenshots posted online. Let’s start.

##Install iTerm2
Download the iTerm2 terminal v3.3 from here. This link is of nightly build but you can safely use it. I’m using it for a long time. It is stable enough for daily use.

Extract the zip file and move the app file to the Application directory.

##Styling Terminal
+ Open iTerm. Go to Preferences.
+ Select the Appearance tab and then select Minimal option in theme.

![](https://thepracticaldev.s3.amazonaws.com/i/dfehtibb1yp8xn7l3kzg.png)


+ Select the Profiles tab. To change the background color of the terminal, Set RGB hex of background color to 263239 as shown below in image.

![](https://thepracticaldev.s3.amazonaws.com/i/s7vngk7fiwobv7luewgb.png)


##Install oh-my-zsh
You can install oh-my-zsh using curl or wget.

**Curl command:** sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

**OR**

**Wget command:** sh -c “$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)”

###Restart your terminal and you should see your new cool terminal.

***
*This article was first published [here](https://medium.com/@chandresh_singh/get-the-best-mac-terminal-experience-6baa1e8241ed)*.
ROADMAP BECOMING A WEB DEVELOPER IN 2019
Tags: beginners, developer
Published: 2019-03-19 13:43:50

---
title: ROADMAP BECOMING A WEB DEVELOPER IN 2019
published: True
cover_image: https://thepracticaldev.s3.amazonaws.com/i/dm7zl7kp8yoq0fmda93d.png
description: Are you looking forward to learning web development?
tags: #beginners, #developer
---
### Introduction to Web Development

![introduction to web development] (https://thepracticaldev.s3.amazonaws.com/i/kdk8nl0a846bgiu1buc2.jpg)


### Front-end Development

![front-end development] (https://thepracticaldev.s3.amazonaws.com/i/pghmlb35ayac2sol1cvj.jpg)


### Back-end Development

![back-end development] (https://thepracticaldev.s3.amazonaws.com/i/chdwy1uu8avbyw9zi7br.jpg)


### DevOps

![devops] (https://thepracticaldev.s3.amazonaws.com/i/9wsqbm9jholmjji65may.jpg)

Join my [telegram channel](https://t.me/theprogrammersclub)
Digital Tesseract
Tags: marvel, outerspace, computers
Published: 2019-03-19 13:20:12

---
title: Digital Tesseract
published: true
description: Are Machines Our Link to MultiDimensional Understanding?
 
tags: Marvel, Outer Space, Computers
---

![4d](https://upload.wikimedia.org/wikipedia/commons/5/55/8-cell-simple.gif)

# WTF Can Arrays Really Do?

<p> Not going to go super deep down the rabbit hole or offer you colored pills, but  a reoccurring theme keeps appearing in my conversation about tech with my non-tech friend; computers were designed to function like the human brain and then some.</p>

<p> TLDR (watch): Just going to give you the pop-culture references I use sometimes to back my argument up:</p> 

* [Russian Doll] (https://www.netflix.com/title/80211627) <p> - Female computer programmer is stuck in a while loop until she does a particular thing. </p>
 

* [Marvel Tesseract] (https://marvelcinematicuniverse.fandom.com/wiki/Tesseract)<p> - Thanos </p>

* [A Wrinkle In Time](https://www.refinery29.com/en-us/2018/03/192728/tesseract-definition-wrinkle-in-time-space-dimension) - <p> Dude gets lost in a different dimension when playing in his science lab </p>


 
{% twitter 1107986420969291777 %}

<p> I discussed a little bit of where I'm gravitating towards on Periscope, but the thought is definitely premature. Do you think that computers have limitations or is hardware limitless with the correct programming? Will time travel be possible with an array or loop one day? Is the world only 3D and I'm reaching? How you feel? </p>
Vue helper for beginners (printable version)
Tags: vue, documentation
Published: 2019-03-19 13:19:42

---
title: Vue helper for beginners (printable version)
published: true
description: I made a little Vue helper for me and I wanted to share it with you.
tags: Vue, documentation
---

Hello folks.

I made a little Vue helper for me and I wanted to share it with you.This post contains the printable version.
Have fun.
bunny ©YUKIJI (https://www.instagram.com/machiko324/)



![alt text](https://thepracticaldev.s3.amazonaws.com/i/d5m84yi7hctbkogl8fil.png)

![alt text](https://thepracticaldev.s3.amazonaws.com/i/l10oweeh4q8rn4gnx7hc.png)

![alt text](https://thepracticaldev.s3.amazonaws.com/i/90amx7yx40ckbwaqt9on.png)

![alt text](https://thepracticaldev.s3.amazonaws.com/i/or2uyxc67lscqawdzdg4.png)

![alt text](https://thepracticaldev.s3.amazonaws.com/i/i2t6misrbwcowjt37udr.png)

![alt text](https://thepracticaldev.s3.amazonaws.com/i/fkvr8tili89xd5dgg0cp.png)
You get two professional apologies per year. That's it.
Tags: career, advice
Published: 2019-03-19 13:10:08

---
title: You get two professional apologies per year. That's it.
published: false
description: Link to article with good career advice around apologies
tags: career, advice
cover_image: https://thepracticaldev.s3.amazonaws.com/i/cgsqsg8emhtxyxqcltx5.jpg
published: true
---



Jessica Hagy wrote a great article on Forbes about [things to never apologize for at work](https://www.forbes.com/sites/jessicahagy/2016/06/28/10-things-to-never-apologize-for-again). While the apology theme is great, there are lots of hidden career-advice gems as well. I love her simple, hard-hitting graphs!

It reminds me how I've coached some people that they are only allowed two professional apologies at work per year, so they should use them wisely.