This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| imgs = [ | |
| 'assets/img/img1.png' | |
| 'assets/img/img2.png' | |
| 'assets/img/img3.png' | |
| ] | |
| preload = (imgs) -> | |
| counter = 0 | |
| $(imgs).each -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |