Skip to content

Instantly share code, notes, and snippets.

{
"$id": "1",
"Token": "feec6152-0b4f-45c6-b368-a5291d373016",
"RequestResponseDate": "2016-04-04T17:42:11",
"Message": "[{\"TransactionId\":20178,\"Price\":116.00,\"Grade\":4,\"UserComment\":\"excelente!\",\"When\":\"2016-03-03T18:39:00\",\"ProviderName\":\"EDIMAR \",\"ServiceType\":2,\"ProviderLicensePlate\":\"CUC4682\",\"UserLicensePlate\":\"MMO4690\"},{\"TransactionId\":20177,\"Price\":115.00,\"Grade\":4,\"UserComment\":\"Excelente qualidade! Recomendo!\",\"When\":\"2016-03-03T18:03:52\",\"ProviderName\":\"EDIMAR \",\"ServiceType\":2,\"ProviderLicensePlate\":\"CUC4682\",\"UserLicensePlate\":\"MMO4690\"},{\"TransactionId\":20176,\"Price\":141.00,\"Grade\":4,\"UserComment\":\"Excelente! Recomendo!\",\"When\":\"2016-03-03T17:43:11\",\"ProviderName\":\"EDIMAR \",\"ServiceType\":2,\"ProviderLicensePlate\":\"CUC4682\",\"UserLicensePlate\":\"MMO4690\"},{\"TransactionId\":20175,\"Price\":140.00,\"Grade\":4,\"UserComment\":null,\"When\":\"2016-03-03T17:06:02\",\"ProviderName\":\"EDIMAR \",\"ServiceType\":2
[Table("Telephones", Schema = "MyAppSchema")]
public class Telephone : EntityBase
{
/// <summary>
/// Id
/// </summary>
public int TelephoneId { get; set; }
/// <summary>
/// DDI do número de telefone
[Table("Employees", Schema = "MyAppSchema")]
public class EmployeeProfile : Profile
{
/// <summary>
/// Id da empresa
/// </summary>
public int CompanyId { get; set; }
/// <summary>
/// Empresa
@eestein
eestein / equilibriumIndex.cs
Created March 21, 2017 20:36
100% solution for codility sample test
class Solution {
public int solution(int[] A) {
long totalSum = 0;
long rightSum = 0, leftSum = 0;
Array.ForEach(A, i => totalSum += i);
for (int i = 0; i < A.Length; i++)
{
leftSum += i > 0 ? A[i-1] : 0;
import { Injectable } from '@angular/core';
@Injectable()
export class Masks {
/**
* CEP
*/
public zipCode = {
mask: [/\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/],
showMask: true,
@eestein
eestein / t.cs
Last active August 11, 2017 02:34
public ProviderManagerProfileViewModel Update(ProviderManagerProfileViewModel data)
{
var providerManagerProfile = Context.GetRepository<ProviderManagerProfile>().GetById(data.Id);
providerManagerProfile.User.Email = data.Email;
providerManagerProfile.User.Name = data.Name;
var loggedUserStoresIds = LoggedUser.GetStores().Select(s => s.StoreId).ToArray();
var profiles = providerManagerProfile.User.Profiles.OfType<ProviderManagerProfile>().ToArray();
var mutualIds = data.StoresIds.Intersect(profiles.Select(pmp => pmp.StoreId).ToArray());
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, Component, OnInit } from '@angular/core';
import { RouterModule, Router, ActivatedRoute, Routes } from '@angular/router';
import { Location } from '@angular/common';
@Component({
selector: 'app-page1',
template: '<h1>Olá, eu sou a página 1</h1>'+
'Componente:<comp-app1></comp-app1>'
})
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, Component } from '@angular/core';
@Component({
selector: 'app-component',
template: `<h1>Unimed BH POC App 2</h1>`
})
class AppComponent{}
@Component({
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/platform-browser')) :
typeof define === 'function' && define.amd ? define('app1', ['exports', '@angular/core', '@angular/platform-browser'], factory) :
(factory((global.ng = global.ng || {}, global.ng.app1 = {}),global.ng.core,global.ng.platformBrowser));
}(this, (function (exports,core,platformBrowser) { 'use strict';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/

Guia de Padronização

Assim como em qualquer projeto, ser consistente é extremamente importante. Por isso, criamos uma série de padrões para guiar o desenvolvimento da SDK e ajudar projetos que usam a SDK a manter o mesmo padrão.

Pré requisitos

1 - Variáveis