This file contains hidden or 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
| describe("Bloco COntroller", function(){ | |
| //init das injeções do teste ( aqui vc injeta as dependencias, define o controller, etc) | |
| beforeEach(function () { | |
| angular.mock.module('blocoListagemControllers'); | |
| module(function ($provide) { | |
| //esses trecos do gaw eu so fiz um mock porco | |
| $provide.factory('GAWHubClient', function () { |
This file contains hidden or 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
| #adicione a função abaixo: | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| # subistitua o valor da variavel PS1 por: | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\] $(parse_git_branch)\[\033[00m\]\$ ' | |
| # E tambem a segunda occorencia: |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title>Page Title</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" type="text/css" media="screen" href="main.css" /> | |
| <script src="main.js"></script> | |
| <script src="https://unpkg.com/axios/dist/axios.min.js"></script> |
This file contains hidden or 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
| const express = require('express'); | |
| const multer = require('multer'); | |
| const ejs = require('ejs'); | |
| const path = require('path'); | |
| var hummus = require('hummus'); | |
| const moment = require('moment') | |
| moment.locale("pt-br") | |
| const img = __dirname + '/public/img/carimbo.png'; |
This file contains hidden or 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
| const totalvoice = require('totalvoice-node'); | |
| const client = new totalvoice("{{54585b751f9771e23295f630c154fe9a}}"); | |
| client.sms.enviar("61996291384", "Go Farma") | |
| .then(function (data) { | |
| console.log(data) | |
| }) | |
| .catch(function (error) { | |
| console.error('Erro: ', error) | |
| }); |
This file contains hidden or 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 { View, Text, StatusBar, Image, ScrollView, TouchableOpacity, AsyncStorage } from 'react-native'; | |
| import { Actions } from 'react-native-router-flux'; | |
| import axios from 'axios'; | |
| import css from '../../styles/main-styles'; | |
| import { api } from '../../../env'; | |
| import OneSignal from 'react-native-onesignal'; | |
| const insurances = require('../../../assets/img/icons/icon_seguros.png'); | |
| const notification = require('../../../assets/img/icons/icon_notificacoes.png'); |
This file contains hidden or 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'; | |
| import moment from 'moment'; | |
| import React from 'react'; | |
| import { StackNavigator } from 'react-navigation'; | |
| import { Text, Button, View, StatusBar, Image } from 'react-native'; | |
| import { GiftedForm, GiftedFormManager } from 'react-native-gifted-form'; | |
| import { Actions } from 'react-native-router-flux'; | |
| import styles from './styles'; | |
| const logo = require('../../../../assets/img/logo/logo.png') |
This file contains hidden or 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
| <html> | |
| <head> | |
| <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"/> | |
| <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> | |
| <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> | |
| <script src="leaflet-providers.js"></script> | |
| </head> | |
| <body> | |
| <div id="map" style="width: 100%; height: 300px;"></div> | |
| <script type="text/javascript"> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 path = require('path') | |
| var fs = require('fs'); | |
| var findInFiles = require('find-in-files'); | |
| var filePath = path.join(__dirname, './file.pdf') | |
| var extract = require('pdf-text-extract') | |
| extract(filePath, function (err, pages) { | |
| if (err) { |