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
// | |
// NewsFeedVM-extension.swift | |
// Bayello | |
// | |
// Created by Aboussa Folivi FOLLY on 01/03/2019. | |
// Copyright © 2019 Aboussa Folivi FOLLY. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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, { Component } from 'react'; | |
import { | |
Text, | |
View, | |
} from 'react-native'; | |
export default class EventDetail extends Component { | |
render() { | |
return ( | |
<View> |
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 includes =function(arr, val){ | |
return(arr.indexOf(val) !== -1); | |
}; | |
var AroundMe = React.createClass({ | |
getInitialState: function(){ | |
return({ | |
dances: [], | |
events: this.props.events, | |
user_coords: {}, |
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
@app = angular.module('Sports', [ | |
'ngRoute', 'ngResource' | |
]) | |
@app.config ($routeProvider, $locationProvider) -> | |
$locationProvider.html5Mode | |
enabled: true | |
requireBase: false | |
$routeProvider | |
.when '/sports/:id', |
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
class SearchController < ApplicationController | |
respond_to :json | |
def index | |
render json: @your_results, each_serializer: YourSerializer , root: :results | |
end | |
end |