JSFiddle

  • CSS binary to decimal converter #12 is the latest revision

    CSS binary to decimal converter

    /* Look ma, no Javascript! */
  • ChromeCast

    No-Library (pure JS), HTML, CSS, JavaScript

    window['__onGCastApiAvailable'] = function (loaded, errorInfo) {
        if (loaded) {
            initializeCastApi();
        } else {
            console.log(errorInfo);
        }
    }
    
    function initializeCastApi() {
        var sessionRequest = new chrome.cast.SessionRequest ...
  • Programming with Nothing, Implemented in JS

    Programming with Nothing, Implemented in JS

    //Z Combinator
    function Z(f){
        return (function (x){
            return f(function (y){
                return x(x)(y);
            });
        })(function (x){
            return f ...
  • Ionic ScrollView Example wo/fix

    No-Library (pure JS), HTML, CSS, JavaScript

    angular.module('ionicApp', ['ionic'])
           .controller('MyCtrl', function($scope){});
  • Ionic ScrollView Example w/fix

    No-Library (pure JS), HTML, CSS, JavaScript

    angular.module('ionicApp', ['ionic'])
           .controller('MyCtrl', function($scope){});
  • MIPS assembler

    Support a small subset of MIPS instructions

    var PC, mem, reg, ins, labelMap;
    
    var op = {
            //R Type
            arithm: function(rd, rs, rt, funct){
                console.log("arm", funct ...
  • elementFromPoint #1 is the latest revision

    jQuery Compat (edge), HTML, CSS, JavaScript

    for(var i = 0; i < 50; i++){
        $("<div>").appendTo("body").data("colored", false).text(i);
    }
    i = 52;
    $(window).mousemove(function(e){
        var ele ...
  • Electrical Field Lines

    E=kq<r>/r^2

    var Scene = Class.create({
            init: function(w, h){
                var canvas = document.createElement("canvas");
                this.canvas = canvas;
                canvas.width = w;
                canvas ...
  • JS OCR #15 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    var lMS, w = 1000, h = 1000,
        video = document.querySelector('video'),
        canvas = document.querySelector('canvas'),
        pre = document.querySelector("pre"),
        fxCanvas = fx ...
  • Encode/Decode

    jQuery Compat (edge), HTML, CSS, JavaScript

    $("#en").click(function(){
        var t = $("#ipt").val(),
            u = prompt("Encode:");
        if(!u) return false;
        $("#result").empty();
        var oriLen = t.length ...