Skip to content

Instantly share code, notes, and snippets.

View hugoalmeidahh's full-sized avatar
👨‍💻

Hugo Almeida hugoalmeidahh

👨‍💻
View GitHub Profile
<div class="form-group">
<label for="recipient-name" class="control-label">Manter o Parceiro Selecionado?</label>
<label class="radio-inline">
<input type="radio" name="manterParceiro" ng-model="manterParceiro_sim.Value" value="True" > Sim
</label>
<label class="radio-inline">
<input type="radio" name="manterParceiro" ng-model="manterParceiro_nao.check" value="False"> Não
</label><br /><br />
'use strict';
app.controller('homeCtrl', ['$scope', '$http', 'autenticacaoAPI', 'masterAPI', function ($scope, $http, autenticacaoAPI, masterAPI) {
//Autenticacao - carrega usuário
$scope.carregaUsuario = function () {
$scope.users = "";
autenticacaoAPI.getUsuario().success(function (users) {
var result = JSON.parse(users);
var sNome = "";
============= minha combo html =====================
div class="form-group" >
<label for="recipient-name" class="control-label">Empresa Padrão:</label>
<select class="form-control" data-ng-model="x.currentId"
data-ng-options="empresa.nome for empresa in empresas">
</select>
</div>
@hugoalmeidahh
hugoalmeidahh / makers.js
Last active May 23, 2018 17:56
my mock makers
<script>
var app = new Vue({
el: '#app',
data(){
return {
markers: [],
MID: 0,
currentInfoWindow: null,
options : {timeout: 10000, enableHighAccuracy: true},
}
methods: {
api(lat, lng, km){
this.loading = true;
var payload = this.payAuth;
var token = "";
var urlAuth = 'http://localhost:49921/token';
return new Promise((resolve, reject) => {
axios.post(urlAuth, JSON.stringify(payload),
import sys
from importlib._bootstrap_external import _check_name
from PyQt5.QtWidgets import QMainWindow, QPushButton, QLabel, QMenu, qApp, QApplication, QWidget
from PyQt5.QtCore import QObject, Qt, pyqtSignal
from PyQt5.QtGui import QPainter, QFont, QColor, QPen
class MainWindow(QMainWindow):
def __init__(self, parent=None):
super(MainWindow, self).__init__()
import { useState, createContext, useContext } from 'react'
// Lift state up -> Levantar o estado
// Context API
// Prop Drilling
type CartContextType = {
productsInCart: string[];
addProductToCart: (name: string) => void;
const { transactions, balance } = response.data;
const newTransactions = transactions.map(transaction => {
return {
...transaction,
formattedValue: formatValue(transaction.value),
// outros campos aqui
}
});
name: CI
on:
push:
branches: [master]
env:
BUCKET: reactdeploy.getomni.dev
jobs:
.DayPicker {
background: #28262e;
border-radius: 10px;
}
.DayPicker-wrapper {
padding-bottom: 0;
}
.DayPicker,