JSFiddle

  • Basic AWS template #10 is the latest revision

    jQuery 2.1.0, HTML, CSS, JavaScript, Bootstrap 3.2.0

    $('#go').click(function () {
    
        AWS.config.update({
            accessKeyId: $('#accessKeyId').val(),
            secretAccessKey: $('#secretAccessKey').val(),
            region: 'us-east-1'
        });
    
        var db = new AWS.DynamoDB();
        db ...
  • List Deltas

    jQuery 2.1.0, HTML, CSS, JavaScript, Bootstrap 3.2.0

    $(function () {
        $('#go').click(function () {
            var destination = $('#destination').val().trim().toLowerCase().split('\n');
            var source = $('#source').val().trim().toLowerCase().split('\n ...
  • CloudSearch Demo #9 is the latest revision

    jQuery 2.1.0, HTML, CSS, JavaScript, Bootstrap 3.2.0

    $('.sample-query').click(function (event) {
        event.preventDefault();
        var qs = $(this).attr('data-search');
        var url = 'https://' + $('#inputEndpoint').val()  + qs;
        $('#inputUrl').val(url ...
  • Auto convert PEM/PPK #12 is the latest revision

    jQuery Compat (edge), HTML, CSS, JavaScript

    $('#pem').on('input propertychange paste', function () {
        convertPEMtoPPK('');
    });
    
    function convertPEMtoPPK(pem) {
        var crypt = new RSAKey();
        crypt.readPrivateKeyFromPEMString($('#pem').val());
    
        var algname ...
  • byte array mucking #8 is the latest revision

    jQuery Compat (edge), HTML, CSS, JavaScript

    var decodedData = window.atob('AAAAB3NzaC1yc2EAAAADAQABAAAAgQDHikastc8+I81zCg/qWW8dMr8mqvXQ3qbPAmu0RjxoZVI47tvskYlFAXOf0sPrhO2nUuooJngnHV0639iTTEYG1vckNaW2R6U5QTdQ5Rq5u+uV3pMk7w7Vs4n3urQ6jnqt2rTXbC1DNa/PFeAZatbf7ffBBy0IGO0zc128IshYcw==');
                                  
    
    for (i = 0; i < decodedData.length; ++i) {
        $('body').append(leftpad(decodedData.charCodeAt(i).toString(16), 2, '0') + " ");
     }
    
        function leftpad(str, len, pad) {
            if (len + 1 >= str.length) {
                str = Array(len + 1 - str ...
  • jsencrypt #47 is the latest revision

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

    No code. How about adding some?
  • List intersections #9 is the latest revision

    jQuery Compat (edge), HTML, CSS, JavaScript

    $('#btnGo').click(function () {
        var list1 = $('#list1').val().trim().split('\n');
        var list2 = $('#list2').val().trim().split('\n');
    
        var list1_only = _ ...
  • TOTP One-time password

    jQuery 1.6.4, HTML, CSS, JavaScript

        function dec2hex(s) { return (s < 15.5 ? '0' : '') + Math.round(s).toString(16); }
        function hex2dec(s) { return parseInt(s, 16); }
    
        function base32tohex(base32) {
            var base32chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
            var bits = "";
            var hex = "";
    
            for (var i = 0; i < base32.length; i++) {
                var val = base32chars.indexOf(base32.charAt(i).toUpperCase());
                bits += leftpad(val.toString(2), 5, '0');
            }
    
            for (var i = 0; i+4 <= bits.length; i+=4) {
                var chunk = bits.substr(i, 4);
                hex = hex + parseInt(chunk, 2).toString(16) ;
            }
            return hex;
    
        }
    
        function leftpad(str, len, pad) {
            if (len + 1 >= str.length) {
                str = Array(len + 1 - str.length).join(pad) + str;
            }
            return str;
        }
    
        function updateOtp ...
  • GeoIP + Route 53 latency based routing #2 is the latest revision

    jQuery Compat (edge), HTML, CSS, JavaScript

    $('body').append('Hi, your closest region is ' + region + '. ');
    
    $.ajax( { 
      url: '//freegeoip.net/json/', 
      type: 'POST', 
      dataType: 'jsonp',
      success: function(location ...
  • Bootstrap 3.1.1 shell #2 is the latest revision

    Bootstrap 3.1.1 shell

    
    
        <div class="container theme-showcase" role="main">
    
          <!-- Main jumbotron for a primary marketing message or call to action -->
          <div class="jumbotron">
            <h1>Hello, world!</h1>
            <p>This is a template for a simple marketing or informational website. It includes a large callout called a ...</p></div></!--></div>