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 React from 'react'; | |
import {Model} from 'react-vr'; | |
function getFormat(formats, format) { | |
for (let i = 0; i < formats.length; i++) { | |
if (formats[i].formatType === format) { | |
return formats[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
#!/usr/bin/env node | |
'use strict'; | |
const path = require('path'); | |
const child_process = require('child_process'); | |
const bin = path.resolve(__dirname, 'node_modules', '.bin', 'your-app-cli'); | |
const args = process.argv.slice(2); |
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
{ | |
"name": "create-your-app", | |
"bin": "./node_modules/.bin/your-app-cli", | |
"dependencies": { | |
"your-app-cli": "*" | |
} | |
} |
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 React from 'react'; | |
import ReactDOM from 'react-dom'; | |
let fbInjected = false; | |
let fbLoaded = !!window.FB; | |
let fbCallbacks = []; | |
function onFbLoad() { | |
fbLoaded = true; | |
fbCallbacks.forEach((cb) => { |
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 ps(d){c={};d.pub=function(a,b){for(var i=c[a].length;i;)c[a][--i].apply(this,b)};d.sub=function(a,b){c[a]?c[a].push(b):c[a]=[b]};d.unsub=function(a,b){c[a]=(c[a]||[]).filter(function(i){return i!==b})}} |