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
<script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("language", "1"); | |
function translate(palavra) { | |
google.language.translate(palavra, 'pt', 'en', function(result) { | |
if (result.translation) { | |
alert(result.translation); | |
} |
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
# tira um print da tela e manda em anexo via e-mail | |
echo "Assunto:"; | |
read ASSUNTO | |
echo "Destinatário"; | |
read EMAIL | |
# gera o jpg da tela | |
import tela.jpg |
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
class Cubo { | |
int[] num = {1,2,3,4,8,6,7,5,9}; | |
int t = 0; | |
public static void main (String args[]){ | |
new Cubo(); | |
} | |
Cubo(){ |
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
The code of component! | |
The impportant thing here is the event input, this name must be exactly this to vue handle the bind of value propoerty outside de component! | |
<template lang="html"> | |
<div> | |
<div | |
id='on' | |
@click="switched(true)" | |
:class="{active: value}">On</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
in main.js | |
import VueI18n from 'vue-i18n' | |
import lang from './language/lang' | |
const i18n = new VueI18n({ | |
locale: 'pt-BR', // set locale | |
messages: lang // set locale messages | |
} |
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
methods: { | |
save (evt) { | |
let self = this | |
evt.preventDefault() | |
this.$validator.validateAll().then((result) => { | |
if (result) { | |
EventBus.$emit('startLoading') | |
dbUser.save(this.user) | |
.then((resp) => { | |
EventBus.$emit('stoptLoading') |
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
const moment = require('moment-timezone') | |
return moment.utc(date, 'YYYY-MM-DD"T"HH:mm:ss.fffffff"Z"').format('DD/MM/YYYY') |
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
<? | |
// ------------------- | |
// Lendo arquivo local | |
// ------------------- | |
$filename = "acervo.csv"; | |
$handle = fopen ($filename, "r"); | |
$conteudo = fread ($handle, filesize ($filename)); | |
/* | |
// ----------------------------------- |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package exercico_ci_1; | |
import javafx.application.Application; | |
import javafx.scene.Scene; | |
import javafx.scene.chart.CategoryAxis; |