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
| [ | |
| { "keys": ["alt+shift+w"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } }, | |
| { "keys": ["ctrl+k", "ctrl+z"], "command": "title_case" }, | |
| { "keys": ["ctrl+shift+r"], "command": "reindent" } | |
| ] |
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
| <html> | |
| <head> | |
| <title>Positioning Scripts</title> | |
| <!-- exemplo de posicionamento ineficiente --> | |
| <script src="arquivo1.js"></script> | |
| <script src="arquivo2.js"></script> | |
| <script src="arquivo3.js"></script> | |
| <script src="arquivo4.js"></script> | |
| <script src="arquivo5.js"></script> | |
| <script src="arquivo6.js"></script> |
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
| <!--[if lt IE 8]> | |
| <style> | |
| ul li { width: 114px; display: block; float: left; } | |
| ul li a { position: absolute; top:50%; left: 10px; width: } | |
| ul li a span {position: relative; top: -50%; left: 10px;} | |
| </style> | |
| <![endif]--> | |
| <ul> | |
| <li><a href="javascript:;"><span>Link has two lines, really two lines</span></a></li> |
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
| function findEmployee(id) { | |
| var employee; | |
| employees.some(function (e) { | |
| if (e.id === id) { | |
| employee = e; | |
| return true; | |
| } | |
| }); | |
| return employee; | |
| } |
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
| module Compass::SassExtensions::Functions::Sprites | |
| def sprite_url(map) | |
| verify_map(map, "sprite-url") | |
| map.generate | |
| generated_image_url(Sass::Script::String.new(map.name_and_hash)) | |
| end | |
| end | |
| module Compass::SassExtensions::Sprites::SpriteMethods | |
| def name_and_hash |
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
| # no layout | |
| <%= yield(:page_javascript) %> | |
| # na view | |
| <% content_for(:page_javascript) do %> | |
| # o que for escrito aqui vai no layout | |
| <% end %> |
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
| img[src*="gstatic.com/"], img[src*="googleapis.com/"] { | |
| max-width: 99999px; | |
| } |