Skip to content

Instantly share code, notes, and snippets.

View fabianelima's full-sized avatar

Fabiane Lima fabianelima

View GitHub Profile
# Piece of code written motivated but insecurities, and this text: https://blog.codinghorror.com/why-cant-programmers-program/
fizzbuzz = ->
arr = []
a = 0
while a < 100
a++
arr.push a
for i in arr
@fabianelima
fabianelima / css-bubble.css
Created September 15, 2017 17:55
CSS Bubble
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="UTF-8">
<style type="text/css">
.bubble {
width: 100%;
height: 100%;
max-width: 60px;
@fabianelima
fabianelima / preload.coffee
Last active September 13, 2017 17:17
Image preloader
imgs = [
'assets/img/img1.png'
'assets/img/img2.png'
'assets/img/img3.png'
]
preload = (imgs) ->
counter = 0
$(imgs).each ->
@fabianelima
fabianelima / draggie-droppie.coffee
Created September 13, 2017 17:11
Draggie & Droppie
# Functions I use all the time with jQuery UI
draggie: ->
$('.draggie').children().draggable
cursor: 'move'
revert: (event, ui) ->
this.data('uiDraggable').originalPosition =
top: 0
left: 0
!event