It would be nice if we had a plugin that allows Laravel to play nice with Ember. Put simply I would like to create an easy way for Laravel to output JSON strings in a way that Ember likes.
return Model::find($id);
/** | |
* Add attributes to each object of an array. | |
* | |
* @param {array} foo - Array of objects where we will add the attibutes | |
* @param {function} iterator | |
*/ | |
_.each(foo, function(element, index) { | |
_.extend(element, {field1: index}, {field2: 'bar', field3: 'baz'}); | |
}); |
Because there is an issue with OAuth2 login and localhost development, you currently have to deploy your meteor site to be able to test the Facebook login. A nice little workaround for this is to make the local instance of meteor accessible externally.
There is a great online guide for setting up port forwarding with your router and you can check your public external IP here.
For example, If you have an Apple router, simply open up Airport Utility on your Mac and click edit on your router, then go to the Network tab. Under Port Settings click the + icon and select Personal Web Sharing, setting all of the public and private ports to 3000. Make sure the private IP is set to your current computer IP.
var CryptoJS = require('crypto-js'); | |
function uploadImage(uri) { | |
let timestamp = (Date.now() / 1000 | 0).toString(); | |
let api_key = 'your api key' | |
let api_secret = 'your api secret' | |
let cloud = 'your cloud name' | |
let hash_string = 'timestamp=' + timestamp + api_secret | |
let signature = CryptoJS.SHA1(hash_string).toString(); | |
let upload_url = 'https://api.cloudinary.com/v1_1/' + cloud + '/image/upload' |
"use strict"; | |
import React from "react-native"; | |
let { | |
StyleSheet, | |
View, | |
ScrollView, | |
PropTypes, | |
Component, | |
Text |
import React, { Component, PropTypes } from 'react' | |
import { | |
Text, | |
View, | |
TouchableHighlight, | |
ScrollView, | |
StatusBar, | |
Dimensions, | |
Animated |