Skip to content

Instantly share code, notes, and snippets.

View yurisbv's full-sized avatar

yuri Brandão yurisbv

View GitHub Profile
@yurisbv
yurisbv / bobp-python.md
Created March 23, 2017 12:04 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@yurisbv
yurisbv / index.html
Last active May 11, 2016 21:29
yurisbv.github.io
<header>
<h1 id="titulo">Yuri Website</h1>
<h2>Desenvolvedor front-end</h2>
<br>
<h3><i class="fa fa-whatsapp fa-lg"></i>
(21) 9669 20612</h3>
<h3 id="email"><i class="fa fa-envelope-o fa-lg"></i><a href="mailto:contato@yuri.website">contato@yuri.website</a></h3>
<br>
<h3 id="social"><a href="https://github.com/yurisbv/" target="_blank"> <i class="fa fa-github fa-3x"></i></a>
<a href="https://br.linkedin.com/in/yuri-soares-brandão-95211010a
@yurisbv
yurisbv / index.html
Created January 29, 2016 01:05
qOgVoq
<div class="container-fluid">
<div class="row">
<div class="spam">
<nav class="navbar navbar-default" role="navigation">
<div class="col-md-12">
<div class="navbar-header">
<a class="navbar-brand" href="#">Meu Portfólio</a>
</div>
<ul class="nav navbar-nav navbar-right">
<li>
// Bonfire: Mutations
// Author: @yurisbv
// Challenge: http://www.freecodecamp.com/challenges/bonfire-mutations?solution=function%20mutation(arr)%20%7B%0A%20%20%0A%20%20var%20i%3D0%2Carr1%2Carr2%2Cletra%3B%0A%20%20%0A%20%20arr2%3D%20arr.pop().toLowerCase()%3B%0A%20%20arr2%3D%20arr2.split(%27%27)%3B%0A%20%20arr1%20%3D%20arr.pop(%27%27).toLowerCase()%3B%0A%20%20arr1%20%3D%20arr1.split(%27%27)%3B%0A%20%20%0A%20%20for(i%3Bi%3Carr2.length%3Bi%2B%2B)%7B%0A%20%20%20%20%2F%2Fletra%3Darr2.pop()%3B%0A%20%20%20%20if%20(arr1.indexOf(arr2%5Bi%5D)%3D%3D%3D-1)%0A%20%20%20%20%20%20return%20false%3B%0A%20%20%7D%0A%20%20%0A%20%20return%20true%3B%0A%7D%0A%0Amutation(%5B%22hello%22%2C%20%22yeh%22%5D)%3B%0A
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function mutation(arr) {
var i=0,arr1,arr2,letra;
arr2= arr.pop().toLowerCase();
// Bonfire: Truncate a string
// Author: @yurisbv
// Challenge: http://www.freecodecamp.com/challenges/bonfire-truncate-a-string?solution=function%20truncate(str%2C%20num)%20%7B%0A%20%20%2F%2F%20Clear%20out%20that%20junk%20in%20your%20trunk%0A%20%20%2F%2FSe%20o%20str.length%20%3E%20num%20return%20%22...%22%0A%20%20%2F%2FSe%20o%20str.length%20%3C%3D%203%20retornar%20num%2B...%0A%20%20%2F*%0A%20%20if(str.length%20%3E%20num)%7B%2F%2Fadicionar%20...%0A%20%20%20%20return%20str.slice(0%2Cnum-3).concat(%22...%22)%3B%0A%20%20%20%20%20%7D%20%0A%20%20else%20%0A%20%20%20%20%20if(str.lenght%20%3C%3D%203)%7B%0A%20%20%20%20%20%20%20return%20str.slice(0%2Cnum).concat(%22...%22)%3B%0A%20%20%20%20%20%7D%0A%20%20return%20str%3B%0A%7D%0A*%2F%0A%20%20if(num%20%3C%204)%7B%0A%20%20%20%20%20%20%20return%20str.slice(0%2Cnum).concat(%22...%22)%3B%0A%20%20%20%20%20%7D%0A%20%20else%0A%20%20%20%20if%20(str.length%20%3E%20num)%7B%2F%2Fadicionar%20...%0A%20%20%20%20return%20str.slice(0%2Cnum-3).concat(%22...%22)%3B%0A%20%20%20%20%20%7D%0A