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
exports.upload = function(req, res){ | |
var form = new formidable.IncomingForm(); | |
form.parse(req, function(err, fields, files) { | |
readFile(files.file.path) | |
.then(processRows) | |
.then(processProducts) | |
.then(function(arrData){ |
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
getPokmonApi('http://pokeapi.co/api/v2/') | |
.then(function(body){ | |
console.log(body) | |
}) | |
function getPokmonApi(url) { | |
return new Promise(function(resolve, reject){ |
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
<template> | |
<div id="app" class="container"> | |
<table class="table table-bordered table-striped"> | |
<tr v-for="issue in issues"> | |
<td>{{issue}}</td> | |
</tr> | |
</table> | |
</div> | |
</template> |
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
qx.Class.define("ekoosweb.receita.ECadastro", | |
{ | |
extend : qx.ui.window.Window, | |
construct : function(id, objUsu) { | |
this.base(arguments); | |
this.__id = null; |
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
'use strict'; | |
app.controller('HeritageClassCtrl', function($rootScope, $location, $window, $scope, $http, $q) | |
{ | |
$scope.currentPage = 1; | |
$scope.numPerPage = 10; | |
$scope.maxSize = 5; | |
$scope.fullPage = 4; | |
$scope.home = () => { |
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 { Component, NgZone } from '@angular/core'; | |
import { Platform, ToastController } from 'ionic-angular'; | |
import { NavController } from 'ionic-angular'; | |
//declare var SpeechRecognition: any; | |
//OnStart - Para ativar a escuta. | |
//OnEnd - Para parar de ouvir. | |
//OnError - Para exibir erro no toast. | |
//OnResult - Para adicionar texto na lista. |
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 { Injectable } from '@angular/core'; | |
import { Http, Response } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/add/operator/map'; | |
import { FunctionComponent } from './function.component'; | |
@Injectable() | |
export class FunctionService { |
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 { Component } from '@angular/core'; | |
import { FunctionService } from './function.service'; | |
@Component({ | |
selector: 'function', | |
template: ` | |
<div class="container center-block"> | |
<div class="row col-md-6 col-md-offset-2 custyle"> | |
<table class="table table-striped custab"> |
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 { Component } from '@angular/core'; | |
import { NavController, ViewController } from 'ionic-angular'; | |
import { HomeService } from './home.service'; | |
@Component({ | |
selector: 'page-home', | |
templateUrl: 'home.html', | |
providers: [ | |
HomeService |
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 { Injectable } from '@angular/core'; | |
import { Http, Response } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/add/operator/map'; | |
import { HomePage } from './home'; | |
@Injectable() | |
export class HomeService { |
OlderNewer