background preloader

Js2coffee: convert JavaScript code to CoffeeScript

Js2coffee: convert JavaScript code to CoffeeScript

http://js2.coffee/

Related:  javascriptRoR

GET and POST Parameter parsing in Rails Rails gives a developer a lot of support, but it isn’t always clear exactly what’s going on under the covers. One area where I’ve had a bit of frustration is trying to understand exactly what Rails is doing for me when it parses my querystring. Somehow it knows that the querystring cart[items][]=5&cart[items][]=6 should result in an object that looks like: { "cart" => { "items" => [ "5", "6" ] } }. I did some digging, and it looks like Rails uses Rack::Utils’ parse_nested_query helper. Their documentation is somewhat less comprehensive than I’d hoped, so I experimented a bit to figure out what’s going on.

RESTful API Design: Teach a Dog to REST UPDATED November 2011: Check out the second edition of the webinar - RESTful API Design. It's been 10 years since Roy Fielding first defined REST in his dissertation on Architectural Styles and the Design of Network-based Software Architectures. Since then, REST is often held as the standard for usable, well-designed, easy-to-integrate APIs. About php.js php.js is a resource that offers community-built JavaScript alternatives to PHP functions. Why on earth would you port php to js? to see if we canto learn JavaScriptto help others learn JavaScriptto see how php scripts perform with V8 strapped on their backsto profit from helpful functions like: strip_tags, strtotime, md5, strftime, number_format, wordwrap, vsprintf, and date, that are too high-level for JavaScript.

A Checklist for Content Work In content strategy, there is no playbook of generic strategies you can pick from to assemble a plan for your client or project. Instead, our discipline rests on a series of core principles about what makes content effective—what makes it work, what makes it good. Content may need to have other qualities to work within a particular project, but this list is limited to qualities shared across all sorts of content. If this looks like theory, don’t be fooled. It’s really entirely practical: if we consciously refer to principles like these as we go about our work as info-nerds of various kinds, we’ll have an easier time making good, useful content, and explaining our priorities when we’re called to do so. Good content is appropriate#section1 IntelligentBee Tech Blog Hello party people and polar bears! You were probably wondering how it is you send email using Ruby on Rails. Here’s how you create an automated email system that sends a confirmation email to each new user that registers to your app:

Top 20 Premium Quality Sliders Say what you will about web design trends, but the fact is: people love their sliders! Here's twenty of the highest quality sliders available on our coding marketplace. 1. New Tricks in XMLHttpRequest2 Introduction One of the unsung heros in the HTML5 universe is XMLHttpRequest. Strictly speaking XHR2 isn't HTML5. List of content management systems This is a list of notable content management systems that are used to organize and facilitate collaborative content creation. Many of them are built on top of separate content management frameworks. Open source software[edit]

Emphasized Insanity - Creating a Rails authentication system on Mongoid - Part 1 Preface A few days ago we started our first real all-MongoDB project at Nautilus6. Up until now we used Mongo only on small time projects, ones that hardly required any data storage at all so this is practically the first real project that we will try (and hopefully succeed) to deploy with Mongo as the data layer. Since we use Rails on this project (Duh) we had to choose between the existing MongoDB adapters for rails: MongoMapper – Which is pretty slick, has some plugin support but also replicates some of the familiar ActiveRecord functionality like: Dirty Attributes, Dynamic finders and magic timestamp attributes. Mongoid – the new child, missing some features from MM (dirty attributes, dynamic finders for example) but does cover some ActiveRecord wonders MM doesn’t: Versioning, named scopes and better validation options.

Hogan.js Getting started Hogan.js is a 3.4k JS templating engine developed at Twitter. Use it as a part of your asset packager to compile templates ahead of time or include it in your browser to handle dynamic templates. If you're developing with Node.js, just use NPM to add the Hogan package. $ npm install hogan.js Alternatively, drop hogan.js in your browser by adding the following script. Model–view–controller Model–view–controller (MVC) is a software pattern for implementing user interfaces. It divides a given software application into three interconnected parts, so as to separate internal representations of information from the ways that information is presented to or accepted from the user.[1][2] The central component, the model, consists of application data, business rules, logic and functions. A view can be any output representation of information, such as a chart or a diagram. Multiple views of the same information are possible, such as a bar chart for management and a tabular view for accountants.

Converts your JavaScript to CoffeeScript. by viktory12345 Feb 9

Related:  Tools, ServicesTools