Skip to content

Instantly share code, notes, and snippets.

View juarezpaf's full-sized avatar

Juarez Filho juarezpaf

  • Dublin City, Ireland
View GitHub Profile
App.PostRoute = Em.Route.extend({
model: function(params) {
return Em.$.ajax({
type: 'GET',
url: App.API+'/post/'+ params.post_id,
dataType: 'json',
contentType: 'application/json',
context: this
}).then(function(json) {
if (json.status.code === 200) {//API return status code with success or errors
@juarezpaf
juarezpaf / create-extraordinary-apps-with-firebase.md
Created November 14, 2015 14:45
Firebase Adventures Codelab
declare module 'api/models/app-models' {
interface Chat {
id?: string;
title?: string;
picture?: string;
lastMessage?: Message;
}
interface Event {
$key?: string;
<ion-header>
<ion-navbar color="primary">
<ion-title>{{ selectedEvent.title }}</ion-title>
<ion-buttons end>
<!--@TODO: Mostrar apenas se o usuário for admin-->
<button ion-button icon-only (click)="pushToEventSettingsPage(selectedEvent)">
<ion-icon name="settings"></ion-icon>
</button>
<!--@TODO: Utilizar o plugin cordova-plugin-x-socialsharing-->
[
{
"id": 1,
"name": "Juarez Filho",
"username": "juarezpaf",
"email": "juarezpaf@gmail.com",
"picture": "https://randomuser.me/api/portraits/thumb/men/1.jpg",
"gift": "Google Pixel",
"quote": "Technology is anything that wasn’t around when you were born",
"address": {
@juarezpaf
juarezpaf / package.json
Created April 18, 2018 23:21
CLI 6.0.0-rc.5 + Angular v5
{
"name": "firelist",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",