background preloader

AltJS compile-to-JavaScript language list

AltJS compile-to-JavaScript language list

The Shumway Open SWF Runtime Project | Mozilla Research Shumway is an experimental web-native runtime implementation of the SWF file format. It is developed as a free and open source project sponsored by Mozilla Research. The project has two main goals: 1. Advance the open web platform to securely process rich media formats that were previously only available in closed and proprietary implementations. 2. Offer a runtime processor for SWF and other rich media formats on platforms for which runtime implementations are not available. You can view live demo examples using Shumway. Mozilla’s mission is to advance the Open Web. The Open Web can be further advanced by making rich media capabilities, previously only available in Flash, also available in the native web browser stack. 1. More information can be found on the github links: * * *

Benvie/continuum Overthrow A tiny, no-frills, framework-independent, targeted overflow: auto polyfill for use in responsive design. Disable Overthrow What is this all about? You want to use CSS overflow in your designs, but overflow doesn't work properly in many browsers, particularly mobile ones. But wait - many browsers actually support overflow very well! What is Overthrow? Overthrow is a conservative attempt at filling the gaps in overflow support, with an emphasis on letting native implementations do their thing, and in touch-supporting browsers, providing a very minimal polyfill in browsers where native support is not available. First and foremost, Overthrow is designed to simply enable native CSS overflow in browsers it deems to have native support, but it includes a touch-scrolling polyfill too! A few example pages The examples directory has some sample responsive layouts that use overthrow. That's about it. Here's some extra demo content to scroll through... Example Embedded Overthrow Block Form elements

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. PHP is a language with many high-level functions and while they’re not always implemented as consistently as we’d like (mimicking their underlying C parts), they do get many programming jobs done without the need for additional libraries or abstraction. We recognize JS has beautiful language features, and we encourage you to learn them (never let php.js be an excuse not to!). That said, we do think it’s a challenge to port everything and decided to also port low-level PHP functions like strpos that have perfectly good (and more performant!) And what not. Contributing Licensing

Jquery Slider New Tricks in XMLHttpRequest2 Introduction One of the unsung heros in the HTML5 universe is XMLHttpRequest. Strictly speaking XHR2 isn't HTML5. Turns out our old friend got a huge makeover but many folks are unaware of its new features. This tutorial highlights some of the new features in XMLHttpRequest, especially those that can be used for working with files. Fetching data Fetching a file as a binary blob has been painful with XHR. The old way to fetch an image: var xhr = new XMLHttpRequest();'GET', '/path/to/image.png', true); // Hack to pass bytes through unprocessed.xhr.overrideMimeType('text/plain; charset=x-user-defined'); xhr.onreadystatechange = function(e) { if (this.readyState == 4 && this.status == 200) { var binStr = this.responseText; for (var i = 0, len = binStr.length; i < len; ++i) { var c = binStr.charCodeAt(i); //String.fromCharCode(c & 0xff); var byte = c & 0xff; // byte at offset i } }}; xhr.send(); While this works, what you actually get back in the responseText is not a binary blob.

Emmet Documentation jQuery Mobile winston/cactus LLJS : Low-Level JavaScript JSON query API Examples use Sample 1 for json data! attrib examples string or array of strings ( for 'equal', use '==' - its JS! ) .author=="Herman Melville" .price>10 .price [".price>10", ".category=='fiction'"] - acts like an "AND" .bicycle.color=="red" - any valid dot notation should work .title.indexOf("of the")>0 - yes, even this works item examples string or array of strings ( empty or '*' returns 'any' ) book bicycle ["book", "bicycle"] - acts like an "OR" function Namespaced as a_jQ Only one function: a_jQ.from(jsData_object, item_str, attrib_str) item can be an empty string, an item(string) or array of items(strings). "*" is same as empty string attrib is required - can be an attrib(string) or array of attribs(strings). examples var obj= a_jQ.from( jsDataObject, "*", ".price>10" ); var obj= a_jQ.from( jsDataObject, "book", ".price>10" ); var obj= a_jQ.from( jsDataObject, ["book", "bicycle"], ".price>10" ); var obj= a_jQ.from( jsDataObject, ["book", "bicycle"], [".price>10", ".color=='red'"] ); about

Home · kripken/emscripten Wiki