- early example of playful code
// javascript implementation
// javascript implementation
var pull = require('pull-stream') | |
var audio = require('read-audio') | |
var clear = require('clear') | |
var dataThrough = pull.map(function(sample) { | |
return sample.data | |
}) | |
var rmsThrough = pull.map(function(arr) { | |
var squares = arr.map(function(num) { |
These are just ideas, riff on them! Think about spikes, timeboxes, pairing, tdd. These are all things you might use to help. Think about this is an iterative process, try some things then come back to us with more questions.
import React from 'react' | |
import { render as renderDom } from 'react-dom' | |
import {createStore} from 'redux' | |
const INCREMENT = 'INCREMENT' | |
const increment = (howMuch) => { return {type: INCREMENT, amount: howMuch} } | |
const Counter = (props) => { | |
return ( | |
<div> |
var Rx = require('rx') | |
var slowSource = Rx.Observable.create(function(observer) { | |
var count = 0 | |
setInterval(function() { | |
observer.onNext(count++) | |
}, 1000) | |
}) | |
'use strict' | |
class MyArray { | |
constructor(arr){this.arr = arr} | |
filter(shouldKeepFunc){ | |
let newArray = [] | |
for (let i = 0; i < this.arr.length; i++) { | |
let item = this.arr[i] | |
if(shouldKeepFunc(item)){ |