Skip to content

Instantly share code, notes, and snippets.

View juarezpaf's full-sized avatar

Juarez Filho juarezpaf

View GitHub Profile
Estados do Brasil por Sigla
AC
AL
AP
AM
BA
CE
DF
ES
<!DOCTYPE html><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="http://ryanscherf.net/demos/swipe/"><div style="margin:-1px -1px 0;padding:0;border:1px solid #999;background:#fff"><div style="margin:12px;padding:8px;border:1px solid #999;background:#ddd;font:13px arial,sans-serif;color:#000;font-weight:normal;text-align:left">This is Google&#39;s cache of <a href="http://ryanscherf.net/demos/swipe/" style="text-decoration:underline;color:#00c">http://ryanscherf.net/demos/swipe/</a>. It is a snapshot of the page as it appeared on 21 Nov 2010 05:48:08 GMT. The <a href="http://ryanscherf.net/demos/swipe/" style="text-decoration:underline;color:#00c">current page</a> could have changed in the meantime. <a href="http://www.google.com/intl/en/help/features_list.html#cached" style="text-decoration:underline;color:#00c">Learn more</a><br><br><div style="float:right"><a href="http://webcache.googleusercontent.com/search?q=cache:o0JlW6UUorUJ:ryanscherf.net/demos/swipe/+jquery+swipe&amp;hl
@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",
[
{
"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": {
<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-->
declare module 'api/models/app-models' {
interface Chat {
id?: string;
title?: string;
picture?: string;
lastMessage?: Message;
}
interface Event {
$key?: string;
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Ember.js Router Example</title>
<meta name="description" content="Example of a basic Ember.js application with a Router" />
<meta name="author" content="http://codebrief.com" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>

WARNING

This gist is outdated! For the most up-to-date information, please see http://emberjs.com/guides/routing/!

It All Starts With Templates

An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars.

<header>
App.PickADate = Ember.View.extend({
attributes: ['monthsFull', 'monthsShort', 'weekdaysFull', 'weekdaysShort',
'monthPrev', 'monthNext', 'showMonthsFull', 'showWeekdaysShort', 'today',
'clear', 'format', 'formatSubmit', 'hiddenSuffix', 'firstDay', 'monthSelector',
'yearSelector', 'dateMin', 'dateMax', 'datesDisabled', 'disablePicker'],
events: ['onOpen', 'onClose', 'onSelect', 'onStart'],
tagName: 'input',
classNames: 'pickadate',