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
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
<!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
#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
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
<!DOCTYPE html> | |
<html> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> | |
<body> | |
<script> | |
var app = angular.module("myShoppingList", []); | |
app.controller("myCtrl", function ($scope) { |
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> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> | |
<body> | |
<script> | |
angular.module("meuViadinhoFavoritoApp", []); | |
angular.controller("myCtrl", function ($scope) { | |
vm = this; |
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
class ExemploComponentWillMount extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
componentWillMount() { | |
//executa alguma coisa antes da montagem do compoente no DOM | |
} | |
//outros metodos ... |
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
class Clock extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = {date: new Date()}; | |
} | |
render() { | |
return ( | |
<div> | |
<h1>Hello, world!</h1> |
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
class ExemploComponentDidMount extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
componentDidMount() { | |
//executa alguma coisa depois da montagem do compoente no DOM | |
} | |
//outros metodos ... |