JSFiddle

  • Bootstrap Skeleton

    This is a simple Bootstrap skeleton. You can fork it to get a ready to use Bootstrap fiddle.

    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span2 sidebar">
          <!--Sidebar content-->
        </div>
        <div class="span10 content">
          <!--Body content-->
        </div>
      </div>
    </div>
  • Regex Escaper #2 is the latest revision

    input a regex, get a properly escaped regex as a string

    function escapeRegExp(str) {
      return str.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
    }
    document.getElementById('execute').onclick = function() {
        var ct = document.getElementById('dedupe');
        var text = ct ...
  • Fun with OOP #1 is the latest revision

    Just toying around with JS oop-y type stuff

    function fun(a,b){
      this.a = a; this.a_store = a;
      this.b = b; this.b_store = b;
    //  this.a_store = this.a ...
  • Fun with OOP

    Just toying around with JS oop-y type stuff

    function fun(a,b){
      this.a = a; this.a_store = a;
      this.b = b; this.b_store = b;
    //  this.a_store = this.a ...
  • Map Of Library of Babel #3 is the latest revision

    Just like Borges said! I guess.

    var chars = "╚╬╝╠╩╗╔═╦╣ ";
    var book = 410;
    var page = 3200;
    String.prototype.shuffle = function () {
        var a = this.split(""),
            n = a.length;
    
        for ...
  • Split Swapper

    This will take text delimited by something, and reverse it's order around the delimiter. ONLY ONE DELIMITER PER LINE!

    document.getElementById('execute').onclick = function() {
        var ct = document.getElementById('swap');
        var text = ct.value.split('\n');
        var delimiter = document.getElementById ...
  • Library of Babel

    Just like Borges said!

    var chars = "abcdefghijklmnopqrstuvwxyz ., ,.";
    var book = 410;
    var page = 3200;
    String.prototype.shuffle = function () {
        var a = this.split(""),
            n = a.length ...
  • Spintax Parser #8 is the latest revision

    input spintax, get a plaintext output

    /*
    This JS stolen from Usama Ejaz at: http://www.thedeveloper24.com/2014/10/parse-spintax-using-javascript.html (it's not 100%, but ...
  • transmogrify keymap to arrays

    Convert key/value object to object containing arrays of values full of keys

    var data = {
            'enceinte': 'maternity',
            'enceintes': 'maternity',
            'grande taille femme': 'plus',
            'grande taille homme': 'big and tall',
            'grossesse': 'maternity',
            'grossesses': 'maternity ...
  • Regex Escaper

    input a regex, get a properly escaped regex as a string

    function escapeRegExp(str) {
      return str.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
    }
    document.getElementById('execute').onclick = function() {
        var ct = document.getElementById('dedupe');
        var text = ct ...