A function to offer more rounding options for numbers in JavaScript and TypeScript
Flexible ascii progress bar
path.extname implementation adapted to also include multiple dots extensions.
Minimal zero-dependency utilities for using JavaScript Iterables in all environments.
Unpack multibyte binary values from buffers
Lightweight, streamed JSON parser in 748 bytes
Complete list of standard emojis.
Evaluate asynchronous tasks with configurable concurrency.
Asynchronous recursive file copy utility.
JSON parse & stringify that supports binary via bops & base64
Array#isArray for older browsers
Run a function exactly one time
Create simple HTTP ETags
Flexible, lightweight transport layer for GraphQL
Determine the `package.json#type` which applies to a location
Create a stream that emits events from multiple other streams
Callback wrapping utility
Deterministic stringification for when performance matters
An arbitrary-precision Decimal type for JavaScript.
A cross browser microtask library
Zero CPU overhead, zero dependency, true event-loop blocking sleep
process.nextTick but always with args
Constant-time comparison of Buffers
Support for representing 64-bit integers in JavaScript
The plutus plugin provides a complete double entry accounting system for use in any Ruby on Rails application. The plugin follows general Double Entry Bookkeeping practices. All calculations are done using BigDecimal in order to prevent floating point rounding errors. The plugin requires a decimal type on your database as well.
The borutus plugin provides a complete double entry accounting system for use in any Ruby on Rails application. The plugin follows general Double Entry Bookkeeping practices. All calculations are done using BigDecimal in order to prevent floating point rounding errors. The plugin requires a decimal type on your database as well. %
This is a simple card game, inspired by the studio game tutorial done through the Online Pragmatic Studio course on Ruby by Mike and Nicole. Basically, three random cards would be assigned to players. For each round, each player would be assigned a random card and they can then use it to attack another player's card. At the start of the game, type in how many rounds do you want to play. After the rounds, have been completed, you can either continue playing or type quit to exit. Upon exiting, the high scores of the players will be printed out.
RubyGame is a action based fighting game where a player has access to treasures which rewards them points. After completing all the rounds, the player with highest points wins the game.
The plutus plugin provides a complete double entry accounting system for use in any Ruby on Rails application. The plugin follows general Double Entry Bookkeeping practices. All calculations are done using BigDecimal in order to prevent floating point rounding errors. The plugin requires a decimal type on your database as well.
The Credere plugin provides a complete double entry accounting system for use in any Ruby on Rails application. The plugin follows general Double Entry Bookkeeping practices. All calculations are done using BigDecimal in order to prevent floating point rounding errors. The plugin requires a decimal type on your database as well. It is strongly based off of the Plutus gem.
The plutus plugin provides a complete double entry accounting system for use in any Ruby on Rails application. The plugin follows general Double Entry Bookkeeping practices. All calculations are done using BigDecimal in order to prevent floating point rounding errors. The plugin requires a decimal type on your database as well.
The plutus plugin provides a complete double entry accounting system for use in any Ruby on Rails application. The plugin follows general Double Entry Bookkeeping practices. All calculations are done using BigDecimal in order to prevent floating point rounding errors. The plugin requires a decimal type on your database as well. Forked from plutus
Cross-origin resource sharing (CORS) is great; it allows your visitors to asynchronously upload files to e.g. Filepicker or Amazon S3, without the files having to round-trip through your web server. Unfortunately, giving your users complete write access to your online storage also exposes you to malicious intent. To combat harmful usage, good upload services that allow client-side upload, support a mechanism that allows you to validate and sign all upload requests to your online storage. By validating every request, you can give your visitors a nice upload experience, while keeping the bad visitors at bay. The CORS gem comes with support for the Amazon S3 REST API.
A simple, text-based crowdfunding simulator. Run a group of projects through a series of funding rounds, in which they either receive or lose funds, or are skipped. They also receive a random pledge. Grant projects never lose funds. Match projects have all future funding matched after they reach half-funding. Statistics are printed to the console at the end of the simulation. The normal projects can be specified in a '.csv' file that is given as a command line argument when loading the program, or the default projects can be used. The format for 'csv' entries is Project Name,Goal,Initial_funding with a comma and no spaces between entries and underscores in place of commas within larger numbers (e.g. Your Project,10_000,0). The option is given to save a list of underfunded projects upon exiting the program. The list is saved in 'underfunded.txt' in the top-level folder of the application. Created as a bonus project while completing the Pragmatic Studio Ruby Programming course.
# 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.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.