Skip to content

Instantly share code, notes, and snippets.

@willianis4w
willianis4w / A-Pen-by-Willian-Costa-Souza.markdown
Last active March 9, 2021 14:31
Tracking progress bar with CSS
@willianis4w
willianis4w / A-Pen-by-Willian-Costa-Souza.markdown
Last active July 31, 2019 12:09
Star rating with CSS and a little bit of jQuery
@willianis4w
willianis4w / Carousel vertical.
Last active January 3, 2016 03:39
Carousel vertical.
@willianis4w
willianis4w / index.html
Last active December 31, 2015 15:09
mixin para centralizar img dentro de uma div
<div class="img__wrapper">
<img src="" alt="" />
</div>
@willianis4w
willianis4w / new_function.sublime-snippet
Last active December 31, 2015 01:19
Snippet para nova funcão no sublime.
<snippet>
<content><![CDATA[
@willianis4w
willianis4w / A-Pen-by-Willian-Costa-Souza.markdown
Last active December 30, 2015 20:08
A Pen by Willian Costa Souza.
@willianis4w
willianis4w / tooltip.css
Last active December 29, 2015 17:58
Tooltip with CSS3 Example: http://codepen.io/anon/pen/enIjq
.tooltip {
font-weight: bold;
position: relative;
}
.tooltip:hover:after {
background: #fff;
box-shadow: 0 0 5px #DFE3E6;
border: 1px solid #DFE3E6;
border-radius: 5px;
@willianis4w
willianis4w / algoritmo.cpp
Last active December 29, 2015 01:29
Implementação básica de inserção e remoção em uma fila, utilizando FIFO (first in first out). em c++. Obs: /* os comentários estão no código em si, envoltos desta marcação*/
/* Cria a estrutura da fila. */
struct fifo_node
{
/* Cria um ponteiro (*next) apontando para a própria estrutura */
struct fifo_node *next;
/* Valor qualquer, apenas de exemplo */
value_type value;
};
@willianis4w
willianis4w / centered.html
Last active December 29, 2015 00:29
Mixin para centralizar uma img dentro de uma div, por exemplo.
<div>
<img />
</div>
@willianis4w
willianis4w / for.sublime-snippet
Created November 11, 2013 16:53
php for snippet
<snippet>
<content><![CDATA[
<?php for( \$i= 1; \$i <= 3; \$i++ ): ?>
${1}
<?php endfor ?>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>for</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->