Skip to content

Instantly share code, notes, and snippets.

View larien's full-sized avatar
💙
Creating things I'm proud of

Lauren Ferreira larien

💙
Creating things I'm proud of
View GitHub Profile
package mygame;
import com.jme3.app.SimpleApplication;
import com.jme3.light.DirectionalLight;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.math.FastMath;
import com.jme3.math.Vector3f;
import com.jme3.renderer.RenderManager;
import com.jme3.scene.Spatial;
@larien
larien / reducer.js
Created November 27, 2018 17:51
reducer
import { combineReducers } from 'redux'
import reviews from './reducers/reviews'
import common from './reducers/common'
import { routerReducer } from 'react-router-redux'
export default combineReducers({
reviews,
common,
router: routerReducer
})
@larien
larien / actions.js
Created November 27, 2018 17:50
actions
import axios from 'axios';
const url = process.env.NODE_ENV === 'production' ? "/api/v1/" : "http://localhost:8080/api/v1/"
export function loadReviews(){
return(dispatch) => {
axios.get(`${url}reviews`)
.then((res)=> {
let reviews = res.data
dispatch({type: 'LOAD_REVIEWS', reviews})
@larien
larien / Review.js
Created November 27, 2018 17:25
caralho de bug chato da porra
import React, { Component } from 'react'
import { loadReviews } from '../../../redux/actions/actions'
import { connect } from 'react-redux'
const mapStateToProps = state => {
return {
reviews: state.reviews.reviews
}
}
@larien
larien / logo.svg
Created February 24, 2018 20:49
Logo from my personal site laurenmariaferreira.github.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@larien
larien / bjzxmx.markdown
Last active December 21, 2017 21:47
BJzxmX