Demonstration files for Meteor.
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
/* Long Polling | |
* | |
* By: Ivan Montiel | |
*/ | |
jQuery.poll = function (options, poll) { | |
if ( poll == null || poll === undefined) { | |
poll = {}; | |
} | |
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
this.game.stage.children <-- array of objects | |
this.game.stage.children[0] <-- object with children as array of object | |
this.game.stage.children[0].children <--- array of objects | |
expect( this.game.stage ).has( Phaser.TEXT ).withText( 'Take That, Robot!' ); | |
expect( this.game.stage ).has( Phaser.BUTTON ).has( 'text' ).withText( 'Play' ); | |
https://github.com/JoelBesada/activate-power-mode
Some sort of typing RPG game
It's like X for Y generator
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
export default function inject() { | |
const args = [...arguments]; | |
const toCall = args[0]; | |
const toInject = args.slice(1, args.length); | |
const shouldInject = inject.should === false ? false : true; | |
if (shouldInject) { | |
return function () { | |
const combinedArgs = [...toInject, ...arguments]; |
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
PLATFORM VERSION INFO | |
Windows : 6.1.7601.65536 (Win32NT) | |
Common Language Runtime : 4.0.30319.18444 | |
System.Deployment.dll : 4.0.30319.34244 built by: FX452RTMGDR | |
clr.dll : 4.0.30319.18444 built by: FX451RTMGDR | |
dfdll.dll : 4.0.30319.34244 built by: FX452RTMGDR | |
dfshim.dll : 4.0.41209.0 (Main.041209-0000) | |
SOURCES | |
Deployment url : http://github-windows.s3.amazonaws.com/GitHub.application |
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
// Usage as a Component | |
import React, { Component } from 'react'; | |
import Feature from 'react-feature-flags/components'; | |
import { MY_FEATURE_FLAG } from '../flags/constants'; | |
export default class MyComponent extends Component { | |
render() { | |
return ( |
When mixing the tracks, we need to consider that they might (and probably have) started at different times. If we were to merge tracks without taking this into account, we would end up with synchronization issues. In our example, since Bob got in the room a good 20s (and that’s really a huge time for synchronization of audios), mixing both Alice’s and Bob’s audio tracks together would end up having one speaking over the other.
To make merging easier, the start time of all tracks from the same room is the creation of the room itself. Let’s get the start times for all the tracks from this room
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
function settled(promises) { | |
const alwaysFulfilled = promises.map((p) => { | |
return p.then((value) => { | |
return { state: 'fulfilled', value: value }; | |
}, (reason) => { | |
return { state: 'rejected', reason: reason }; | |
}); | |
}); | |
return Promise.all(alwaysFulfilled); | |
}; |