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
| &[class*="pull"] { | |
| &[class*="left"] { | |
| margin-right: 20px; | |
| } | |
| &[class*="right"] { | |
| margin-left: 20px; | |
| } | |
| } |
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
| // layout file | |
| <body> | |
| <div class="container"> | |
| <%= flash_messages %> | |
| <%= yield %> | |
| </div><!-- /container --> | |
| </body> |
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 drawSVGArrow($width, $height, $direction = "right") { | |
| switch ($direction) { | |
| case "right": | |
| $points = array( | |
| "0, 0", | |
| $width.", ".floor($width/2), | |
| "0, ".$width | |
| ); |
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
| /* | |
| loadFonts - a sort-of hacky way to check if fonts have loaded | |
| "Forked" from this: http://stackoverflow.com/a/11689060 | |
| */ | |
| function loadFonts (fonts, callback) { | |
| var loadedFonts = 0, fontList = [], interval; | |
| for(var i = 0, l = fonts.length; i < l; ++i) { | |
| (function(font) { | |
| var node = document.createElement('span'); |
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
| <section class="row"> | |
| <div class="block"> | |
| <div class="front"> | |
| <div class="contain"> | |
| <p>F</p> | |
| </div> | |
| </div> | |
| <div class="back"> | |
| <div class="contain"> | |
| <p>is for<br>Feynman</p> |
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
| SET @rownum := 0; | |
| SELECT rank FROM (SELECT @rownum := @rownum + 1 AS rank, id, complete FROM users WHERE complete=1 ORDER BY created_at) as result WHERE id=27; |
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($) { | |
| }(jQuery)); |
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 getClass(obj:Object):Class | |
| { | |
| return Class( getDefinitionByName( getQualifiedClassName(obj) ) ); | |
| } |