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
@echo off | |
set "num=1" | |
for /d /r "E:\Apps\a" %%a in (*) do ren "%%a" "%num%" | |
pause |
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
//Previne duplo clique | |
var botoes = $('.btnImagem,.btnConcluir,.btnTramitar,.btnCheckList,.btnArquivar,.btnCancelar,.btnEstornar,.btnReceber,.btnHistorico,.btnImprimir,.btnProvidencia,.btnCarta,.btnDistribuir,.btnDevolver,.btnConsultar,.btnIncluir,.btnIncDependente,.btnIncluirGrande,.btnVoltar,.btnConfirmar,.btnContinuar,.btnVerificar,.btnAdicionar,.btnProcessar,.btnCalcular,.btnLimpar,.btnAlterar,.btnRetornar,.btnSalvar,.btnImprimir2,.btnAnexo,.btnGrafico,.btnImportar,.bntBaixa,.btnCancelar2,.btnInfAdicional,.btnModelo,.btnPerfil,.btnDinheiro,.btngestao,.btnTemporario,.btnOutros,.btnTransferencia,.btnInfAdicionar,.btnRegistrarDoc,.btnGerarBeneficio,.btnImplantarBeneficio,.btnEstornarBeneficio,.btnComparar,.btnGir,.btnInformacao2,.btnavancar,.btnVincular,.btnEntrar,.btnDocumentos,.btnRefresh2,.btnImprimir3,.btnCancelar3,.btnAddServidor,.btnGravarPA,.btnProcessar2,.btnTestemunha,.btnConfirmar2,.btnExportar'); | |
botoes.on('click', function () { | |
var $el = $(this), | |
vp = $el.context.defaultValue, | |
cp = $('.'+$el. |
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() { | |
App.init(); | |
}); | |
var App = function() { | |
return {init: init}; | |
function init () { | |
funcao01(); |
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
@echo off | |
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G" | |
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *_svn*') DO RMDIR /S /Q "%%G" | |
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *_notes*') DO RMDIR /S /Q "%%G" | |
pause |
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
@echo off | |
SET RODANDO= | |
tasklist /fi "imagename eq Genexus.exe" | find ":" > nul | |
if errorlevel 1 set RODANDO=sim | |
if "%RODANDO%"=="sim" ( | |
ECHO "Deseja fechar o Genexus aberto?" |
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 ENVIADO = "ENVIADO"; | |
var VALOR = 4; | |
function sendEmails() { | |
var message = "De uma olhada na planilha"; | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
//ss.getSheets()[3] = terceira aba da planilha | |
var sheet = SpreadsheetApp.setActiveSheet(ss.getSheets()[3]); |
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
<?php | |
add_action( 'widgets_init', 'jp_clima_widget' ); | |
function jp_clima_widget() {register_widget( 'clima_widget' );} | |
//http://servicos.cptec.inpe.br/XML/ | |
class clima_widget extends WP_Widget | |
{ | |
function clima_widget() | |
{ | |
$widget_ops = array( 'classname' => 'posts-list', 'description' => 'Clima direto do cptec.inpe.br' ); | |
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
<div itemscope itemtype="http://schema.org/WebSite"> | |
<meta itemprop="url" content="https://www.example.com/"/> | |
<form itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction"> | |
<meta itemprop="target" content="https://query.example.com/search?q={search_term_string}"/> | |
<input itemprop="query-input" type="text" name="search_term_string" required/> | |
<input type="submit"/> | |
</form> | |
</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
#!/bin/bash | |
cont=1; | |
while [ $cont -lt 13 ]; do | |
echo "Baixando: $cont"; | |
wget http://1.1.1.1/~proja380/wp-content/uploads/2013/$cont.tar.gz; | |
echo "Completo: $cont"; | |
echo "---------------"; |
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
#!/bin/sh | |
# Corrigir /bin/sh^m bad interpreter no such file or directory | |
# dos2unix *.sh | |
cd /home/proja380/public_html/wp-content/uploads/ | |
caminho=2012 | |
echo 'Compactando pasta '$caminho; |