Toggle navigation
New
Learn
Snippets
Meta
News
About
API Docs
Source Code
Account
Register
Login
screen ratio calculation chairul umam
main.groovy
dio.groovy
✖
tria.groovy
✖
tessera.groovy
✖
pente.groovy
✖
eksi.groovy
✖
Run Settings
Language
Groovy
Language Version
latest
Run Command
Snippet Metadata
Owner
orochi_100
Created
Modified
Visibility
Public
def (a, b) = ratio 1920, 1080 println "$a:$b" def ratio(height, width) { def gcd = gcd height, width height > width ? [height / gcd, width / gcd] : [width / gcd, height / gcd] } def gcd(p, q) { q == 0 ? p : gcd(q, p % q) }
Editor Settings
Theme
Chrome
Clouds
Crimson Editor
Dawn
Dreamweaver
Eclipse
GitHub
Solarized Light
TextMate
Tomorrow
XCode
Kuroir
KatzenMilch
Ambiance
Chaos
Clouds Midnight
Cobalt
idle Fingers
krTheme
Merbivore
Merbivore Soft
Mono Industrial
Monokai
Pastel on dark
Solarized Dark
Terminal
Tomorrow Night
Tomorrow Night Blue
Tomorrow Night Bright
Tomorrow Night 80s
Twilight
Vibrant Ink
Key bindings
Default
Vim
Emacs
Full width
True
False
Lines
-
Auto
+
Direct link
Raw
Embed