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
<?php public function registerStepOne($params) { | |
$userCollection = \Mongaconnector::collection($this->collection); | |
$registerValidation = \Validation::forge('registerStepOne'); | |
$registerValidation->add_callable(new \validationRegister()); | |
$registerValidation->add_field('username', 'Your username', 'required'); | |
$registerValidation->add_field('password', 'Your password', 'required|min_length[3]|max_length[10]'); | |
$registerValidation->add_field('confirm_password', 'Confirm Yor Password', 'match_field[password]'); |
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
#!/bin/bash | |
#START DEPLOY | |
echo "## == INICIANDO DELOY PARA ENVIROMENT TEST##" | |
echo "## == Acessando pasta do Enviroment DEV: /web/educare/dev/" | |
cd /web/educare/dev | |
##RESET GIT | |
echo "## == GIT RESET HARD" | |
env -i git reset --hard |
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
$(".btn").click(function(e){ | |
e.preventDefault(); | |
novo_link = 'http://www.site.com.br/site'; | |
$(this).text("Novo Texto do btn").attr({ | |
class: "btn-add", | |
href: "novo_link" | |
}); | |
window.location = novo_link; | |
}); |
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
MYUSERNAME=joao | |
MYPASSWORD=asenha | |
MYHOST=seu_host_aqui | |
# Databases to exclude | |
DBEXCLUDE=db_name_i_dont_want | |
MYSQL=$(mysql -N -u${USER} -p${PASS} -h${HOST} <<<"SHOW DATABASES" | grep -v ${DBEXCLUDE} | grep -v mysql | grep -v information_schema | grep -v test | tr "\n" " ") | |
mysqldump -v -u${USER} -p${PASS} -h${HOST} --databases --skip-lock-tables ${MYSQL} > backup_all.sql |
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
(SELECT * FROM T_Casa casa where casa.REFERENCIA = '65738') | |
UNION (SELECT * FROM T_Imoveis imoveis where casa.REFERENCIA = '65738') | |
UNION (SELECT * FROM T_Apto apto where casa.REFERENCIA = '65738') |
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
<?php | |
namespace Model; | |
use Aws\S3\S3Client; | |
class Lesson extends \Model { | |
/** | |
* collection Name in database MongoDB |
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
<?xml version="1.0" encoding="ISO-8859-1" ?> | |
<Servicos> | |
<cServico> | |
<Codigo>40010</Codigo> | |
<Valor>23,35</Valor> | |
<PrazoEntrega>8</PrazoEntrega> | |
<ValorSemAdicionais>17,40</ValorSemAdicionais> | |
<ValorMaoPropria>0,00</ValorMaoPropria> | |
<ValorAvisoRecebimento>0,00</ValorAvisoRecebimento> | |
<ValorValorDeclarado>5,95</ValorValorDeclarado> |
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
{ | |
"TimeStamp" : Timestamp(1405014923, 4), | |
"_id" : ObjectId("53bed38c9e9c3a5d058b4567"), | |
"description" : "asdasdasd ", | |
"files" : { | |
"ETag" : "\"2677e6d7e70e12572b5660b6819fc05f\"", | |
"Expiration" : "", | |
"ServerSideEncryption" : "", | |
"VersionId" : "", | |
"RequestId" : "54DA80A1678E3126", |
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
Error: [$injector:unpr] Unknown provider: ingresseSDKProvider <- ingresseSDK | |
http://errors.angularjs.org/1.2.21/$injector/unpr?p0=ingresseSDKProvider%20%3C-%20ingresseSDK | |
minErr/<@http://localhost:9000/bower_components/angular/angular.js:78:5 | |
createInjector/providerCache.$injector<@http://localhost:9000/bower_components/angular/angular.js:3776:13 | |
getService@http://localhost:9000/bower_components/angular/angular.js:3904:11 | |
createInjector/instanceCache.$injector<@http://localhost:9000/bower_components/angular/angular.js:3781:1 | |
getService@http://localhost:9000/bower_components/angular/angular.js:3904:11 | |
invoke@http://localhost:9000/bower_components/angular/angular.js:3931:1 | |
instantiate@http://localhost:9000/bower_components/angular/angular.js:3951:7 | |
$ControllerProvider/this.$get</<@http://localhost:9000/bower_components/angular/angular.js:7244:7 |
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
/* 0 */ | |
{ | |
"_id" : ObjectId("53f6308cb95b15138525ee91"), | |
"title" : "Modelo 1", | |
"thumb" : "/assets/img/works/3.jpg", | |
"description" : "Modelo 1 de teste", | |
"folder" : "1", | |
"file" : "index.html", | |
"less" : "less/modelo3.less", | |
"css" : "less/modelo3.css", |