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
| physicsBuffer: 0 | |
| physicsFPS: 0.016 # 60 fps | |
| animate: (delta) -> | |
| @physicsBuffer += delta | |
| while @physicsBuffer > @physicsFPS | |
| @tickPhysics(@physicsFPS) | |
| @physicsBuffer -= @physicsFPS | |
| tickPhysics: (delta) -> |
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
| helpers do | |
| def do_something | |
| # look at request.path | |
| end | |
| 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
| configure :development do | |
| activate :directory_indexes | |
| 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
| @keyframes animate-particle { | |
| 0% { | |
| background-position: 0 0px; } | |
| 1.695% { | |
| background-position: 0 -124px; } | |
| 3.39% { | |
| background-position: 0 -248px; } |
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
| var prop = "transform", | |
| vendorProp, supportedProp, supports3d, supports2d, supportsFilter, | |
| // capitalize first character of the prop to test vendor prefix | |
| capProp = prop.charAt(0).toUpperCase() + prop.slice(1), | |
| prefixes = [ "Moz", "Webkit", "O", "MS" ], | |
| div = document.createElement( "div" ); |
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
| source :rubygems | |
| gem "middleman" | |
| gem "middleman-i18n" |
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
| @-webkit-keyframes animate-play { | |
| @for $i from 0 through 116 { | |
| $s: ($i * 100) / 116 + "%"; | |
| #{$s} { background-position: 0 ($i * -70px); } | |
| } | |
| } |
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
| =color-mixer($color-name, $color-hex) | |
| $color-name: $color-hex | |
| $color-name + Light: lighten($color-name, 8%) | |
| $color-name + Lighter: lighten($color-name, 16%) | |
| $color-name + Dark: darken($color-name, 8%) | |
| $color-name + Dark: darken($color-name, 16%) | |
| $purple | |
| +color-mixer($purple, #a2385d) |
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
| --- | |
| es: | |
| hello: "Hola" | |
| paths: | |
| "hello/mister": "hola/senor" |
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
| #= require './includes/helpers'; | |
| body { | |
| margin: 0; | |
| &> header { | |
| .dimensions(100%, auto); | |
| } | |
| } |