JSFiddle

  • Text Splitter

    testing

    // This is the text editor interface. 
    // Anything you type or change here will be seen by the other person in ...
  • Word Speller

    Json example of how to use objects to model with your data

    function ConvertCtrl($scope) {
        $scope.Words = [{
            "word": "ant",
                "phoneticletters": ['a', 'n', 't'],
                "letters": ['a', 'n', 't']
        }, {
            "word": "the",
                "phoneticletters": ['th', 'e ...
  • Convert List to Array #41 is the latest revision

    Convert List to Array

    function ConvertCtrl($scope) {
        $scope.stringArray = "jason david mary g230ud\ngreenpioneer";
        $scope.convert = function () {
    		$scope.users = $scope.stringArray.replace(/\n/g ...
  • Weighting a Score #2 is the latest revision

    Weighting a Score based on raw numbers and a weighted number

    function TodoCtrl($scope) {
        var rawscores = $scope.rawscores = [{
            raw: '81.00',
            weight: '20'
        }, {
            raw: '92.00',
            weight: '20'
        }, {
            raw: '88.00 ...
  • AngularjsJiveHtmlWidget #3 is the latest revision

    https://github.com/GreenPioneer/AngularjsJiveHtmlWidget/blob/master/index.html

    (function() {  
        'use strict';  
      
      
        angular  
            .module('myApp', ['ngAnimate','ngMockE2E'])  
            .controller('ControllerJWH', ControllerJWH)  
            .config(config);  
             
        config.$inject = ['$httpProvider'];  
        ControllerJWH.$inject = ['$http'];  
      
      
        /* @ngInject ...
  • JS Generators

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

    function* fibonacci(){
      var fn1 = 1;
      var fn2 = 1;
      while (true){  
        var current = fn2;
        fn2 = fn1;
        fn1 = fn1 + current;
        var reset ...
  • Map & Reduce

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

    var v = [1,2,3,4,5];
    
    
    console.log(v.reduce(function reducer(sum,val){
        return sum+val        
    },0))
    
    console ...
  • Thunk #1 is the latest revision

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

    function add(x,y){
        return (x+y);
    }
    function makeThunk ( fn, x, y){
        return function(){
            return fn(x,y);
        }
    }
    
    var foo ...
  • OLOO:delegated objects #3 is the latest revision

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

    var Foo = {
    	init: function(who) {
    		this.me = who;
    	},
    	identify: function() {
    		return "I am " + this.me;
    	}
    };
    
    var Bar = Object.create(Foo ...
  • prototype:objects links

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

    function Foo(who) {
    	this.me = who;
    }
    Foo.prototype.identify = function() {
    	return "I am " + this.me;
    };
    
    function Bar(who) {
    	Foo.call ...