Coder Social home page Coder Social logo

disintegration's Introduction

This is a Ruby on Rails application I built in support of “Disintegrations”, published on December 3, 2015 on Queen Mob’s Tea House queenmobs.com/2015/12/poem-bryan-woods/

Initially the poems were delivered as a code snippet of HTML and JavaScript, which were styled to match Queen Mob’s look and feel and were intended to be inserted into the content area in an iframe. This is what is rendered by ProjectsController#index.

We had some difficulty getting this solution to work (their CMS was configured to disallow inserting code for security reasons), so I thought of a hack: the CMS might block code snippets, but nobody’s preventing me from inserting images!

So I wrote ProjectsController#poems, which reads the text of the poems out of the database and draws them to a PNG image before deleting another character. This allowed the project to exist within an <img> tag.

A Clojure version exists as well, if you prefer a CLI interface and provide some poems of your own in a file called “disintegration.txt” gist.github.com/bryanwoods/d09c38ea0585c0526c37

disintegration's People

Contributors

bryanwoods avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.