elifoster / drama-rb Goto Github PK
View Code? Open in Web Editor NEW:performing_arts: The MC Drama Generator as a Ruby web application
Home Page: http://mc-drama.herokuapp.com/
:performing_arts: The MC Drama Generator as a Ruby web application
Home Page: http://mc-drama.herokuapp.com/
Since this project doesn't appear to have a published licence, I thought it would be polite to ask: is it OK if I incorporate the data (in lib/drama/constants.rb) into an opensource Forge mod (PneumaticCraft: Repressurized to be exact) ?
The idea is to display a random drama string on the mod's Aphorism Tiles (like signs but better) when they're placed down. I have been retrieving content via http://mc-drama.herokuapp.com/raw, but occasional 500 errors and the general overhead of making HTTP requests make me think a completely local solution would be better.
Acknowledgement to this project would of course be given.
Why I chose to use regex? Because that's how asie's PHP application did it.
Why I would choose to use regex if I was the first one to create this application? I wouldn't. I would use String#format.
This will improve performance, readability, and maintainability.
Each time I deploy, dramas.txt is reset back to 0. A good alternative would be to set environment variables or something.
A "We have generated X dramatic events" thing should be put into place. I have no idea how we could do this and have it be consistent for each deploy.
There is no title for the page; it appears as "mc-drama.herokuapp.com". It should be changed to "The Drama Generator: Ruby Edition" or something.
Please Ignore.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.