Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@obiconbig
obiconbig / gist:5122390
Last active June 27, 2023 09:42
How to use Codeception on CodeIgniter 2.1.x

How to use Codeception on CodeIgniter 2.1.x

Using Codeception Test with CodeIgniter

Requirements

  • PHP >= 5.3
  • PHP CURL extension enabled
@ilmsg
ilmsg / mapReduce-WordCounter.js
Created April 7, 2017 14:45 — forked from bradoyler/mapReduce-WordCounter.js
Using Map-Reduce in Javascript: counting words in a string.
// for counting words in a string
var words="Hi there and hello there. Welcome and hello there.";
var wordcnt = words.replace(/[^\w\s]/g, "").split(/\s+/).reduce(function(map, word){
map[word] = (map[word]||0)+1;
return map;
}, Object.create(null));