| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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 linear() { | |
| @return cubic-bezier(0.250, 0.250, 0.750, 0.750); } | |
| @function ease() { | |
| @return cubic-bezier(0.250, 0.100, 0.250, 1.000); } | |
| @function ease-in() { | |
| @return cubic-bezier(0.420, 0.000, 1.000, 1.000); } | |
| @function ease-in-quad() { | |
| @return cubic-bezier(0.550, 0.085, 0.680, 0.530); } |
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
| /* euclidean GCD (feel free to use any other) */ | |
| function gcd(a,b) {if(b>a) {temp = a; a = b; b = temp} while(b!=0) {m=a%b; a=b; b=m;} return a;} | |
| /* ratio is to get the gcd and divide each component by the gcd, then return a string with the typical colon-separated value */ | |
| function ratio(x,y) {c=gcd(x,y); return ""+(x/c)+":"+(y/c)} | |
| /* eg: | |
| > ratio(320,240) | |
| "4:3" | |
| > ratio(360,240) |
NewerOlder