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
| module ApiPagination | |
| Infinity = 1.0/0 | |
| class Range < Grape::Validations::SingleOptionValidator | |
| def validate_param!(attr_name, params) | |
| unless (!@required && params[attr_name].nil?) || @option.include?(params[attr_name]) | |
| throw :error, status: 400, message: "#{attr_name}: must be within #{@option}" | |
| end | |
| end | |
| end |
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 com.francisli.processing.http.*; | |
| import processing.serial.*; | |
| Serial myPort; // The serial port | |
| int value = 0; | |
| float oldValue; | |
| PFont InstagramFont; |