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
| import org.mozilla.javascript.Context; | |
| import org.mozilla.javascript.Function; | |
| import org.mozilla.javascript.NativeObject; | |
| import org.mozilla.javascript.Scriptable; | |
| import org.mozilla.javascript.commonjs.module.Require; | |
| import org.mozilla.javascript.commonjs.module.RequireBuilder; | |
| import org.mozilla.javascript.commonjs.module.provider.SoftCachingModuleScriptProvider; | |
| import org.mozilla.javascript.commonjs.module.provider.UrlModuleSourceProvider; | |
| import java.io.File; |
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
| LazyGenerator.from 1..10 where { it < 3 } transform { it * idx++ } using idx:0 each { | |
| println "Transformed Range $it" | |
| } | |
| LazyGenerator.from x:1..5, y:2..5 where { ( x + y ) % ( x + 2 ) == 0 } eachWithIndex { match, idx -> | |
| println "$idx) $match" | |
| } | |
| LazyGenerator.from 1..10 each { | |
| println "Range: $it" |
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
| /* | |
| * Grid Overlay for Twitter Bootstrap | |
| * Assumes a 1.692em baseline grid (22px/13px) | |
| */ | |
| @media (min-width: 1200px) { | |
| body { | |
| background: -webkit-gradient(linear, top left, bottom left, color-stop(0%, rgba(0, 0, 0, 0.05)), color-stop(4.545%, rgba(0, 0, 0, 0.05)), color-stop(4.545%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0))), -webkit-gradient(linear, top left, top right, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(35%, rgba(0, 0, 0, 0)), color-stop(35%, rgba(0, 0, 0, 0.05)), color-stop(36%, rgba(0, 0, 0, 0.05)), color-stop(36%, rgba(0, 0, 0, 0)), color-stop(65%, rgba(0, 0, 0, 0)), color-stop(65%, rgba(0, 0, 0, 0.05)), color-stop(66%, rgba(0, 0, 0, 0.05)), color-stop(66%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0))), -webkit-gradient(linear, top left, top right, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(0.085%, rgba(0, 0, 0, 0.1)), color-stop(0.085%, rgba(0, 0, 0, 0))); | |
| background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba( |
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
| /* | |
| Implements different bin packer algorithms that use the MAXRECTS data structure. | |
| See http://clb.demon.fi/projects/even-more-rectangle-bin-packing | |
| Author: Jukka Jylänki | |
| - Original | |
| Author: Claus Wahlers | |
| - Ported to ActionScript3 |