compiling a comparison for a blog article...
- cujojs/most
- Reactive-Extensions/RxJS
- pozadi/kefir
- baconjs/bacon.js
- caolan/highland
- pjeby/axos
- raimohanska/ponyfood.js
| var map = require("./collection").map; | |
| var MAX_SAFE = Math.pow(2, 53) - 1; | |
| /** | |
| * buffer/cache | |
| * | |
| * @param {number} max | |
| * @param {number} maxInterval | |
| * @param {function} nowGetter | |
| * @constructor |
| source 'https://rubygems.org' | |
| ruby '2.0.0' | |
| group :development do | |
| gem 'better_errors' | |
| gem 'binding_of_caller', :platforms=>[:mri_19, :mri_20, :rbx] |
| /* | |
| $stateProvider.state('admin', { | |
| url: '/admin', | |
| data:{ | |
| title: 'Logout', | |
| only: 'admin' | |
| }, | |
| templateUrl: URL.toPartial('logout') | |
| }) |
| (function(undefined){ | |
| var oldDir = angular.module('app').directive; | |
| angular.module('app').directive = function(name, dFactory) { | |
| var dir = oldDir(name, dFactory); | |
| if(dir.restrict.indexOf('E') >= 0) { | |
| makeElement(toDashCase(name)) | |
| } | |
| }; |
| app.config(function($provide) { | |
| $provide.decorator('fooDirective', function($delegate) { | |
| var directive = $delegate[0]; | |
| if(directive.restrict.indexOf('E') >= 0) { | |
| makeElement(toDashCase(name)) | |
| } | |
| function toDashCase(str) { | |
| return (str.charAt(0) + string.slice(1).replace(/([A-Z])/g, "-$&")).toLowerCase() |
| <script> | |
| (function switchToHTML5() { | |
| // create an html5 doctype | |
| var newDoctype = document.implementation.createDocumentType('html', '', ''); | |
| if (document.doctype) { | |
| document.doctype.parentNode.replaceChild(newDoctype, document.doctype); | |
| } else { | |
| var currentHtml = document.head.parentNode; | |
| currentHtml.parentNode.insertBefore(newDoctype, currentHtml) |
| defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}' |
| http://travisjeffery.com/b/2013/09/testing-javascript-projects-with-grunt-jasmine-jshint/ | |
| https://github.com/gruntjs/grunt-contrib-jshint | |
| https://github.com/bkeepers/lucid/blob/master/spec/javascripts/z_jshint_spec.js |
| # Load dependencies. | |
| pmodload 'helper' | |
| CURRENT_BG='NONE' | |
| SEGMENT_SEPARATOR='⮀' | |
| # Begin a segment | |
| # Takes two arguments, background and foreground. Both can be omitted, | |
| # rendering default background/foreground. |