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
INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('AUDI') | |
INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('BMW') | |
INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('CITROEN') | |
INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('FIAT') | |
INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('FORD') | |
INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('CHEVROLET') | |
INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('HONDA') | |
INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('HYUNDAI') | |
INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('KIA') | |
INSERT INTO [dbo].[ModelosCarro] ([Nome]) VALUES ('MERCEDES-BENZ') |
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
(function() { | |
'use strict'; | |
let minutosTotais = 0; | |
let segundosTotais = 0; | |
let horasTotais = 0; | |
let quantidePartidas = 0; | |
$('.date-duration-duration > div').each(function(index, item){ | |
quantidePartidas += 1; | |
let data = item.textContent.split(':'), |
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
//html | |
<!--Start of Modal --> | |
<div class="modaal"> | |
<input id="modaal__trigger" type="checkbox" /> | |
<label class="{{className}}" for="modaal__trigger">{{buttonText}}</label> | |
<div class="modaal__overlay" role="dialog" aria-labelledby="modaal__title" aria-describedby="modaal_desc"> | |
<div class="modaal__wrap"> | |
<label for="modaal__trigger">✖</label> | |
<ng-transclude></ng-transclude> | |
</div> |
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
(function() { | |
'use strict'; | |
angular | |
.module('pub.posts.service', []) | |
.factory('PostsService', PostsService); | |
/** @ngInject */ | |
function PostsService($http, $q, API) { |
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 path from 'path'; | |
exports.register = (plugin, options, next) => { | |
plugin.route({ | |
method: 'GET', | |
path: '/docs/{param*}', | |
handler: { | |
directory: { | |
path: path.join(__dirname, '../../docs'), | |
listing: true, |
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
func ModelToJson(model interface{}) string { | |
j, err := json.Marshal(model) | |
if err != nil { | |
panic(fmt.Sprintf("Error %v encoding JSON for %v", err, model)) | |
} | |
jsonStr := string(j) | |
v := reflect.Indirect(reflect.ValueOf(model)) | |
ot := v.Type() | |
t := ot |
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
var KEY_CRIPTY = []byte("@E#%_323E5%DMG!(332GG()!") | |
// encrypt string to base64 crypto using AES | |
func encrypt(key []byte, text string) string { | |
plaintext := []byte(text) | |
block, err := aes.NewCipher(key) | |
if err != nil { | |
fmt.Println(err) | |
} |
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
// | |
//models | |
// | |
type Model struct { | |
ID uint `json:"id" gorm:"primary_key"` | |
CreatedAt time.Time `json:"-" sql:"DEFAULT:current_timestamp"` | |
UpdatedAt time.Time `json:"-" sql:"DEFAULT:current_timestamp"` | |
DeletedAt *time.Time `json:"-" settable:"false"` | |
} |
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 React from 'react'; | |
import { | |
Image, | |
Platform, | |
ScrollView, | |
StyleSheet, | |
TouchableOpacity, | |
ListView, | |
View, | |
PermissionsAndroid, |
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 { create } from 'apisauce' | |
import Store from '../utils/store' | |
import { API_URL } from './constants' | |
const headers = { | |
Accept: 'application/json', | |
'Content-Type': 'application/json', | |
} | |
export const api = create({ |