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
# Downloads Backups | |
https://www.rollseda.com/backup/ | |
https://www.foa.com.py/backup/ | |
https://www.fodacgeral.com/backup/ | |
https://www.rpa.com.py/backup/ | |
https://www.totalbloker.com/backup/ | |
https://www.tudaobrasil.com/backup/ | |
https://www.ecococoproducts.com/backup/ | |
https://www.secretsofnay.com/backup/ | |
https://www.desvall.com/backup/ |
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 | |
//Scripts(em WP-CLI) para automação de criar ou deletar rapidamente sites em Wordpress em localhost. | |
//Crie um arquivo php: | |
//Confere se WP-CLI está disponível e se sim adiciona 'installer' aos comandos do qual há 2 subcomandos :install e uninstall | |
if ( defined( 'WP_CLI' ) && WP_CLI ) { | |
WP_CLI::add_command( 'installer', ‘WP_CLI_Installer’, array( ‘when’ => ‘before_wp_load’ ); | |
} | |
/** |
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 | |
/* Normalmente arquivos de configs são diferentes em cada ambiente. | |
Definir qual arquivo de configuração deve ser carregado dependendo do ambiente: | |
live-config.php -> ambiente de produção | |
staging-config.php -> ambiente de testes | |
local-config.php -> ambiente local(desenvolvimento) */ | |
if ( file_exists( dirname( __FILE__ ) . '/live-config.php' ) ) { | |
define( 'WP_LOCAL_DEV', false ); | |
define( 'DBI_STAGING_SITE', 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
width:100%; | |
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
//Reference: http://ng-learn.org/2014/01/Dom-Manipulations/ | |
// Here we create a module to group these directives jquery related | |
var jqueryDirectives = angular.module("jqueryDirectives", []); | |
// Here we add a directive to the module. camelCase naming in this file (mySlide) and dash separated in html (my-Slide) | |
jqueryDirectives.directive("mySlide", [ | |
function() { | |
return { |
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
/* Criando Directive que manipula DOM */ | |
'Directives que quer modificar a DOM utiliza a opção' link 'para registrar o DOM listeners bem como atualizar o DOM' | |
link 'tem uma função com a seguinte assinatura: ' | |
function link(scope, element, attrs, controller, transcludeFn) { ... } | |
- scope: 'é um Angular scope object.' | |
- element: 'é um jqLite-wrapped element que está directive associa' | |
- attrs: 'is a hash object with key-value pairs of normalized attribute names and their corresponding attribute values' | |
- controller: 'is the directive's 'required controller instance(s) or its own controller (if any). The exact value depends on the directive-s require property.' | |
- transcludeFn: 'is a transclude linking function pre-bound to the correct transclusion scope' | |
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 namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Foto extends Model { | |
protected $table = "tb_fotos"; | |
protected $primaryKey = "fot_id"; | |
public $timestamps = 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
'http://laravel.com/docs/migrations#database-seeding' Doc Oficial | |
Um simples modo de popular a base de dados com dados de teste usando a classe seed. | |
Toda classe seed está guardada em "app/database/seeds", | |
pode ser utilizado qualquer nome porém o ideial seria algo assim: "UserTableSeeder" | |
<?php | |
/* Por padrão a classe 'DatabaseSeeder' é definida e a partir dela pode-se utilizar | |
o método 'call' para rodar outras classes seed, permitindo a ordem do seeding. */ | |
#chama o seed 'UserTableSeeder' |
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
"http://laravel.com/docs/schema" Documentação oficial | |
A classe SCHEMA fornecida pelo laravel fornece um meio de manipular a base de dados | |
<?php | |
#criar uma nova tabela 'users' | |
Schema::create('users', function($table) | |
{ | |
$table->increments('id'); | |
}); |
NewerOlder