This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta: { | |
"js/app.js": { | |
"deps": [ | |
"three.js" | |
] | |
}, | |
"three.js/loaders/STLLoader": { | |
"deps": [ | |
"three.js" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import getHotReloadStore from './utils/getHotReloadStore.js'; | |
const hotStore = getHotReloadStore('d3d:store'); | |
const state = hotStore.state || { | |
counter: 0 | |
}; | |
console.log('state: ', state); | |
state.counter += 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Utility to only call Redux updates in RequestAnimationFrame's | |
* Also uses React-dom's batchedUpdates | |
*/ | |
import raf from 'raf'; | |
import { unstable_batchedUpdates as batchedUpdates } from 'react-dom'; | |
let rafID; | |
let notifyFunc; | |
function animFrame() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {createStore} from 'redux'; | |
import reducer from './reducers/index.js' | |
import { rehydrate, rehydratingStore } from './utils/rehydratingStore.js'; | |
const store = rehydratingStore()(createStore)(reducer); | |
export function __reload(deletedModule){ | |
const prevState = deletedModule.getState(); | |
debug('Reloaded. rehydrate with state: ', prevState.sketcher.objectsById); | |
store.dispatch(rehydrate(prevState)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We're adding COMPLETE_ALL_VISIBLE_TODOS and DELETE_ALL_VISIBLE_TODOS | |
// to the reducers.js example of ReduxExample: Todo List | |
// http://rackt.org/redux/docs/basics/ExampleTodoList.html > reducers.js | |
// using the visibleTodosSelector of Computing Derived Data | |
// http://rackt.org/redux/docs/recipes/ComputingDerivedData.html | |
// Using this memoized selector function enables reuse of derived data | |
import {visibleTodosSelector} from 'selectors/TodoSelectors.js'; | |
function todos(state = [], action) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.text.html': | |
'JSPM html': | |
'prefix': 'html-jsmp' | |
'body': """ | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>$3</title> | |
<script src="jspm_packages/system.js" charset="utf-8"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var io = require('socket.io-client'); | |
var PORT = 6000; | |
var socket = io.connect('http://localhost:'+PORT,{forceNew:true}); | |
socket.once('connect',function() { | |
console.log("connected"); | |
setInterval(function() { | |
console.log("emit image"); | |
for(var i=0;i<100;i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config dnsmasq | |
option domainneeded '1' | |
option boguspriv '1' | |
option filterwin2k '0' | |
option localise_queries '1' | |
option rebind_protection '1' | |
option rebind_localhost '1' | |
option local '/lan/' | |
option domain 'lan' | |
option expandhosts '1' |
NewerOlder