Skip to content

Instantly share code, notes, and snippets.

<?php
class Filter extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->helper("action");
$this->load->helper("component");
$this->load->helper("url");
::lands (20)
! 4 Bloodstained Mire
! 4 Wooded Foothills
! 2 Barbarian Ring
! 10 mountain
::spells (24)
! 4 Fireblast
! 4 Lightning Bolt
! 4 Rift Bolt
::lands (18)
+ 9 Swamp
+ 9 Island
::spells (34)
! 4 Entomb
! 4 Animated Dead
! 4 Reanimate
+ 4 Brainstorm
+ 4 Careful Study
::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
<!-- 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="[email protected]" />
<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 -->
$data = array(
'comment_post_ID' => 40,
'comment_author' => 'admin',
'comment_author_email' => '[email protected]',
'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'),
public static function find($id) {
$videos = self::getAll();
foreach ($videos as $item) {
if($item->id == $id)
return $item;
}
return null;
}
@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 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;
}
}
<?php
$file = file_get_contents($_GET["url"]);
header('Content-Type: image/jpeg');
echo $file;
?>