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
##### NEW PRODUCT ###### | |
ARLazyFetcher *fetcher = [MyProduct lazyFetcher]; | |
[fetcher where:@"object = %@ AND object_id = %@", pObject, pObjectId, nil]; | |
NSArray *products = [fetcher fetchRecords]; | |
if ([products count] == 0) | |
{ | |
MyProduct *product = [MyProduct newRecord]; |
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 | |
echo("Baixando imagem...\n"); | |
exec("curl -o /tmp/image_test.jpg http://zerohora.rbsdirect.com.br/imagesrc/15045099.jpg?w=620"); | |
echo("Convertendo em base64...\n"); | |
$data = file_get_contents('/tmp/image_test.jpg'); | |
$base64 = base64_encode($data); |
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 | |
// inicio | |
$rustart = getrusage(); | |
// codigo | |
for($x = 0; $x < 100000; $x++) | |
{ | |
$a = "Indice-$x"; | |
} |
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 | |
// inicio | |
$rustart = getrusage(); | |
// codigo | |
for($x = 0; $x < 100000; $x++) | |
{ | |
$a = 'Indice-' . $x; | |
} |
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
1 - cadastrar o curso e definir os atributos especiais para aquele tipo de produto (url do video[video_url], horas, autor) | |
2 - ir no arquivo app/design/frontend/[nome-do-tema]/default/default/template/catalog/product/view.phtml | |
e adicionar no html o bloco de código html do sistema de cursos atual que exibe o vídeo: | |
<div class="right-programa"> | |
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="563" height="317" id="huraExternalPlayer" bgcolor="#FFFFFF"> | |
<param name="movie" value="http://cursos.umbarato.com/themes/cursos/swf/player.swf"> | |
<param name="FlashVars" value="url=<?php echo($_helper->productAttribute($_product, $_product->getName(), 'video_url')); ?>&autoPlay=false&autoLoadYouTubePreviewImage=true&"> | |
<param name="allowFullScreen" value="true"> |
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
----------------------------------------- | |
| TESTE PARA A EQUIPE DE MOBILE - UBOOK | | |
----------------------------------------- | |
+ Descrição: Criar uma aplicação simples que vai consumir a API do site "The Movie DB" e no padrão master-detail exibir uma lista e depois os detalhes do item acessado. | |
+ Documentação: | |
https://www.themoviedb.org/documentation/api | |
+ Esta aplicação deve exibir uma lista com os filmes, que podem ser a lista dos filmes top (Top rated movies) ou dos filmes mais populares (Popular movies). |
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
nome-do-cliente = paulo coutinho | |
idade = 19 anos | |
endereco-do-cliente = rua dionisio dasdsd asdsd | |
altura = 1.7 metros | |
bairro = cachumba | |
e | |
nome-do-cliente = paulo coutinho | |
idade = 19 anos |
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
POST /logstack/log | |
{ | |
"token": "722278A5-2F08-414B-AC95-563CAAE63598", | |
"type": "debug", | |
"message": "ATENÇÃO: A aplicação está com o MODO DEBUG ativado!" | |
} | |
POST /logstack/log | |
{ | |
"token": "722278A5-2F08-414B-AC95-563CAAE63598", |
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 GameApp = GameApp || {}; | |
GameApp.USE_DEVICE_PIXEL_RATIO = false; // here you can change to use or not the device pixel ratio - it is not supported by all browsers | |
if (GameApp.USE_DEVICE_PIXEL_RATIO) { | |
GameApp.DEVICE_PIXEL_RATIO = window.devicePixelRatio; | |
GameApp.CANVAS_WIDTH = window.innerWidth * GameApp.DEVICE_PIXEL_RATIO; | |
GameApp.CANVAS_HEIGHT = window.innerHeight * GameApp.DEVICE_PIXEL_RATIO; | |
} else { | |
GameApp.DEVICE_PIXEL_RATIO = 1.0; | |
GameApp.CANVAS_WIDTH = window.innerWidth * GameApp.DEVICE_PIXEL_RATIO; |
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
/** | |
* Distinguishes different kinds of app starts: <li> | |
* <ul> | |
* First start ever ({@link #FIRST_TIME}) | |
* </ul> | |
* <ul> | |
* First start in this version ({@link #FIRST_TIME_VERSION}) | |
* </ul> | |
* <ul> | |
* Normal app start ({@link #NORMAL}) |
OlderNewer