Skip to content

Instantly share code, notes, and snippets.

public function align(width:Number, height:Number, scale:Boolean=false):void {
if(scale) {
var percent:Number = width / _width;
this.scaleX = this.scaleY = percent;
if(this.height > height) {
percent = height / _height;
this.scaleX = this.scaleY = percent;
}
}
@cccaldas
cccaldas / gist:3506555
Created August 29, 2012 03:36
FlippingBook
package scripts {
import caurina.transitions.Tweener;
import com.geleca.as3.util.FunctionUtil;
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.Security;
public static function find($id) {
$videos = self::getAll();
foreach ($videos as $item) {
if($item->id == $id)
return $item;
}
return null;
}
$data = array(
'comment_post_ID' => 40,
'comment_author' => 'admin',
'comment_author_email' => 'admin@admin.com',
'comment_author_url' => 'http://www.catswhocode.com',
'comment_content' => 'Lorem ipsum dolor sit amet...',
'comment_author_IP' => '127.0.0.1',
'comment_agent' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3',
'comment_date' => date('Y-m-d H:i:s'),
'comment_date_gmt' => date('Y-m-d H:i:s'),
<!-- INICIO FORMULARIO BOTAO PAGSEGURO -->
<form target="pagseguro" action="https://pagseguro.uol.com.br/checkout/v2/donation.html" method="post">
<input type="hidden" name="receiverEmail" value="femicro@femicro-es.com.br" />
<input type="hidden" name="currency" value="BRL" />
<input type="image" src="https://p.simg.uol.com.br/out/pagseguro/i/botoes/doacoes/209x48-doar-assina.gif" name="submit" alt="Pague com PagSeguro - é rápido, grátis e seguro!" />
</form>
<!-- FINAL FORMULARIO BOTAO PAGSEGURO -->
::diversos
+ 4x Thoughtseize $36.99
+ 4x Force of Will $60.00
+ 4x Tarmogoyf $100.00
::fetch
+ 4x Bloodstained Mire $20.00
+ 4x Polluted Delta $40.00
+ 4x Windswept Heath $33.00
+ 4x Wooded Foothills $24.00
::lands (18)
+ 9 Swamp
+ 9 Island
::spells (34)
! 4 Entomb
! 4 Animated Dead
! 4 Reanimate
+ 4 Brainstorm
+ 4 Careful Study
::lands (20)
! 4 Bloodstained Mire
! 4 Wooded Foothills
! 2 Barbarian Ring
! 10 mountain
::spells (24)
! 4 Fireblast
! 4 Lightning Bolt
! 4 Rift Bolt
<?php
class Filter extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->helper("action");
$this->load->helper("component");
$this->load->helper("url");
<?
function register_post_type_projeto() {
$labels = array(
'name' => _x('Projetos', 'post type general name'),
'singular_name' => _x('Projeto', 'post type singular name'),
'add_new' => _x('Novo', 'portfolio item'),
'add_new_item' => __('Adicionar'),
'edit_item' => __('Editar'),