I hereby claim:
- I am cp on github.
- I am colby (https://keybase.io/colby) on keybase.
- I have a public key whose fingerprint is AE96 399D B2B3 6EB7 AF4D B83C 8B58 5716 F9E2 ECB0
To claim this, I am signing this object:
require "rmagick" | |
crop = [ | |
0.46558651328086853, # x1 (proportion from left) | |
0.471098929643631, # x2 (proportion from left) | |
0.5287885069847107, # y1 (proportion from top) | |
0.5272343754768372, # y2 (proportion from top) | |
] | |
input_path = "./input.jpeg" |
require "rmagick" | |
crop = [ | |
0.46277403831481934, # x_min (proportion from left) | |
0.5259760022163391, # y_min (proportion from top) | |
0.36609894037246704, # x_max (proportion from left) | |
0.4222343862056732, # y_max (proportion from top) | |
] | |
input_path = "./input.jpeg" |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
I hereby claim:
To claim this, I am signing this object:
/*jshint node:true*/ | |
'use strict'; | |
module.exports = function(/* environment, appConfig */) { | |
return { | |
reflect: { | |
css: '...' | |
} | |
}; | |
}; |
We built overrides as a way of customizing individual components at runtime. This can be useful for dynamically altering a component based on it's current environment.
Overrides use JSONPath to manipulate your view's configuration. The documentation on JSONPath's syntax can be found here.
Here's an example of supplying Reflect.js with overrides. Specifically, we're setting the dimensions of a component with id #1.
var ui = new ReflectUI(token),
overrides = [
class Stack { | |
private Object[] array; | |
private int tos = -1; | |
private int size; | |
Stack(int size) { | |
this.size = size; | |
array = new Object[size]; | |
} |
# These two approaches are not the same: | |
class Person2 | |
def self.first_name | |
full_name.split(' ').first | |
end | |
private | |
def self.full_name |
I hereby claim:
To claim this, I am signing this object:
require 'api_cache' | |
require 'httparty' | |
APICache.get('testing', cache: 36000) do | |
'output goes here!' | |
end |