background preloader

AltJS compile-to-JavaScript language list

AltJS compile-to-JavaScript language list
Related:  javascript

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

Emmet Documentation 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.

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

Benvie/continuum muaz-khan/WebRTC-Experiment jQuery Mobile Josh Gertzen — Object Oriented Super Class Method Calling with JavaScript The Problem Every programmer who’s tried to apply classical Object Oriented techniques when developing with JavaScript, has at one time or another asked themselves the question: How do you call or invoke a super class method? Before the Ajax craze got into full swing, this question rarely arose because most developers were only exposed to the language when doing client-side form validation or simple DHTML / DOM element visibility toggling. In those simple situations, functional programming is sufficient and OO is of lesser importance. Now that Ajax is all the rage, programmers have been building increasingly complex systems involving large amounts of client-side JavaScript. As a result, many have tried to apply OO techniques to JavaScript as a way to manage that complexity. The subject of OO design and it’s various topics is huge, but aside from class definition approaches, I think this particular topic is one that JavaScript developers try to solve more frequently than any other.

Home · kripken/emscripten Wiki LLJS : Low-Level JavaScript ES6 Overview in 350 Bullet Points Apologies about that long table of contents, and here we go. ES6 – also known as Harmony, es-next, ES2015 – is the latest finalized specification of the language The ES6 specification was finalized in June 2015, (hence ES2015) Future versions of the specification will follow the ES[YYYY] pattern, e.g ES2016 for ES7 Yearly release schedule, features that don’t make the cut take the next train Since ES6 pre-dates that decision, most of us still call it ES6 Starting with ES2016 (ES7), we should start using the ES[YYYY] pattern to refer to newer versions Top reason for naming scheme is to pressure browser vendors into quickly implementing newest features (back to table of contents) A new primitive type in ES6 You can create your own symbols using var symbol = Symbol() You can add a description for debugging purposes, like Symbol() Symbols are immutable and unique. Time for a bullet point detox. Then again, I did warn you to read the article series instead.