Round numbers to a step. Accepts an interval and optional offset.
process.nextTick but always with args
JSON parse & stringify that supports binary via bops & base64
Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`
JavaScript utilities with respect to emerging standard
Transform a string into title case following English rules
Simple control-flow library for node.js that makes parallel execution, serial execution and error handling painless.
Array#isArray for older browsers
AWS SDK for JavaScript Sfn Client for Node.js, Browser and React Native
Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. Used by micromatch.
simplified stream construction
Compatibility utilities for ESLint
Core abilities of masked-input. Usefull to create custom input processors
dead-simple optimistic async helper
Node.js final http responder
Datadog CI plugin for `stepfunctions` commands
File manager plugin for CKEditor 5
Easy API for Google reCAPTCHA version 2 for Node.js and Express
Minimal JavaScript module loader
Implements performance.now (based on process.hrtime).
A library for building command-line interfaces with Effect
Determine the `package.json#type` which applies to a location
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
An arbitrary-precision Decimal type for JavaScript.
Floor/nearest/ceiling rounding by arbitrary steps for Integers, Floats, Times, TimeWithZones, and DateTimes.
Rounds any numeric value to any nearest multiple of the chosen step.
The Google Sign-In API gives OAuth2 JSON Web Tokens (JWT) as response data upon user sign-in. A necessary step for a service provider to trust such a token is validatation. Accepting the token without validation would allow a malicious client to simply assert itself in your system. Google provides libraries in several languages (https://goo.gl/jkzS18) to accomplish this, as well as an API endpoint that can outsource the task to Google's own servers (thereby introducing an additional network round trip into every authentication step), but a Ruby implementation is missing. This gem fills that gap.
# BELGIAN 2050 CALCULATOR TOOL A C version and ruby wrapper for the Belgian 2050 calcualtor ## GOTCHAS Some versions have a special formula in 2050!B2 that the translator doesn't recognise. Just write 2050 in that cell and recompile. Some tests fail for columns AN and AM on OUTPUT. I think this is due to rounding differences between excel and C. ## DEPENDENCIES 1. ruby 1.9.2 (including development headers) 2. basic c development headers This has ONLY been tested on OSX and on Ubuntu 64 bit EC2 ami. Grateful for reports from other platforms. In the util folder there is an example script that creates a new EC2 EMI, installs all the dependencies and then compiles the gem. It may be useful if you are trying to figure out the complete set of dependencies. ## INSTALLATION Note that this compiles the underlying c code, which might take 10-20 minutes or so gem install belgium_2050_model ## UPDATING TO NEWER VERSIONS OF EXCEL MODEL First of all, you need to be working on the github version of the code, not the rubygem: git clone http://github.com/decc/belgium_2050_model Then put the new spreadsheet in spreadsheet/2050Model.xlsx Then, from the top directory of the gem: bundle bundle exec rake The next step is to check whether lib/belgium_2050_model/belgium_2050_model_result.rb and lib/belgium_2050_model/model_structure.rb need to be altered so that they pick up the correct places in the underlying excel. The final stage is to build and install the new gem: gem build belgium_2050_model.gemspec gem install belgium_2050_model-<version>.gem ... where <version> is the version number of the gem file that was created in the folder. Now follow the instructions in the twenty-fifty server directory in order to ensure that it is using this new version of the gem.
Contentful API wrapper library exposing an ActiveRecord-like interface