I hereby claim:
- I am mutablestudio on github.
- I am mutablestudio (https://keybase.io/mutablestudio) on keybase.
- I have a public key ASBLPMBWbBgZDiqw_IQ47mVdoS5eyZZZt-Hghs3S7GZeYwo
To claim this, I am signing this object:
| INT. JERRY'S APARTMENT - DAY | |
| Kramer bursts into Jerry's apartment carrying a large box of cereal. George is sitting on the couch, eating a bag of chips. | |
| Kramer: Jerry, you won't believe it. I'm starting an all cereal diet! | |
| George: (sarcastically) Oh boy, here we go again. What's wrong with regular food, Kramer? | |
| Kramer: (ignoring George's comment) What's wrong with cereal? It has all the essential vitamins and minerals you need. |
| export const isMediumHeight = height < 750 && height >= 600 | |
| export const isSmallHeight = width < 600 | |
| export const setImageScale = (size, type) => { | |
| console.log(`smallImageScale height ${height} size ${size} type ${type}`) | |
| switch(true) { | |
| case isMediumHeight: | |
| reduceBy = type === 'large' ? .55 : .85 | |
| return Math.round(size * reduceBy); | |
| case isSmallHeight: |
I hereby claim:
To claim this, I am signing this object:
| //if you have a dictionary object passed in, and one element is the function name you can do the following | |
| //inbound 'params' as [String: Any] | |
| let funcName = String(format: "%@:", (params["function"] as? String)!) //note the ':' for single parameter method | |
| let selector = NSSelectorFromString(funcName) | |
| self.perform(selector, with: params) | |
| func getSomeData(_ params: [String: Any]) { | |
| print(params) | |
| } |
| /* | |
| * This is a GPUImageFilter Factory concept, essentially to reuse common GPUImage code that's | |
| * required for most GPUImageFilter calls. Access to these methods then becomes a one liner... | |
| * | |
| * Be sure to wrap each new Class method you create with @autoreleasepool for improved performance. | |
| * | |
| */ | |
| #import "GPUImage.h" | |
| #import "mach/mach.h" |