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
#---------------------------------------------------------------------------------------------------- | |
# definindo nome e email padrão | |
#---------------------------------------------------------------------------------------------------- | |
git config --global user.name "{{meu-nome}}" | |
git config --global user.email "{{meu-email}}" | |
#---------------------------------------------------------------------------------------------------- | |
# definindo que o git deve colorir suas saidas | |
#---------------------------------------------------------------------------------------------------- | |
git config --global color.ui true |
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
hasOne - (uma caixa tem um proprietário) | |
- nome do model com o qual se tem uma relação 1:1 | |
- nome do campo no outro model que é a chave estrangeira, por padrão será o nome do model atual mais o prefixo "_id" | |
- nome do campo no model atual que é a chave primaira, por padrão considera-se que seja "id" | |
hasMany - (um caixa tem muitas categorias) | |
- nome do model com o qual se tem uma relação de 1:N | |
- nome do campo no outro model que é a chave estrangeira, por padrão será o nome do model atual mais o prefixo "_id" | |
- nome do campo no model atual que é a chave primária, por padrão considera-se que seja "id" |
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
for f in ./vendor/caouecs/laravel4-lang/*/; do cp -r \"$f\" \"./resources/lang\"; done |
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
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html | |
# successful | |
200 => ['id' => 200, 'name' => 'OK', 'message' => 'pedido foi cumprido'], | |
201 => ['id' => 201, 'name' => 'CREATED', 'message' => 'o post foi bem sucessido e foi devolvida uma referencia ao objeto criado'], | |
202 => ['id' => 202, 'name' => 'ACCEPTED', 'message' => 'o pedido aceito e colocado na fila de processamento'], | |
203 => ['id' => 203, 'name' => 'PARTIAL_INFORMATION', 'message' => ''], | |
204 => ['id' => 204, 'name' => 'NO_RESPONSE', 'message' => 'o pedido foi cumprido, mas não ha informações a serem devolvidas'], | |
# redirection |
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
=========================================================================== | |
MySQL | |
=========================================================================== | |
TINYINT (--128 a 127)(0 a 255) | |
BOOL e BOOLEAN = TINYINT(1) | |
SMALLINT (-32.768 a 32.767)(0 a 65.535) | |
MEDIUMINT (-8.388.608 a 8.388.607)(0 a 16.777.215) | |
INT (-2.147.483.648 a 2.147.483.647)(0 a 4.294.967.295) | |
INTEGER = INT |
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
https://googledrive.com/host/0BwzH_u8QgWbLUmRUc0pKdzl5VW8/provas/00/00/00/00/01/prova.pdf.qp | |
https://googledrive.com/host/0BwzH_u8QgWbLZHdoTmtmSDRtTVU/Alex_Oliveira.jpg | |
https://e09ce0dcb1e32d78a138577b8872ff0ff94fa52d.googledrive.com/host/0BwzH_u8QgWbLZHdoTmtmSDRtTVU/Alex_Oliveira.jpg |
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
$ cordova build --release android | |
$ cd platforms\android\build\outputs\apk\ | |
$ keytool -genkey -v -keystore myapp.keystore -alias myapp -keyalg RSA -keysize 2048 -validity 10000 | |
$ copy android-release-unsigned.apk android-release.apk | |
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore myapp.keystore android-release.apk myapp |
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 (VALUES (0, 'desativado'), (1, 'ativado')) AS z(id, status); | |
------------------------------------ | |
SELECT u.id, u.nome, u.ativo, z.status | |
FROM autenticacao.usuarios as u | |
INNER JOIN (VALUES (0, 'desativado'), (1, 'ativado')) AS z(id, status) ON z.id = u.ativo | |
ORDER BY z.status ASC; | |
------------------------------------ |
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 ( | |
SELECT | |
R.id, | |
REPLACE( | |
REPLACE( | |
REPLACE( | |
REPLACE( | |
REPLACE( | |
REPLACE( |
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
$input = Request::input(); | |
$request = clone app('request'); | |
$route = clone app('Illuminate\Routing\Route'); | |
$router = clone app('router'); | |
$internal = Request::create(route('action1'), 'GET', ['alex' => 'oliveira']); | |
Request::replace($internal->input()); | |
$dispatch = Route::dispatch($internal); |
OlderNewer