- VirtualBox
- Vagrant
- Packer
- a Mac with a lot of Memory/CPU/Disk
- great Templates/Tools from https://github.com/timsutton/osx-vm-templates
'use strict'; | |
var gulp = require('gulp'), | |
browserSync = require('browser-sync'), | |
nodemon = require('gulp-nodemon'); | |
// we'd need a slight delay to reload browsers | |
// connected to browser-sync after restarting nodemon | |
var BROWSER_SYNC_RELOAD_DELAY = 500; |
var AppConstants = require('../constants/AppConstants.js'); | |
var AppDispatcher = require('../dispatchers/AppDispatcher.js'); | |
var api = require('../utils/api'); | |
var ActionTypes = AppConstants.ActionTypes; | |
module.exports = { | |
create_customer: function(data){ | |
api.customer.create(data); | |
} |
var React = require('react/addons'), | |
TestUtils = React.addons.TestUtils, | |
TestContext = require('./TestContext'), | |
App = require('./App.jsx'), | |
app = TestContext.getRouterComponent(App); | |
describe('App', function() { | |
it('has something', function() { | |
expect(app.getDOMNode().textContent).toContain('something'); | |
}); |
'use strict'; | |
var React = require('react/addons'); | |
var AnimateMixin = require('react-animate'); | |
/** | |
* Accordion object that maintains a list of content containers and their collapsed or expanded state | |
* @type {*|Function} | |
*/ | |
var Accordion = React.createClass({ | |
/** |
This procedure results in a computer that runs both Mac OS X and Ubuntu in a dual-boot configuration, each operating system using full (whole) disk encryption, and with the Ubuntu root file system stored on a ZFS pool encrypted using LUKS. The specific hardware and software versions used to document this procedure are:
- MacBookPro8,2
When receiving JSON data from other resources(server API etc), we need Json.Decode to convert the JSON values into Elm values. This gist let you quickly learn how to do that.
I like to follow working example code so this is how the boilerplate will look like:
import Graphics.Element exposing (Element, show)
import Task exposing (Task, andThen)
import Json.Decode exposing (Decoder, int, string, object3, (:=))
import Http
This Gist provides some code examples of how to implement WebSocket stream handling using a Redux middleware. Please be aware that this is only provided as an example and that critical things like exception handling have not been implemented.
A more complete version has been packaged, tested, and is available on GitHub as redux-websocket. This library has also been published to npm at @giantmachines/redux-websocket
.
This module represents the foundation of the middleware and implements the ideas presented above. The exported function is used during the creation of the Redux store (see the following snippet).
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
</head> | |
<body> | |
<h1>Hello world!</h1> | |
<script src="main.js"></script> | |
<!--<script src="worker.js"></script>--> |